我的SMTP服务器被滥用,因为外部地址可以发送电子邮件到像[email protected],[email protected]等地址…
我想限制这些地址的使用只能由具有相同的域名,如[email protected]内部用户(可能来自networking)。
有了这些限制,像[email protected]这样的外部用户无法发送邮件到[email protected],但[email protected]可以。 [email protected]可以发送邮件到[email protected]。
我希望这是很清楚的…我真的不知道如何在Postfix中实现。
我终于find了答案:
我必须在我的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,就是这样!
find这里: http : //www.postfix.org/RESTRICTION_CLASS_README.html#internal