
수신 이메일을 거부하고 싶습니다.[이메일 보호됨], 더 많은 사람들이 원하는 예는 내부 메일 그룹/별칭입니다.
나는 성공하지 못한 채 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
그러나 나는 아직도 거절을 당하지 않습니다.
나는 또한Postfix를 사용하여 특정 수신자에게 이메일 보내기를 거부합니다.왜냐하면 그는 내가 찾고 있는 것을 거꾸로 구성했기 때문입니다.
zmlocalconfig -e smtpd_recipient_restrictions=check_recipient_access hash:/opt/zimbra/conf/custom_recipient_blocklist
/opt/zimbra/conf/custom_recipient_blocklist
[email protected]/ REJECT
이 역시 의도한 대로 작동하지 않았습니다.
답변1
문제는 hash
목록에 없습니다.postconf -m
최종 구성주소별 액세스 제어
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
수신자:[이메일 보호됨]
554 5.7.1 : 수신자 주소 거부됨: 접근 거부됨
변경하려면,
echo [email protected] reject >> /opt/zimbra/conf/postfix_recipient_access
postmap /opt/zimbra/conf/postfix_recipient_access