How to stop SPAM with Postfix RBL

To stop spam using RBL in postfix, edit main.cf

vi /etc/postfix/main.cf

Add

smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_unauth_destination,
    reject_invalid_hostname,
    reject_unauth_pipelining,
    reject_non_fqdn_sender,
    reject_unknown_sender_domain,
    reject_non_fqdn_recipient,
    reject_unknown_recipient_domain,
    reject_rbl_client cbl.abuseat.org,
    reject_rbl_client bl.spamcop.net,
    reject_rbl_client sbl.spamhaus.org,
    reject_rbl_client zen.spamhaus.org,
    permit

Restart postfix

systemctl restart postfix

See postfix

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *