MS unable to detect From address from DSN and failure notice emails

Mike Jakubik mikej at
Fri Aug 11 17:25:48 IST 2006

Matt Kettler wrote:
> Mike Jakubik wrote:
>> The other day i noticed that Always looked up last and the mailwatch
>> logging script is not logging the From address on any DSN or failure
>> type emails sent by the mailer-daemon@ or postmaster at . The problem is
>> bigger than just logging itself, as this influences the scoring with the
>> rule NO_REAL_NAME, so a lot of them get marked as spam. Here are two
>> example headers:
> Most DSN's are sent with a From: HEADER that contains mailer-daemon, or
> postmaster. However by RFC requirements the ENVELOPE From is <> (empty or null
> address).
> This much should explain the logging, as MailScanner is logging the envelope
> from, not the content of the body-text From: header. Sendmail MTA's copy the
> envelope from to the "Return-Path" header upon delivery. I'm not sure what
> postfix does, but you might want to check it. To see what your MTA is using,
> this message should have an envelope from of
> "mailscanner-bounces at", not mkettler at

Thanks for the info, here is what i saw in the headers:

Return-Path: <mailscanner-bounces at>
X-MailScanner-From: mailscanner-bounces at

Perhaps i should take this issue up on the postfix lists? But im sure as 
soon as i mention MailScanner, i wont get much help :P

> The NO_REAL_NAME bit does influence the score, but that alone shouldn't be
> causing these to be tagged as spam.. What other SA rules are firing off here?

The server actually had a SPF problem caused by a firewall, so every 
email was failing.

More information about the MailScanner mailing list