Bypass spam check for Auth users in postfix

Posted by magiza83 on Server Fault See other posts from Server Fault or by magiza83
Published on 2012-05-30T15:37:49Z Indexed on 2012/05/31 16:42 UTC
Read the original article Hit count: 389

Filed under:
|
|
|

I would like to know if there is any option to "FILTER" auth users in postfix. Let me explain me better, I have the amavis and dspam services between postfix(25) and postfix(10026) but I would like to avoid this check if the users are authenticated.

postfix(25)->policyd(10031)->amavis(10024)->postfix(10025)->dspam(dspam.sock)->postfix(10026)--->cyrus
   |                                                                               /|\
   |________auth users______________________________________________________________|

my conf is:

main.cf

...
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_path = smtpd


smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        reject_unauth_destination,
        check_policy_service inet:127.0.0.1:10040,
        reject_invalid_hostname,
        reject_rbl_client multi.uribl.com,
        reject_rbl_client dsn.rfc-ignorant.org,
        reject_rbl_client dul.dnsbl.sorbs.net,
        reject_rbl_client list.dsbl.org,
        reject_rbl_client sbl-xbl.spamhaus.org,
        reject_rbl_client bl.spamcop.net,
        reject_rbl_client dnsbl.sorbs.net,
        reject_rbl_client cbl.abuseat.org,
        reject_rbl_client ix.dnsbl.manitu.net,
        reject_rbl_client combined.rbl.msrbl.net,
        reject_rbl_client rabl.nuclearelephant.com,
        check_policy_service inet:127.0.0.1:10031,
        permit_mynetworks,
        reject
...

I would like something like "FILTER smtp:localhost:10026" in case they are authenticated, because in my actual configuration i'm only avoiding policyd, but not amavis and dspam.

Thanks.

© Server Fault or respective owner

Related posts about postfix

Related posts about ldap