如何拒绝在postfix中从外部源发送到[email protected]的邮件

我有一个正确configuration的postfix邮件服务器(我希望),并在openSUSE 11.3上运行。 我可以从任何位置向本地用户发送电子邮件,但这也意味着我(或任何其他人)可以将远程电子邮件发送到根帐户。 如何拒绝远程电子邮件到根帐户,同时允许普通用户接收电子邮件?

拒绝某些地址的正确方法是将此指令放在main.cf文件中:

smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access ... 

然后在/ etc / postfix / recipient_access文件中:

 root@domain REJECT 

其次是通常的:

 postmap /etc/postfix/recipient_access 

我想如果你编辑/ etc / postfix / sender_access并添加:

 root@$mydomain REJECT 

但我不完全确定。

编辑:尝试使用/ etc / postfix / header_checks与“到”标题。