Postfix拒收收件人为指定地址的邮件

# 编辑黑名单
cat /etc/postfix/recipient_blocklist
wf@x.yz REJECT
cy@x.yz REJECT
# smtpd_recipient_restrictions 下方添加 check_recipient_access hash:/etc/postfix/recipient_blocklist
cat /etc/postfix/main.cf
...
smtpd_recipient_restrictions =
    reject_non_fqdn_recipient
    reject_unlisted_recipient
    check_recipient_access hash:/etc/postfix/recipient_blocklist
    check_policy_service inet:127.0.0.1:7777
    permit_mynetworks
    permit_sasl_authenticated
    reject_unauth_destination
    check_policy_service inet:127.0.0.1:12340
...

sudo postmap /etc/postfix/recipient_blocklist
sudo systemctl reload postfix