答案1
使用限制类来自后缀的功能
在 main.cf 中
smtpd_restriction_classes = selective_sender
selective_sender = check_sender_access hash:/etc/postfix/blocked_sender
# put in smtpd*restriction
...
check_recipient_access hash:/etc/postfix/recipient_access
...
在 /etc/postfix/recipient_access 中:
[email protected] selective_sender
在 /etc/postfix/blocked_sender 中:
[email protected] REJECT unknown_user