Victor: Thanks again for the suggestions. Having removed fallback_relay has stopped the loops, but I am still challenged in setting up the failover to the second relayhost.
Unless there is something I am missing, using a local DNS server to create the failover isn't an option for me. I can't use A records to point to the relayhosts because the Ips might change over time without my knowledge. If I use cnames to relay to, I have a problem setting up cnames for additional relayhosts. It seems to work fine with A records, and if I knew for a fact that the IPs would not change I would be happy to use this config. Trying to use a * transport declaration works fine, as long as my local mailbox server is working correctly. If it goes down, however, I have the same mail loop problem. Here are the pieces of the config that might explain why I am having trouble with it. Master.cf has relay unix - - n - - smtp -o fallback_relay=secondrelayhost.relaydomain.com Main.cf has relay_transport = relay Transport has * relay: firstrelayhost.relaydomain.com Do you have any suggestions? Thanks! Jg On 3/30/10 1:06 PM, "Victor Duchovni" <victor.ducho...@morganstanley.com> wrote: > On Tue, Mar 30, 2010 at 12:52:28PM -0400, Jon Giles wrote: > >> So I set this up in the main.cf file. >> >> relay_domains = maildomain1 maildomain2 maildomain3 >> relayhost = to the DNS name of the email archiving service >> fallback_relay = to the second DNS name of the email archiving service > > DO NOT use fallback_relay here. Rather use internal DNS MX records, to > specify a single relayhost domain name with multiple underlying hosts. > >> In a transport file: >> >> maildomain1 :[mailboxserverIP] >> maildomain2 :[mailboxserverIP] >> maildomain3 :[mailboxserverIP] >> Etc. >> >> Everything works fine, except when we have a problem with the mailbox server. >> When the mailbox server can not accept email for any reason we get mail loops >> on incoming mail. >> > > DO NOT use fallback_relay, and the problem will go away. > > If you simply cannot configure DNS, use a separate relay_transport, > with "-o smtp_fallback_relay=..." in master.cf for the dedicated > transport. Jon Giles Network Engineer The CDM Group 220 East 42nd Street, New York, New York 10017 p: (212) 450-2912 -------------------------------------------------------------------------- Please consider the environment before printing this e-mail. -------------------------------------------------------------------------- -------------------------------------------------------------------------- Privileged/Confidential Information may be contained in this message. Any strategies and tactics described herein or in attachments are subject to legal and regulatory approval prior to implementation. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail of this kind. Opinions, conclusions, and other information in this message that do not relate to the official business of The CDM Group shall be understood as neither given nor endorsed by it.