主题: 要过几个小时才能收到信啊,是什么原因

iRedMail-0.7.3

CentOS Linux release 6.0 (Final)

前几天停电,后不正常 ,收邮件要晚几个小时,上午10点发出的邮件,到下午1点多才收到

下面是两个日志,请问是什么问题!

[root@mail ~]# tail /var/log/messages
Jul  9 15:24:22 mail fail2ban.filter : WARNING Unable to find a corresponding IP address for =
Jul  9 15:30:43 mail clamd[1522]: SelfCheck: Database status OK.
Jul  9 15:34:30 mail fail2ban.filter : WARNING Unable to find a corresponding IP address for =
Jul  9 15:34:34 mail fail2ban.filter : WARNING Unable to find a corresponding IP address for =
Jul  9 15:40:58 mail clamd[1522]: SelfCheck: Database status OK.
Jul  9 15:44:42 mail fail2ban.filter : WARNING Unable to find a corresponding IP address for =
Jul  9 15:44:46 mail fail2ban.filter : WARNING Unable to find a corresponding IP address for =
Jul  9 15:51:01 mail clamd[1522]: SelfCheck: Database status OK.
Jul  9 15:54:52 mail fail2ban.filter : WARNING Unable to find a corresponding IP address for =
Jul  9 15:54:57 mail fail2ban.filter : WARNING Unable to find a corresponding IP address for =


[root@mail ~]# tail /var/log/maillog
Jul  9 16:00:33 mail postfix/cleanup[16334]: 63488A16C1: message-id=<359404d3.2f59.1386ac0fed0.Coremail.dl-mould_design@163.com>
Jul  9 16:00:34 mail postfix/qmgr[1876]: 63488A16C1: from=<dl-mouldd_dessign@163.com>, size=534527, nrcpt=1 (queue active)
Jul  9 16:00:34 mail postfix/smtpd[6178]: disconnect from unknown[220.181.14.6]
Jul  9 16:00:34 mail amavis[18042]: (18042-07) (!)connect_to_sql: unable to connect to DSN 'DBI:mysql:database=amavisd;host=127.0.0.1;port=3306': Can't connect to MySQL server on '127.0.0.1' (111)
Jul  9 16:00:34 mail amavis[18042]: (18042-07) (!!)TROUBLE in check_mail: sql-enter FAILED: connect_to_sql: unable to connect to any dataset at (eval 100) line 241, <GEN102> line 31.
Jul  9 16:00:34 mail amavis[18042]: (18042-07) (!)PRESERVING EVIDENCE in /var/spool/amavisd/tmp/amavis-20120709T160034-18042
Jul  9 16:00:34 mail postfix/smtp[16577]: 63488A16C1: to=<wyn1983@arrkshangent.com.cn>, relay=127.0.0.1[127.0.0.1]:10024, delay=1, delays=0.87/0/0/0.13, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=18042-07, sql-enter FAILED: connect_to_sql: unable to connect to any dataset at (eval 100) line 241, <GEN102> line 31. (in reply to end of DATA command))
Jul  9 16:00:41 mail postfix/smtpd[16483]: connect from unknown[192.168.0.162]
Jul  9 16:00:41 mail postfix/smtpd[16483]: warning: Illegal address syntax from unknown[192.168.0.162] in RCPT command: <QDd30s25@.QQ.COM>
Jul  9 16:00:41 mail postfix/smtpd[16483]: disconnect from unknown[192.168.0.162]

回复: 要过几个小时才能收到信啊,是什么原因

停用Amavisd + ClamAV + SpamAssassin 之后,收发邮件都 正常了,还有
网上发邮件进不去了,出现
DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.

是什么问题,

为什么关了Amavisd + ClamAV + SpamAssassin 就正常呢,不关要如何解决问题呢?!

回复: 要过几个小时才能收到信啊,是什么原因

嘗試/etc/init.d/mysql restart  及 /etc/init.d/fail2ban stop 看看吧

回复: 要过几个小时才能收到信啊,是什么原因

Jul  9 16:00:34 mail amavis[18042]: (18042-07) (!!)TROUBLE in check_mail: sql-enter FAILED: connect_to_sql: unable to connect to any dataset at (eval 100) line 241, <GEN102> line 31.

这里已经很清楚了,MySQL 服务没有启动。
Amavisd 里使用了 MySQL 来保存收发的邮件相关的信息,所以 MySQL 无法使用会导致邮件停留在 amavisd 这一环节。

回复: 要过几个小时才能收到信啊,是什么原因

我开启了Amavisd扫病毒,mysql就会停掉,然后造成要过几个小时才能收到信啊。
再开mysql一样,所以还是没搞清问题出在哪里?

关掉又很多垃圾邮件,现在要如何查问题啊!请教