![Postfix 将特定地址上的传入电子邮件限制为同一域的地址](https://linux22.com/image/710073/Postfix%20%E5%B0%86%E7%89%B9%E5%AE%9A%E5%9C%B0%E5%9D%80%E4%B8%8A%E7%9A%84%E4%BC%A0%E5%85%A5%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E9%99%90%E5%88%B6%E4%B8%BA%E5%90%8C%E4%B8%80%E5%9F%9F%E7%9A%84%E5%9C%B0%E5%9D%80.png)
答案1
我终于找到了答案:
我必须在我的 postfix main.cf 文件中添加一个访问文件
/etc/postfix/main.cf:
smtpd_recipient_restrictions =
...
check_recipient_access hash:/etc/postfix/access
/etc/postfix/access:
[email protected] permit_mynetworks,reject
[email protected] permit_mynetworks,reject
对访问文件进行 postmap,重新启动 Postfix,就完成了!
发现于此处:http://www.postfix.org/RESTRICTION_CLASS_README.html#internal