この記事と同じ手順で設定したPostfixを使用する。
AlmaLinux release 9.6 (Sage Margay) postfix 3.5.25
“reject_rbl_client zen.spamhaus.org”のようにRBLを指定していく。
※変更箇所のみ記載
# 変更前 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
reject_rbl_client zen.spamhaus.org, reject_rbl_client cbl.abuseat.org, reject_rbl_client bl.spamcop.net,
reject_unauth_destination
Postfixの設定を再読み込みする。
# systemctl reload postfix