Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started 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?
-
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.
-
You need to edit your /var/qmail/control/smptroutes to add additional routes to the qmail mail server.
Regards Duncan
-
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.
-
Would your solution allow me to use SME as a backup MX server to different domain?