Page 1 of 1

Relay a Secondary domain to another server?

Posted: Wed Mar 22, 2006 6:52 am
by Flish
Looked for this, and thought it would be in smtpd.cfg but can't see from examples.

Basically, we have a fax server that will integrate with an SMTP server to allow emails to be sent/received over email. The way it does this is to use a dummy domain to which you address your 'emails' to that then get forwarded into the fax server, ie 448450037319@fax would get passed through.

So, what I need to do is allow Scalix to accept mail addressed to @fax (easy, done) and then relay / forward / somehow to another box on my lan. Can't see how though.

Only Stop gap, which I haven't tried, and appreciate heads up on whether it will work, is to take @fax domain out of sca, but put a relay line in smtpd.cfg so mail to @fax is allowed, and then create a dummy MX record on the internal DNS server to point it back at the fax box. Am sure there's a million flaws in that idea so a better method welcomed please!

Posted: Wed Mar 22, 2006 7:13 am
by jch
You shouldn't need to add anything to the smtpd.cfg config file, any more than you have to to allow sending to any other external domain.

It should be enough to simply set up an MX record for the "fax" top-level domain. The trouble with that though is that various bits and pieces of software are going to see "fax" and think its an unqualified name and stick the local domain on the end. I'd be inclined to simply include a line in your DNS config like this:

Code: Select all

fax.scalix.com.      IN MX 0 fax-machine.scalix.com.

Change as needed for your local DNS set up.

I'm pretty sure that that's all you need to do.

jch

Posted: Wed Mar 22, 2006 8:29 am
by Flish
You're probably right, after the week I've had suspect I'm overcomplicating things. Will give it a go, once I've re-installed my XP box whichappears to have comitted suicide :-(