XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > Documentation and Knowledge Base > Domain forwarding...?


Posted by: alternativeIT Dec 11 2003, 02:55 AM
Hi guys,

I'm trying to work out how to configure XMail to accept all mail for a domain, then attempt to forward that mail on to a specfic mail server. Basically, I just want to provide a backup mail server for one of my clients - if their mail server is down, the mail will come to my server, and I need it to attempt to forward it on to their mail server.

What I *don't* want is for XMail to do a DNS lookup for the MX records for the domain, and try and deliver the mail that way, as if it cannot connect to the primary mail server, it'll attempt to deliver the mail to itself again.... = messy smile.gif

So to recap:

client.com's MX records:

mx1.client.com (clients' primary mail server)
mx1.mydomain.com (my XMail server)

If a MTA out on the net can't connect to mx1.client.com, the mail will be sent to mx1.mydomain.com. XMail running on mx1.mydomain.com needs to accept *any* mail addressed to *@client.com, and attempt to forward the mail on to mx1.client.com.

Any ideas guys? smile.gif I'm asking for help as I don't want to accidentally turn my mail server into an open relay.

Cheers,
John smile.gif

Posted by: atomant Dec 11 2003, 07:36 AM
Use custom domain processing.
Under custdomains directory create a mx1.client.com.tab file with following lines in it:
"smtprelay"[TAB]"server"[NEWLINE]

Note: TAB is real tab character and NEWLINE is real return.

To prevent your server being an open relay uncomment in server.tab line:
"EnableAuthSMTP-POP3" "0"

Clear smtprelay.tab file, in smtp.ipmap.tab you need to have:
"0.0.0.0/0"[tab]"0.0.0.0/0"[tab]"ALLOW"[tab]"1"[newline]

Posted by: alternativeIT Dec 11 2003, 08:31 AM
Thanks Sasa, exactly what I was looking for. Thanks for the help smile.gif

Posted by: atomant Dec 11 2003, 09:19 AM
You're welcome. biggrin.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)