用postfix限制发件人和收件人
对不起,有关这个话题的问题翻倍,但有这么多,有些是非常混乱,有些仍然是“旧”的格式,其他一些不符合我的情况。 smtpd_restriction_classes = allowed allowed = permit smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/restricted_senders, reject smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, permit_sasl_authenticated, check_recipient_access hash:/etc/postfix/recipient_domains, reject_rbl_client zen.spamhaus.org, reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org 我有这个代码工作,但我仍然可以发送邮件到[email protected](一些随机用户) Apr 4 13:40:46 mail-server postfix/local[22937]: 0C1C5160030: to=<[email protected]>, relay=local, delay=0.23, delays=0.23/0/0/0, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail) 和“[email protected]” Apr 4 13:41:42 mail-server postfix/smtpd[22931]: NOQUEUE: reject: RCPT from mail-vk0-f52.google.com[209.85.213.52]: 550 5.1.1 […]