Hi,
I wonder how to bypass a dspam filter for some sender only (aka a
filter whitelist), the issue is that i'm using a double filtering
system :
#main.cf
smtpd_recipient_restrictions =
...
reject_unauth_destination,
...
check_recipient_access hash:/usr/local/etc/postfix/
antivirus.mygen,
...
permit
#antyvirus.mygen, one line per recip that need antivirus check
[EMAIL PROTECTED] FILTER scan:127.0.0.1:10026
#master.cf
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n - n - 16 smtpd
-o content_filter=
-o
receive_override_options
=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
127.0.0.1:10028 inet n - n - 16 smtpd
-o content_filter=dspam:unix:/var/run/dspam.sock
-o
receive_override_options
=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
dspam unix - - n - 5 lmtp
-o lmtp_send_xforward_command=yes
the antivirus filter (clamsmtpd) send back to 127.0.0.1:10028 using
smtp, postfix send to dspam using LMTP, and dspam send back to postfix
for delivery using SMTP again on 10025
now how to bypass dspam for some *senders* ?
i planned to use an option on 127.0.0.1:10028 this way :
-o smtpd_sender_restrictions=check_sender_access hash:/usr/local/etc/
postfix/dspam_whitelist
where dspam_whitelist would contain a fake filter :
[EMAIL PROTECTED] FILTER scan:[127.0.0.1]:10025
but of course this doesn't work because spaces are not allowed after -
o smtpd_sender_restrictions= (fatal: unexpected command-line argument:
hash:/usr/local/etc/postfix/dspam_whitelist)
so, how to achieve this ?
thanks in advance for any tips
Regards,
David.