This tutorial is available in other languages
English /
创建文本文件 /etc/postfix/accepted_unauth_senders
,列出无需身份验证就可以
发送邮件的用户邮件地址。下面以用户 user@example.com
为例:
user@example.com OK
使用 postmap
命令建立哈希数据库文件:
# postmap hash:/etc/postfix/accepted_unauth_senders
修改 Postfix 配置文件 /etc/postfix/main.cf
以使用该文件:
smtpd_sender_restrictions =
check_sender_access hash:/etc/postfix/accepted_unauth_senders,
[...OTHER RESTRICTIONS HERE...]
重启 postfix 服务以使设置生效:
# /etc/init.d/postfix restart
All documents are available in BitBucket repository, and published under Creative Commons license. You can download the latest version for offline reading. If you found something wrong, please do contact us to fix it.