On Mon, 16 Jul 2007 at 17:16 -0400, [EMAIL PROTECTED] confabulated:

Matthew Dickinson wrote:
Hi,

Whilst trying to use Botnet on my machine running SA 3.2.1 and postfix -
I've come to the conclusion that SA is unable to pickup authentication
headers provided by postfix (smtpd_sasl_authenticated_header yes).

As far as I  can see...

From Mail/SpamAssassin/Message/Metadata/Received.pm:
  # Postfix 2.3 and later with "smtpd_sasl_authenticated_header yes"
  elsif (/\) \(Authenticated sender: \S+\) by \S+ \(Postfix\) with /) {
    $auth = 'Postfix';
  }

However, the headers I'm getting from postfix look like:
Received: from MYPC (unknown [77.xxx.xx.xx])
    (Authenticated sender: [EMAIL PROTECTED])

Something is screwed up with your Postfix install if it is omitting the "by" whatever part or the header Received field value.

If you just omitted the "by whatever.server (Postfix) with" part in your post, then I see no reason why the regex wouldn't match.



The regex should match. This is the actual header that is inserted:

Received: from ed2 (x-x-x-x.dvnp.qwest.net [x.x.x.x])
    (Authenticated sender: [EMAIL PROTECTED])
    by ob1.example.com (Postfix) with ESMTP id B93B29B464;
    Mon, 16 Jul 2007 21:20:03 +0000 (UTC)



And the source (postfix/src/smtpd/smtpd.c) seems to back this up:
out_fprintf(out_stream, REC_TYPE_NORM,
                        "\t(Authenticated sender: %s)", STR(username));

Is this something that needs changed in SA - or something in postfix?

Thanks!

Matthew





-------
  _|_
 (_| |

Reply via email to