Topic: DNSBLs in main.cf not working
I've added both Spamhaus ZEN and Spamcop DNS blacklists in the postfix 'main.cf' configuration file and it is failing to work. I put the 'reject_rbl_client' directive for each of the DNSBLs, 'zen.spamhaus.org' and 'bl.spamcop.net', within the 'smtpd_recipient_restrictions' directive. The line looks like this:
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
I've sent mail to my server from a Spamhaus ZEN listed IP and am not being disconnected at any stage of the mail transmission process; in fact, I can send an e-mail in just fine. According to the documentation, a host that is blocked is supposed to receive a 55x SMTP error code during the session.
I've searched the posts on this forum for a remedy and all of the advice (including solved issues, so it's working for someone!) is to setup the configuration as I have it. Am I missing something else somewhere? My main.cf is stock to iRedMail with the exception of the modification I made to the smtpd_recipient_restrictions directive.
Get fast and professional support from iRedMail developers: