I've configured a postfix with policyd to manage whitelist/blacklist. But my main problem is:
If one email is sended to a recipient and there are some CC o BCC that is blacklisted, all the email is "discarded" and it does not arrived to the main recipient, even if it is allowed.
So, it looks like if some recipient (RCPT to, cc o bcc) is blacklisted, postfix + policyd discard all the email. I think this should not be the normal behaviour, am I wrong?
Is there any configuration that allow that? or I am misunderstanding something. here is a partial postfix conf:
smtpd_recipient_restrictions = reject_unauth_pipelining, reject_non_fqdn_sender, reject_non_fqdn_recipient, #policyd check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unverified_recipient, check_policy_service inet:127.0.0.1:10045, reject_rbl_client bl.spamcop.net, reject_rbl_client psbl.surriel.com, reject_rbl_client sbl.spamhaus.org, reject_rbl_client xbl.spamhaus.org, reject_rbl_client zen.spamhaus.org, reject_rbl_client combined.rbl.msrbl.net, reject_rbl_client relays.ordb.org, reject_rbl_client list.dsbl.org, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client dnsbl.njabl.org, permit
If someone needs more information, do not hesitate to ask for it!
thanks for you help!