OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
RE: SASL and content_filter

Victor.Duchovnimorganstanley.com
Date: Wed Feb 18 2004 - 12:06:10 CST


On Wed, 18 Feb 2004, Bill Boebel wrote:

> With the recent Postfix snapshot, it is possible to use the PREPEND feature
> to tell SpamAssassin to whitelist mail that is sent using SMTP Auth. For
> those interested, here is how to do it..

> smtpd_recipient_restrictions =
> permit_sasl_authenticated,
> permit_mynetworks,
> ...
> check_helo_access pcre:/etc/postfix/helo_add_auth_header.regexp,
> ...
> permit

> /etc/postfix/helo_add_auth_header.regexp:
> /.*/ PREPEND X-SMTP-Auth: no
>

This fires for each recipient. It is better to do this in
"smtpd_data_restrictions" which only fires once.

        smtpd_data_restrictions =
                reject_unauth_pipelining,
                permit_sasl_authenticated,
                check_client_access pcre:/etc/postfix/add_auth_header.re

--
        Viktor.