Entry
When I forward local mail to another server with the same domain name I get errors that my mail is looping. How do I get by this?
Sep 7th, 2001 07:29
Frank Tegtmeyer, Chris Lane,
Give the servers additional (subdomain-) names. If for example both
servers are used for users of example.com, put s1.example.com at the
first server and s2.example.com at the second server into
/var/qmail/control/locals (and rcpthosts)
If you forward mail from one server to the other then use the additional
name.
Example:
Server 1 receives mail for not-here@example.com. It's not a local
account, so create /var/qmail/alias/.qmail-not-here-default:
----------------------------------------------------
| /var/qmail/bin/forward "$DEFAULT@s2.default.com"
----------------------------------------------------
Beware that this immediately breaks if a user "not" is created on the
first server!
If there is a huge number of users to forward you should create a
program that does the forwarding. This may be called in the file
/var/qmail/alias/.qmail-default then.
If you are not able or not willing to put the additional servernames
into the DNS you also have to give qmail the routing information in
/var/qmail/control/smtproutes:
---------------------------
s2.example.com:192.168.1.1
---------------------------
Of course you have to put in the correct values for your setup.
Frank Tegtmeyer