- 论坛徽章:
- 0
|
原帖由 xuezs 于 2005-11-7 14:15 发表
10月17日上午,公司的邮件系统感染了一个不知名的、防病毒软件无法识别的病毒,使部分用户的电脑中招。后来通过分析病毒的特征,在邮件系统设置了规则,阻止特定的发件人,从而迅速地控制了病毒的传播。以下是详细 ...
利用postfix 来拒绝这样的病毒的配置如下:
在main.cf里,编辑smtpd_recipient_restrictions ,增加一个check_sender_access即可。如:
smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/anti-virus,
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname,
reject_rbl_client list.dsbl.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl-xbl.spamhaus.org
anti-virus文件内容:
保存main.cf并重新生成hash,postmap /etc/postfix/anti-virus,重新启动postfix即可。 |
|