Hi there,
This is the scenario. We have a customer who had one MX record pointing to
our mail server so we handled mail for that domain by putting in a rcpthosts
entry and a virtualdomains entry pointing mail to one mailbox, everything
worked fine.
The customer then took mail into their own hands. The MX was pointed
elsewhere, dns was updated throughout the entire network including our mail
server.
When i try to send a mail to that domain now, instead of going to the new
mail server, the mail still comes back to our mail server, even though the
MX record is correct.
I had a play around and found out the following. If you remove the entry
from the rcpthosts, mail still doesn't go to the new mail server. If you,
however, remove the entry from the virtualdomains file and leave it in the
rcpthosts (possible for secondary mail purposes) then it works.
Why is this? Why doesn't qmail forget its own control files and read
straight off the MX?
I remember this argument before and remember people saying that qmail reads
the MX records first - obviously this is not the case!
Regards,
Marc-Adrian Napoli
Network Administrator
Connect Infobahn Australia
+61 2 9281 1750