主题: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

## 发送给QQ的日志情况--
Nov 17 14:17:28 mail postfix/smtpd[26135]: connect from unknown[202.153.206.231]
Nov 17 01:17:30 mail postfix/smtpd[26135]: 18EC936A96DC: client=unknown[202.153.206.231], sasl_method=LOGIN, sasl_username=cs@voomga.com
Nov 17 14:17:30 mail postfix/cleanup[25697]: 18EC936A96DC: message-id=<201111171417272812749@voomga.com>
Nov 17 14:17:30 mail postfix/qmgr[24139]: 18EC936A96DC: from=<cs@voomga.com>, size=1594, nrcpt=1 (queue active)
Nov 17 14:17:30 mail postfix/smtp[26146]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Nov 17 01:17:30 mail postfix/smtp[26146]: 18EC936A96DC: to=<17501444@qq.com>, relay=none, delay=0.89, delays=0.89/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Nov 17 01:17:30 mail postfix/smtpd[26135]: disconnect from unknown[202.153.206.231]

## 接收的时候的日志情况
Nov 17 14:19:27 mail postfix/smtpd[26202]: connect from unknown[202.85.220.206]
Nov 17 01:19:28 mail postfix/smtpd[26202]: 106E536A96E2: client=unknown[202.85.220.206]
Nov 17 14:19:28 mail postfix/cleanup[24362]: 106E536A96E2: message-id=<201111171419245150972@cy2009.com>
Nov 17 14:19:28 mail postfix/qmgr[24139]: 106E536A96E2: from=<likaixiang@cy2009.com>, size=2123, nrcpt=1 (queue active)
Nov 17 01:19:28 mail postfix/smtpd[26202]: disconnect from unknown[202.85.220.206]
Nov 17 14:19:28 mail postfix/smtp[26205]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Nov 17 01:19:28 mail postfix/smtp[26205]: 106E536A96E2: to=<cs@voomga.com>, relay=none, delay=0.61, delays=0.61/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)


## 查看这个日志的情况.
tail -f /var/log/sieve.log
Nov 17 14:10:45 deliver(www@yeapgame.com): Fatal: Plugin sieve not found from directory /usr/lib64/dovecot/lda
Nov 17 14:10:45 deliver(www@yeapgame.com): Fatal: Plugin sieve not found from directory /usr/lib64/dovecot/lda
Nov 17 14:10:45 deliver(www@yeapgame.com): Fatal: Plugin sieve not found from directory /usr/lib64/dovecot/lda

## 启动不起来amavisd服务.
[root@mail ~]# /etc/init.d/amavisd restart
Shutting down Mail Virus Scanner (amavisd):                [FAILED]
Starting Mail Virus Scanner (amavisd): Problem in Amavis::DKIM code: Can't locate Mail/DKIM/Verifier.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at (eval 82) line 28.
BEGIN failed--compilation aborted at (eval 82) line 28.
                                                           [FAILED]
[root@mail ~]#

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

123123 写道:

Nov 17 14:19:28 mail postfix/smtp[26205]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Amavisd 服务没有启动,导致邮件无法收发。

123123 写道:

Starting Mail Virus Scanner (amavisd): Problem in Amavis::DKIM code: Can't locate Mail/DKIM/Verifier.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at (eval 82) line 28.

DKIM 组件(perl 模块)有问题,不知道您是如何安装这个组件的?

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

谢谢张大侠的回复..Perl的已经修复了.问题:amavisd已经开启以后还是不行.[root@mail ~]# netstat -ntplActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      13566/dovecot       tcp        0      0 127.0.0.1:7777              0.0.0.0:*                   LISTEN      22807/python        tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LISTEN      13566/dovecot       tcp        0      0 0.0.0.0:59878               0.0.0.0:*                   LISTEN      17878/sshd          tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      17967/snmpd         tcp        0      0 127.0.0.1:10024             0.0.0.0:*                   LISTEN      20152/amavisd (mast tcp        0      0 127.0.0.1:10025             0.0.0.0:*                   LISTEN      13377/master        tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      12802/mysqld        tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LISTEN      13377/master        tcp        0      0 127.0.0.1:9998              0.0.0.0:*                   LISTEN      20152/amavisd (mast tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN      13566/dovecot       tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN      13566/dovecot       tcp        0      0 127.0.0.1:10031             0.0.0.0:*                   LISTEN      13453/policyd       tcp        0      0 127.0.0.1:783               0.0.0.0:*                   LISTEN      15092/spamd.pid     tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      22543/portmap       tcp        0      0 127.0.0.1:2000              0.0.0.0:*                   LISTEN      13566/dovecot       tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      5287/httpd          tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN      13377/master        tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      13377/master        tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      5287/httpd发送外域正常.接受还是不正常.## 这是自己发送给自己的日志显示.Nov 17 22:47:40 mail postfix/cleanup[20002]: 5193336A8192: message-id=<d229e3e9f4a00695834074e5128b4764@tt-play.com>Nov 17 22:47:40 mail postfix/qmgr[13380]: 5193336A8192: from=<root@tt-play.com>, size=530, nrcpt=1 (queue active)Nov 17 22:47:40 mail roundcube: User root@tt-play.com [125.39.108.58]; Message for root@tt-play.com; 250: 2.0.0 Ok: queued as 5193336A8192Nov 17 22:47:40 mail roundcube: IMAP Error: Could not save message in Sent in /var/www/roundcubemail-0.5.4/program/steps/mail/sendmail.inc on line 669 (POST /mail/?_unlock=loading1321541255267?_task=mail&_action=send)Nov 17 09:47:40 mail postfix/smtpd[20187]: disconnect from mail.yeapgame.com[127.0.0.1]Nov 17 22:47:40 mail amavis[20155]: (20155-01) (!)run_av (ClamAV-clamd) FAILED - unexpected , output=

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

谢谢张大侠.

amavisd的perl问题已经解决


现在问题:

amavisd已经开启.但还是不行.
发送外域正常.接受还是不正常..别域发送进来也有问题.
自己发送给自己有问题

## 这是自己发送给自己的日志显示.
Nov 17 22:47:40 mail postfix/cleanup[20002]: 5193336A8192: message-id=<d229e3e9f4a00695834074e5128b4764@tt-play.com>
Nov 17 22:47:40 mail postfix/qmgr[13380]: 5193336A8192: from=<root@tt-play.com>, size=530, nrcpt=1 (queue active)
Nov 17 22:47:40 mail roundcube: User root@tt-play.com [125.39.108.58]; Message for root@tt-play.com; 250: 2.0.0 Ok: queued as 5193336A8192
Nov 17 22:47:40 mail roundcube: IMAP Error: Could not save message in Sent in /var/www/roundcubemail-0.5.4/program/steps/mail/sendmail.inc on line 669 (POST /mail/?_unlock=loading1321541255267?_task=mail&_action=send)
Nov 17 09:47:40 mail postfix/smtpd[20187]: disconnect from mail.yeapgame.com[127.0.0.1]
Nov 17 22:47:40 mail amavis[20155]: (20155-01) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/amavis/tmp/amavis-20111117T224740-20155/parts: lstat() failed: Permission denied. ERROR\n"
Nov 17 22:47:40 mail amavis[20155]: (20155-01) (!)ClamAV-clamd av-scanner FAILED: CODE(0x19b0b980) unexpected , output="/var/amavis/tmp/amavis-20111117T224740-20155/parts: lstat() failed: Permission denied. ERROR\n" at (eval 103) line 594.
Nov 17 22:47:40 mail amavis[20155]: (20155-01) (!!)WARN: all primary virus scanners failed, considering backups
Nov 17 22:47:42 mail postfix/smtpd[20200]: connect from mail.yeapgame.com[127.0.0.1]
Nov 17 09:47:42 mail postfix/smtpd[20200]: EEF7C36A8205: client=mail.yeapgame.com[127.0.0.1]
Nov 17 22:47:42 mail postfix/cleanup[20002]: EEF7C36A8205: message-id=<d229e3e9f4a00695834074e5128b4764@tt-play.com>
Nov 17 22:47:42 mail postfix/qmgr[13380]: EEF7C36A8205: from=<root@tt-play.com>, size=977, nrcpt=1 (queue active)
Nov 17 09:47:42 mail postfix/smtpd[20200]: disconnect from mail.yeapgame.com[127.0.0.1]
Nov 17 22:47:42 mail amavis[20155]: (20155-01) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <root@tt-play.com> -> <root@tt-play.com>, Message-ID: <d229e3e9f4a00695834074e5128b4764@tt-play.com>, mail_id: IpLq9JHAU08Y, Hits: -9.998, size: 530, queued_as: EEF7C36A8205, 2608 ms
Nov 17 22:47:42 mail postfix/smtp[20192]: 5193336A8192: to=<root@tt-play.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=0.04/0/0/2.6, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=20155-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as EEF7C36A8205)
Nov 17 22:47:42 mail postfix/qmgr[13380]: 5193336A8192: removed
Nov 17 22:47:42 mail postfix/pipe[19422]: EEF7C36A8205: to=<root@tt-play.com>, relay=dovecot, delay=0.02, delays=0/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure)

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

张大侠还需要什么配置参数和贴什么日志情况吗.

我在正常之前照着如下文档搭建了一下mailgraph+rrdtools作为postfix统计表安装指南
http://hi.baidu.com/donghuaiping/blog/i … 96e21.html

在这之后突然有人反映收发都不行了.然后我看dovecot的文件好多都没了.
我又重新搭建了个一模一样iredmail版本的邮件服务器.把配置文件拷贝过去.把dovecot-mysql.cof连接数据库的密码修改了一下.
其它就没有操作了.

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

[root@mail ~]# /usr/sbin/amavisd debug
The amavisd daemon is already running, PID: [4190]


[root@mail ~]# postfix check
postfix/postfix-script: warning: /var/spool/postfix/etc/localtime and /etc/localtime differ

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

[root@mail ~]# tail -f /var/log/sieve.log
Nov 17 18:56:51 deliver(cs@voomga.com): Error: Internal quota calculation error
Nov 17 18:56:51 deliver(cs@voomga.com): Info: msgid=<201111181056451876931@voomga.com>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2011-11-17 18:56:51]

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

tailf /var/log/messages

Nov 17 18:58:20 mail clamd[13490]: SelfCheck: Database status OK.
Nov 17 18:58:20 mail clamd[13490]: lstat() failed on: /var/amavis/tmp/amavis-20111117T185819-04193/parts
Nov 18 10:59:01 mail kernel: type=1101 audit(1321585141.005:274374): user pid=5653 uid=0 auid=0 msg='PAM: accounting acct="root" : exe="/usr/sbin/crond" (hostname=?, addr=?, terminal=cron res=success)'
Nov 18 10:59:01 mail kernel: type=1103 audit(1321585141.006:274375): user pid=5653 uid=0 auid=0 msg='PAM: setcred acct="root" : exe="/usr/sbin/crond" (hostname=?, addr=?, terminal=cron res=success)'
Nov 18 10:59:01 mail kernel: type=1006 audit(1321585141.006:274376): login pid=5653 uid=0 old auid=0 new auid=0 old ses=38315 new ses=40041

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

[root@mail ~]# tail -f /var/log/dovecot.log

Nov 17 19:03:22 pop3-login: Info: Login: user=<cs@voomga.com>, method=PLAIN, rip=202.153.206.231, lip=208.81.165.139
Nov 17 19:03:22 POP3(cs@voomga.com): Info: Disconnected: Logged out top=0/0, retr=0/0, del=0/134, size=10900851
Nov 17 19:03:27 dict: Error: mysql: Connect failed to 127.0.0.1 (vmail): Access denied for user 'vmailadmin'@'localhost' (using password: YES) - waiting for 75 seconds before retry
Nov 17 19:03:27 dict: Error: dict sql lookup failed: Not connected to database

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

这个是外域发送进来的日志

## 日志如下

[root@mail ~]# tailf /var/log/maillog
Nov 17 19:08:26 mail postfix/qmgr[5038]: 7340436A82C5: from=<17501444@qq.com>, size=2167, nrcpt=1 (queue active)
Nov 17 19:08:26 mail amavis[5695]: (05695-01) Passed CLEAN, LOCAL [183.60.52.110] [183.60.52.110] <17501444@qq.com> -> <cs@voomga.com>, Message-ID: <tencent_38BE6F9561C9426C0DB59130@qq.com>, mail_id: dTEXyJG7TkGc, Hits: -8.724, size: 1726, queued_as: 7340436A82C5, dkim_id=@qq.com, 2741 ms
Nov 17 19:08:26 mail postfix/smtp[5851]: 1F53E36A82BA: to=<cs@voomga.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.6, delays=0.83/0/0/2.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=05695-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 7340436A82C5)
Nov 17 19:08:26 mail postfix/qmgr[5038]: 1F53E36A82BA: removed
Nov 17 19:08:26 mail postfix/pipe[5859]: 7340436A82C5: to=<cs@voomga.com>, relay=dovecot, delay=0.05, delays=0/0/0/0.05, dsn=4.3.0, status=deferred (temporary failure)
Nov 17 19:09:53 mail postfix/qmgr[5038]: 0613036A82BE: from=<cs@voomga.com>, size=1701, nrcpt=1 (queue active)
Nov 17 19:09:53 mail postfix/pipe[5859]: 0613036A82BE: to=<cs@voomga.com>, relay=dovecot, delay=387, delays=387/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Nov 17 19:11:43 mail postfix/anvil[5841]: statistics: max connection rate 1/60s for (smtp:183.60.52.110) at Nov 17 19:08:22
Nov 17 19:11:43 mail postfix/anvil[5841]: statistics: max connection count 1 for (smtp:183.60.52.110) at Nov 17 19:08:22
Nov 17 19:11:43 mail postfix/anvil[5841]: statistics: max cache size 1 at Nov 17 19:08:22

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

Nov 17 19:03:27 dict: Error: mysql: Connect failed to 127.0.0.1 (vmail): Access denied for user 'vmailadmin'@'localhost' (using password: YES) - waiting for 75 seconds before retry

您的 /etc/dovecot/used-quota.conf 里,vmailadmin 的密码可能写错了。请检查一下,如果确实有误,修正后重启 Dovecot 服务应该就可以了。

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

ZhangHuangbin 写道:

Nov 17 19:03:27 dict: Error: mysql: Connect failed to 127.0.0.1 (vmail): Access denied for user 'vmailadmin'@'localhost' (using password: YES) - waiting for 75 seconds before retry

您的 /etc/dovecot/used-quota.conf 里,vmailadmin 的密码可能写错了。请检查一下,如果确实有误,修正后重启 Dovecot 服务应该就可以了。


终于等到张大侠了.我去试试.

回复: 收发都不正常.日志如下.请各位帮忙.张大侠也帮下忙吧

ZhangHuangbin 写道:

Nov 17 19:03:27 dict: Error: mysql: Connect failed to 127.0.0.1 (vmail): Access denied for user 'vmailadmin'@'localhost' (using password: YES) - waiting for 75 seconds before retry

您的 /etc/dovecot/used-quota.conf 里,vmailadmin 的密码可能写错了。请检查一下,如果确实有误,修正后重启 Dovecot 服务应该就可以了。


的确是这里的问题.现在已经正常了.iRedmail让搭建过程很简单.
但是出了问题对我这种邮件经验不足的很棘手.我会再次认真看看iRedmail的实现步骤