외부 대상과 메일을 주고받을 수 있는 사용자를 제한합니다.

외부 대상과 메일을 주고받을 수 있는 사용자를 제한합니다.

저는 약 2000개의 이메일 계정을 가지고 있습니다. 일부 사용자는 인터넷에서 이메일을 보내고 받을 수 있지만 다른 사용자는 그렇지 못하도록 postfix를 구성하려면 어떻게 해야 합니까? 지금까지 나는 이 수동 제한 전송을 따르고 있습니다. http://www.postfix.org/RESTRICTION_CLASS_README.html#external

/etc/postfix/main.cf:    
smtpd_recipient_restrictions =  check_sender_access hash:/etc/postfix/restricted_senders,
                                check_recipient_access hash:/etc/postfix/blacklist,
                                reject_unauth_pipelining,
                                reject_non_fqdn_sender,
                                reject_non_fqdn_recipient,
                                reject_unknown_sender_domain,
                                reject_unknown_recipient_domain,
                                permit_mynetworks,
                                permit_sasl_authenticated,
                                reject_unauth_destination,
                                check_client_access hash:/etc/postfix/rbl_override,
                                reject_rbl_client cbl.abuseat.org,
                                reject_rbl_client sbl-xbl.spamhaus.org,
                                ....
                                check_policy_service inet:127.0.0.1:10023,
                                permit
smtpd_restriction_classes =     local_only
local_only                =     check_recipient_access hash:/etc/postfix/local_domains, reject

/etc/postfix/restricted_senders:                    
[email protected]             local_only
[email protected]             local_only

/etc/postfix/local_domains:
mydomain.com                OK
mysubdomain.mydomain.com    OK

postmap 명령을 실행합니다.

postmap /etc/postfix/restricted_senders
postmap /etc/postfix/local_domains

postfix 서비스를 다시 시작합니다.

이 설정으로, [이메일 보호됨]mydomain.com 이외의 이메일 주소로 이메일을 보내는 것은 불가능합니다(틀린 경우 정정해 주세요).

나는 웹 기반 클라이언트를 사용하고 다음에서 이메일을 보냅니다.[이메일 보호됨]Gmail, Yahoo 등으로, Gmail, Yahoo 사용자는 다음에서 액세스할 수 있습니다.[이메일 보호됨].

여기서 무슨 문제가 있습니까?

관련 정보