Dominic Raferd:
> > You can reduce the number of MX hosts to try to just 1, by setting
> > up an SMTP client for gmail etc. that has
> >
> > smtp -o smtp_mx_session_limit=1
> >
> > With that, Postfix still tries multiple MX hosts until one responds,
> > and you will have $min_backoff-time or more to dig into the queue
> > and remove the offending message.
>
> Thanks Wietse that sounds like a good plan, how would I set up a
> 'special' smtp client for gmail servers with the reduced mx session
> limit? I think I know how to create the special client in master.cf,
> but how do I tell the delivery agent (queue?) to use this smtp client
> for gmail destinations (and not for others)?
/etc/postfix/main.cf:
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport:
gmail.com: one-mx-session
...ditto for other domains...
/etc/postfix/master.cf:
one-mx-session unix - - - - - smtp
-o smtp_mx_session_limit=1
And leave smtp_mx_address_limit alone (don't set it to 1, otherwise
mail will back up in the queue for no good reason).
Wietse