On 1/22/2015 8:42 AM, Joe Acquisto-j4 wrote:

> 
> A better analogy perhaps: it's as if the Postal Service refused to deliver an 
> envelope with one
> addressee because it contained another envelope with several addressees on 
> it.   

A better analogy is the post office refusing to deliver paint
thinner, even with the proper postage.  It's a policy decision, and
well within their rights.

The offending property of the message is the large number of
addresses in the To: header. Many systems will refuse such mail as
local policy.  IMHO this is a reasonable policy; there's no good
reason for a message to have hundreds of addresses in the To: and/or
CC: headers, and there is a real possibility of it causing problems
or complaints.

Solution: don't send mail with hundreds of addresses in the To:
and/or CC: headers.  Whatever tool you're using to create this mail
is broken and needs to be fixed.

Ugly workaround until you fix your mail tool:
use smtp_header_checks to mangle broken To: and CC: headers. Note:
requires postfix 2.5 or newer.  Note: if the mail is DKIM signed,
this will likely break the signature.

http://www.postfix.org/postconf.5.html#smtp_header_checks

Something like:
# main.cf
smtp_header_checks = regexp:/etc/postfix/smtp_header_checks

# smtp_header_checks
# might need to adjust the 2000, I just made that number up.
/^(To|CC): .{2000}/  REPLACE $1: Undisclosed recipients:;





  -- Noel Jones

Reply via email to