
간단한 질문일 수도 있지만 로컬 컴퓨터에서 이메일을 보낼 수 있는 사용자를 잠그려고 합니다. /etc/postfix/allowed_recipients 파일에서 newaliases를 실행하고 It works와 비슷한 것을 설정하여 수신할 수 있는 항목을 잠갔습니다.
smtpd_recipient_restrictions = hash:/etc/postfix/allowed_recipients, reject
하지만 발신자 제한에 대해 어떻게 동일한 작업을 수행할 수 있습니까?
답변1
smtpd_sender_restrictions = reject_unknown_sender_domain, reject_unlisted_sender, check_sender_access hash:/etc/postfix-internal/localusers, reject
로컬 사용자 내부에서 각 OK 주소를 나열하십시오.
[email protected] OK
[email protected] OK
또는 도메인을 추가한 다음 블록만 나열할 수 있습니다.
example.com OK
[email protected] 550 Account compromised
[email protected] 550 Account closed
답변2
postfix 문서를 살펴보세요.http://www.postfix.org/RESTRICTION_CLASS_README.html