我已经部分地按照这里的指南(系列)设置了我自己的邮件服务器
筛选规则是:
... truncated ... # Trash messages with improperly formed message IDs if not header :regex "message-id" ".*@.*\\." { fileinto :create "Junk"; } if header :contains "X-Virus-Status" "Infected" { discard; stop; } if header :contains "X-Spam-Level" "*****" { fileinto :create "Junk"; setflag "\\Seen"; }
我在改变之后立即编译它。 重新启动鸽子。
不过,我看到日志:
2016-05-16 22:01:43 lda([email protected]): Info: sieve: msgid=emailsecuritycheck.net.2.becsz*6nYwm7BtlKdQRYXg==: stored mail into mailbox 'Junk' 2016-05-16 22:01:43 lda([email protected]): Info: sieve: msgid=emailsecuritycheck.net.2.becsz*6nYwm7BtlKdQRYXg==: marked message to be discarded if not explicitly delivered (discard action)
我从这里使用EICARtesting服务。
当我使用这项服务时,筛子工作正常(无视直接)
你有什么想法,为什么我仍然看到电子邮件,而不是丢弃它?
第二封电子邮件包含testing病毒,不是垃圾邮件,其病毒头是:
MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=XXX X-Virus-Scanned: clamav-milter 0.99.1 at mail.example.com X-Virus-Status: Infected (Eicar-Test-Signature)