如何设置postfix,以便只允许[email protected]和[email protected]发送电子邮件到地址[email protected] ?
我见过一些类似的指南,但并不是这个例子。 此外,后缀手册是复杂的,所以我会很感激这个工作的例子片段。 谢谢!
请看http://www.postfix.org上的保护内部电子邮件分发列表 。 最后一个例子似乎是你想要的。
/etc/postfix/main.cf文件:
smtpd_recipient_restrictions = ... check_recipient_access hash:/etc/postfix/protected_destinations ...the usual stuff... smtpd_restriction_classes = insiders_only insiders_only = check_sender_access hash:/etc/postfix/insiders, reject
/ etc / postfix / protected_destinations(需要用postmap编译):
[email protected] insiders_only
/ etc / postfix / insiders(需要用postmap编译):
[email protected] OK [email protected] OK