Koozali.org: home of the SME Server

2 mail servers on local net

vladmen

2 mail servers on local net
« 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?

charlie

Re: 2 mail servers on local net
« Reply #1 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.

Duncan

Re: 2 mail servers on local net
« Reply #2 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

vladmen

Solved: 2 mail servers on local net
« Reply #3 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.

Ryan

Re: Solved: 2 mail servers on local net
« Reply #4 on: March 01, 2002, 08:22:50 AM »
Would your solution allow me to use SME as a backup MX server to different domain?