On 4 January 2017 at 18:34, Wietse Venema <wie...@porcupine.org> wrote: > Dominic Raferd: >> >> 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? > > /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). >
Brilliant, thank you Wietse. It didn't like the colon in /etc/postfix/transport so I took it out, otherwise it seems to be working. I will monitor over the coming days (I am only getting these responses from gmail a couple of times per day on average) and check that it is now pulling the offending mails before they get re-sent. Have others previously encountered problems like this? Maybe I am unusual in using gmail for our user mailboxes + postfix for relaying (so we can use our own domain names, dmarc etc while using gmail front ends)? Dominic