后缀:接受除了less数几个域的所有电子邮件地址

在sendmail中,我可以拥有一个catchall地址,拒绝电子邮件去我的别名或virtusertable文件中的某些地址:

[email protected] error:5.1.1:550 User unknown [email protected] michael [email protected] michael [email protected] error:5.1.1:550 User unknown [email protected] error:5.1.1:550 User unknown [email protected] error:5.1.1:550 User unknown @example.com catchall 

但是上述方法在后缀映射中不起作用 – 它试图传递到错误地址。

什么是正确的方式来完成这个在后缀?

这可以使用check_recipient_access指令(main.cf)来完成。

添加一个列出电子邮件地址的文件(接着是reject )并将上述指令指向该文件。

例如check_recipient_access hash:/etc/postfix/deny

/等/后缀/拒绝:

 [email protected] reject 

记得重新加载你的configuration文件 – 也许重新启动后缀。

有关更多信息,请参阅: http : //www.postfix.org/RESTRICTION_CLASS_README.html和http://www.postfix.org/access.5.html