Postfix在Centos 5.11上拒绝?

我喜欢configurationpostfix来拒绝除白名单外的所有电子邮件

我试了一下:

/等/后缀/ sender_access

[email protected] OK [email protected] REJECT 

它正在工作,但我不知道如何使模式匹配的所有地址在最后拒绝所有非列出的地址,如:

 [email protected] OK etc OK etc OK *@* REJECT 

请帮忙

解:

/etc/postfix/main.cf中

 # smtpd_sender_restrictions = permit_mynetworks, check_sender_access regexp:/etc/postfix/sender_access, reject # 

/ etc / postfix / sender_access的格式

 /^.*[email protected]$/ OK /^.*alloweddomain.com$/ OK 

任何其他发件人将被拒绝