可能是一个简单的问题,但我试图locking哪些用户可以从本地机器发送电子邮件。 我已经locking哪些可以通过在/ etc / postfix / allowed_recipients文件上运行newaliases并设置类似于
smtpd_recipient_restrictions = hash:/etc/postfix/allowed_recipients, reject
它工作,但我怎么能做同样的发件人限制?
smtpd_sender_restrictions = reject_unknown_sender_domain, reject_unlisted_sender, check_sender_access hash:/etc/postfix-internal/localusers, reject
在本地用户,列出每个确定的地址
[email protected] OK [email protected] OK
或者您可以添加一个域,然后只列出块
example.com OK [email protected] 550 Account compromised [email protected] 550 Account closed