Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: spittingfire on October 26, 2004, 05:24:33 PM
-
Here is the scenario. I have 2 domains abc.com and xyz.com. Each is being hosted on individual servers. SME 6.01 is the gateway server in this case. On SME 6.01 I'm hosting abc.com and on the windows server I'm hosting xyz.com using exchange server as the mail server. What I need to do is have SME 6.01 collect all the mails for both domains and then route all emails for xyz.com to the exchange server for distribution. Does anyone out there know how I can go about setting this up correctly from SME 6.01?
Thanks in advance
-
I think what you are looking for is 'smtproutes'. This would go in the /var/qmail/control directory. You will need to make a custom-template for it though or it might get wiped out.
more /var/qmail/control/smtproutes
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation
#------------------------------------------------------------
Man page for smtproutes:
smtproutes
Artificial SMTP routes. Each route has the form domain:relay, without any extra spaces. If domain matches host, qmail-remote will connect to relay, as if host had relay as its only MX. (It will also avoid doing any CNAME lookups on recip.) host may include a colon and a port number to use instead of the normal SMTP port, 25:
inside.af.mil:firewall.af.mil:26
relay may be empty; this tells qmail-remote to look up MX records as usual. smtproutes may include wildcards:
.af.mil:
:heaven.af.mil
Here any address ending with .af.mil (but not af.mil itself) is routed by its MX records; any other address is artificially routed to heaven.af.mil.
The qmail system does not protect you if you create an artificial mail loop between machines. However, you are always safe using smtproutes if you do not accept mail from the network.
Hope that helps,
Jon