我想拒绝任何入站电子邮件到[email protected],一个更多的人会希望这将是内部分配组/别名的一个例子。
我试过header_checks没有成功:
zmlocalconfig -e postfix_header_checks="pcre:/opt/zimbra/conf/custom_header_checks"
/ opt / zimbra / conf / custom_header_checks的内容
/^To:[email protected]/ REJECT Mailbox no longer valid
但是我还是没有被拒绝。
我也尝试了一些从拒绝的configuration发送电子邮件给特定的收件人Postfix,因为他有东西configuration在我正在寻找的东西。
zmlocalconfig -e smtpd_recipient_restrictions=check_recipient_access hash:/opt/zimbra/conf/custom_recipient_blocklist
/select/ Zimbra公司/ conf目录/ custom_recipient_blocklist
[email protected]/ REJECT
这也没有按预期工作。
问题是hash没有列在postconf -m
每个地址访问控制的最终configuration
postconf -e smtpd_recipient_restrictions='reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unlisted_recipient, reject_invalid_helo_hostname, reject_non_fqdn_sender, check_recipient_access lmdb:/opt/zimbra/conf/postfix_recipient_access, permit'
/ opt / zimbra / conf / postfix_recipient_access的内容
[email protected] REJECT
rcpt to:[email protected]
5.74:收件人地址被拒绝:访问被拒绝
要进行更改,
echo [email protected] reject >> /opt/zimbra/conf/postfix_recipient_access postmap /opt/zimbra/conf/postfix_recipient_access