Configuration
To correctly configure Postfix, make changes to the main.cf file. Open the file and locate (or create) the section smtpd_recipient_restrictions. Configure it as follows:
smtpd_recipient_restrictions =
...
reject_rbl_client zen.spamhaus.org=127.0.0.[2..11]
reject_rhsbl_sender dbl.spamhaus.org=127.0.1.[2..99]
reject_rhsbl_helo dbl.spamhaus.org=127.0.1.[2..99]
reject_rhsbl_reverse_client dbl.spamhaus.org=127.0.1.[2..99]
warn_if_reject reject_rbl_client zen.spamhaus.org=127.255.255.[1..255]
...
We recommend putting these lines at the top of the smtpd_recipient_restrictions section.
After that, issue a
# /etc/init.d/postfix reload
or, if your system uses systemd
# systemctl reload postfixŹródło Link:






