我的收件箱里总是收到大量重复的电子邮件。我怀疑它们是由两个队列处理的:exim 队列和垃圾邮件过滤器队列。我在 Google 上搜索过,但不知道如何检查。以下是日志示例:
2011-07-26 05:02:15 1QlQPu-0004WZ-Oa <= [email protected] U=Debian-exim
P=spam-scanned S=1933
id=CAJ=mMHW_MWB6uQb9vgyoYkbg5V1=9S9BkrPeiYKHmSRdVY4YBw@mail.gmail.com from
<[email protected]> for [email protected]
2011-07-26 05:02:15 1QlQPu-0004WZ-Oa => service ([email protected])
<[email protected]> R=localuser T=local_delivery
2011-07-26 05:07:45 1QlQVE-0004Wr-IB <= [email protected] U=Debian-exim
P=spam-scanned S=1933
id=CAJ=mMHW_MWB6uQb9vgyoYkbg5V1=9S9BkrPeiYKHmSRdVY4YBw@mail.gmail.com from
<[email protected]> for [email protected]
2011-07-26 05:07:45 1QlQVE-0004Wr-IB => service ([email protected])
<[email protected]> R=localuser T=local_delivery
这是关联下载 Exim 4 配置文件。我使用的是 Ubuntu 10.04.3 LTS。请帮忙调查这个问题。谢谢。
更新 1:
/var/log/mail.err 日志的大小为 0。我检查了 mail.err.1 并发现以下几个错误:
Jul 26 23:09:48 webserver spamc[22932]: connect to spamd on 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Jul 26 23:09:49 webserver spamc[22932]: connection attempt to spamd aborted after 3 retries
Jul 27 06:25:02 webserver exim4: ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken
没有任何新的错误。
/var/log/exim4/paniclog.03.gz 包含许多这样的错误:
2011-07-29 23:53:57 1QmnVl-0007Ad-CZ == [email protected] R=spamcheck_router T=spamcheck defer (-24): Transport filter process failed (127): unable to execute command
2011-07-29 23:58:57 1Qmnaa-0007Al-TQ == [email protected] R=spamcheck_router T=spamcheck defer (-24): Transport filter process failed (127): unable to execute command
/var/log/mail.log 充满了这样的消息:
Aug 1 18:52:38 webserver spamd[17229]: prefork: child states: II
Aug 1 18:54:25 webserver spamd[13401]: spamd: connection from localhost [127.0.0.1] at port 35000
Aug 1 18:54:25 webserver spamd[13401]: spamd: setuid to Debian-exim succeeded
Aug 1 18:54:25 webserver spamd[13401]: spamd: processing message <CAM20inbXx7iUgpPdcx4itguf=MbvjAcAibNvVUWkWVTkooAWJg@mail.gmail.com> for Debian-exim:104
Aug 1 18:54:25 webserver spamd[13401]: spamd: clean message (-0.7/5.0) for Debian-exim:104 in 0.5 seconds, 1482 bytes.
Aug 1 18:54:25 webserver spamd[13401]: spamd: result: . 0 - FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL scantime=0.5,size=1482,user=Debian-exim,uid=104,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=35000,mid=<CAM20inbXx7iUgpPdcx4itguf=MbvjAcAibNvVUWkWVTkooAWJg@mail.gmail.com>,autolearn=disabled
答案1
来自远程系统 (gmail) 的消息 ID 相同,但本地消息 ID 不同,并且还有 5 分钟的差异。您是否检查过以确保没有发生超时或过早中断内部 SMTP 会话?
答案2
我们发现该问题是由未正确配置的 SpamAssassin 引起的。禁用它后,所有电子邮件都可以正常发送。