Domains hosted by Google Apps use the same MX servers and sendmail will
deliver mail to multiple recipients with the same MX in a single
transaction (sensibly). Unfortunately, Google have seen fit to reject
recipients with a domains that do not match the first on in the
transaction, i.e.
send to
us...@domain1.com - OK
send to
us...@domain2.com - OK
send to
us...@domain1.com and
us...@domain1.com - OK
send to
us...@domain1.com and
us...@domain2.com - REJECT 2nd rcpt
Message is:
451-4.3.0 Multiple destination domains per transaction is unsupported.
Please
451 4.3.0 try again. fa9si788651wic.42 - gsmtp
Yes, I can work round with SMTP_MAILER_MAXRCPTS=1, but that's very
suboptimal. Similarly, I could set up a new mailer with r=1 and then use
mailertable, but this would require an entry for each affected domain.
Is there a way to either:
- tell sendmail to batch by domain rather than by MX
- select mailers on the basis of MX server being connected to (so you
could blacklist Google's MX servers)
--
Stephen