Simon Jones wrote:
Hi,
I have a backup server which will relay for customers if the primary MX is
unreachable, problem is we've been around for years so my backup relays are
known to relay for certain domains. I see a lot of bounced mail in the
logs.
I would like to have qmail only accept mail for relaying if the higher MX
preferences are unreachable, for example is this server is MX 30 for
domain.com and the MX 10 is available the server should reject the message.
Only if MX 10 and MX 20 are unreachable should the server accept mail.
How can I do this?
I have just switched to qmail from sendmail which I have so far found to be
easier to configure and much quicker, so apologies if this is a dumb
question!
I'm not understanding quite what you're trying to do. Most of what you
outlined should work as is. When my server, for example, tries to send
you a message, it will look up the MX records in DNS, and then normally
send to the 30 MX record. If the 30 is unavailable, it moves up to the
20 record, and eventually to the 10 if none of those are available. Or I
could have it backward (goes to 10 first, then moves down). Windows does
it one way, and Linux does it another.
Anyway, the 30 record machine should get the mail, and then hold it
while trying to deliver it to the 10 MX record every 5 minutes until the
value in queuelifetime on that machine is reached - then it bounces it
to the sender. If what you're asking is how to get the other MX record
machine to accept the emails, the only thing you need to do is add the
domain to the /var/qmail/control/rcpthosts file and it will accept
emails for that domain, and try to deliver them to the 10 MX machine.
Let me know if you were looking for some different information.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]