Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: vladmen on February 14, 2002, 11:58:14 PM

Title: 2 mail servers on local net
Post by: vladmen on February 14, 2002, 11:58:14 PM
I have a setup where there are 2 mail servers on the same LAN sharing common T1 line. Everything works fine except when mail is sent from one server to another it goes through the Internet instead of just sending locally. This creates all kind of weird problems with the CISCO router that does not want to allow mail to go out and in again. How and where do I need to change the MX records to point mail to the local IP addresses and not be overwritten by next E-Smith update?
Title: Re: 2 mail servers on local net
Post by: charlie on February 15, 2002, 12:04:07 AM
You may want to try what I did. I setup server "a" to use my e-smith server "b" to be my smpt outgoing server. Local mail for the e-smith accounts did not forward out to the internet.
Title: Re: 2 mail servers on local net
Post by: Duncan on February 15, 2002, 12:02:40 PM
You need to edit your /var/qmail/control/smptroutes to add additional routes to the qmail mail server.

Regards Duncan
Title: Solved: 2 mail servers on local net
Post by: vladmen on February 15, 2002, 09:26:15 PM
Duncan,

   Thank you for the advice.

I created a custom template in
/etc/e-smith/templates-custom/var/qmail/control/smtproutes/
and called it 30CustomRoutes. That template has only one line in the format

domain.name:[ip.address.of.the.second.server]

Square brackets are neccessary if you do an IP address instead of a name.

Than I just expanded template
/sbin/e-smith/expand-template /var/qmail/control/smtproutes

and everything works.
Title: Re: Solved: 2 mail servers on local net
Post by: Ryan on March 01, 2002, 08:22:50 AM
Would your solution allow me to use SME as a backup MX server to different domain?