主题: 给QQ邮箱发邮件,发不出去

刚装的iredmail 0.5.1
给SINA和139发邮件,发了好几次才收到。
给QQ发邮件也是这样:
下面是日志:
Dec 23 17:45:25 mail roundcube: [23-Dec-2009 17:45:25 +0800]: Successful login for test@company.cn (id 3) from 59.56.177.83
Dec 23 17:45:55 mail roundcube: [23-Dec-2009 17:45:55 +0800] IMAP Error: Authentication for linby@company.cn failed (LOGIN): "a001 NO Authentication failed." (POST /?_task=&_action=login)
Dec 23 17:46:10 mail postfix/smtpd[3621]: connect from mail.company.cn[127.0.0.1]
Dec 23 17:46:10 mail postfix/smtpd[3621]: 1E88DAD8334: client=mail.company.cn[127.0.0.1], sasl_method=LOGIN, sasl_username=test@company.cn
Dec 23 17:46:10 mail postfix/cleanup[3625]: 1E88DAD8334: message-id=<771fdf63f0f5cf56c27d1fa11259737b@127.0.0.1>
Dec 23 17:46:10 mail postfix/qmgr[2986]: 1E88DAD8334: from=<test@company.cn>, size=593, nrcpt=1 (queue active)
Dec 23 17:46:10 mail roundcube: [23-Dec-2009 17:46:10 +0800]: User test@company.cn [59.56.177.83]; Message for <andyeah@qq.com>; 250: 2.0.0 Ok: queued as 1E88DAD8334
Dec 23 17:46:10 mail postfix/smtpd[3621]: disconnect from mail.company.cn[127.0.0.1]
Dec 23 17:46:10 mail postfix/smtpd[3631]: connect from mail.company.cn[127.0.0.1]
Dec 23 17:46:10 mail postfix/smtpd[3631]: 8B1C2AD8337: client=mail.company.cn[127.0.0.1]
Dec 23 17:46:10 mail postfix/cleanup[3625]: 8B1C2AD8337: message-id=<771fdf63f0f5cf56c27d1fa11259737b@127.0.0.1>
Dec 23 17:46:10 mail postfix/smtpd[3631]: disconnect from mail.company.cn[127.0.0.1]
Dec 23 17:46:10 mail postfix/qmgr[2986]: 8B1C2AD8337: from=<test@company.cn>, size=1026, nrcpt=1 (queue active)
Dec 23 17:46:10 mail amavis[3004]: (03004-02) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <test@company.cn> -> <andyeah@qq.com>, Message-ID: <771fdf63f0f5cf56c27d1fa11259737b@127.0.0.1>, mail_id: FOGGhzsPauLC, Hits: -4.976, size: 593, queued_as: 8B1C2AD8337, 434 ms
Dec 23 17:46:10 mail postfix/smtp[3626]: 1E88DAD8334: to=<andyeah@qq.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.52, delays=0.06/0.01/0/0.44, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=03004-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8B1C2AD8337)
Dec 23 17:46:10 mail postfix/qmgr[2986]: 1E88DAD8334: removed
Dec 23 17:46:12 mail postfix/smtp[3632]: 8B1C2AD8337: to=<andyeah@qq.com>, relay=mx1.qq.com[119.147.10.219]:25, delay=2, delays=0.04/0.01/0.78/1.2, dsn=2.0.0, status=sent (250 Ok: queued as )
Dec 23 17:46:12 mail postfix/qmgr[2986]: 8B1C2AD8337: removed

回复: 给QQ邮箱发邮件,发不出去

kerom 写道:

Dec 23 17:46:12 mail postfix/smtp[3632]: 8B1C2AD8337: to=<andyeah@qq.com>, relay=mx1.qq.com[119.147.10.219]:25, delay=2, delays=0.04/0.01/0.78/1.2, dsn=2.0.0, status=sent (250 Ok: queued as )

这里显示发送是正常的。

3 最后由 kerom (2009-12-24 02:26:30) 编辑

回复: 给QQ邮箱发邮件,发不出去

从QQ给IREDMAIL一直收不到是啥回事??
/var/log/maillog 日志也没有记录。
取消了白名单的功能
Dec 24 02:12:51 mail postfix/postfix-script[6914]: stopping the Postfix mail system
Dec 24 02:12:51 mail postfix/master[2969]: terminating on signal 15
Dec 24 02:16:19 mail amavis[2861]: starting.  /usr/sbin/amavisd at mail.yonghui.cn amavisd-new-2.6.2 (20081215), Unicode aware, LANG="en_US.UTF-8"
Dec 24 02:16:19 mail amavis[2861]: Perl version               5.008008
Dec 24 02:16:20 mail amavis[2869]: Net::Server: Group Not Defined.  Defaulting to EGID '103 103'
Dec 24 02:16:20 mail amavis[2869]: Net::Server: User Not Defined.  Defaulting to EUID '102'
Dec 24 02:16:20 mail amavis[2869]: Module Amavis::Conf        2.203
Dec 24 02:16:20 mail amavis[2869]: Module Archive::Zip        1.26
Dec 24 02:16:20 mail amavis[2869]: Module BerkeleyDB          0.36
Dec 24 02:16:20 mail amavis[2869]: Module Compress::Zlib      1.42
Dec 24 02:16:20 mail amavis[2869]: Module Convert::TNEF       0.17
Dec 24 02:16:20 mail amavis[2869]: Module Convert::UUlib      1.11
Dec 24 02:16:20 mail amavis[2869]: Module Crypt::OpenSSL::RSA 0.25
Dec 24 02:16:20 mail amavis[2869]: Module DBD::mysql          3.0007
Dec 24 02:16:20 mail amavis[2869]: Module DBI                 1.52
Dec 24 02:16:20 mail amavis[2869]: Module DB_File             1.814
Dec 24 02:16:20 mail amavis[2869]: Module Digest::MD5         2.36
Dec 24 02:16:20 mail amavis[2869]: Module Digest::SHA         5.47
Dec 24 02:16:20 mail amavis[2869]: Module Digest::SHA1        2.11
Dec 24 02:16:20 mail amavis[2869]: Module IO::Socket::INET6   2.51
Dec 24 02:16:20 mail amavis[2869]: Module MIME::Entity        5.420
Dec 24 02:16:20 mail amavis[2869]: Module MIME::Parser        5.420
Dec 24 02:16:20 mail amavis[2869]: Module MIME::Tools         5.420
Dec 24 02:16:20 mail amavis[2869]: Module Mail::DKIM::Verifier 0.36
Dec 24 02:16:20 mail amavis[2869]: Module Mail::Header        2.04
Dec 24 02:16:20 mail amavis[2869]: Module Mail::Internet      2.04
Dec 24 02:16:20 mail amavis[2869]: Module Mail::SpamAssassin  3.002005
Dec 24 02:16:20 mail amavis[2869]: Module Net::DNS            0.59
Dec 24 02:16:20 mail amavis[2869]: Module Net::Server         0.97
Dec 24 02:16:20 mail amavis[2869]: Module Socket6             0.19
Dec 24 02:16:20 mail amavis[2869]: Module Time::HiRes         1.86
Dec 24 02:16:20 mail amavis[2869]: Module URI                 1.35
Dec 24 02:16:20 mail amavis[2869]: Module Unix::Syslog        1.0
Dec 24 02:16:20 mail amavis[2869]: Amavis::DB code      loaded
Dec 24 02:16:20 mail amavis[2869]: Amavis::Cache code   loaded
Dec 24 02:16:20 mail amavis[2869]: SQL base code        NOT loaded
Dec 24 02:16:20 mail amavis[2869]: SQL::Log code        NOT loaded
Dec 24 02:16:20 mail amavis[2869]: SQL::Quarantine      NOT loaded
Dec 24 02:16:20 mail amavis[2869]: Lookup::SQL code     NOT loaded
Dec 24 02:16:20 mail amavis[2869]: Lookup::LDAP code    NOT loaded
Dec 24 02:16:20 mail amavis[2869]: AM.PDP-in proto code loaded
Dec 24 02:16:20 mail amavis[2869]: SMTP-in proto code   loaded
Dec 24 02:16:20 mail amavis[2869]: Courier proto code   NOT loaded
Dec 24 02:16:20 mail amavis[2869]: SMTP-out proto code  loaded
Dec 24 02:16:20 mail amavis[2869]: Pipe-out proto code  NOT loaded
Dec 24 02:16:20 mail amavis[2869]: BSMTP-out proto code NOT loaded
Dec 24 02:16:20 mail amavis[2869]: Local-out proto code loaded
Dec 24 02:16:20 mail amavis[2869]: OS_Fingerprint code  NOT loaded
Dec 24 02:16:20 mail amavis[2869]: ANTI-VIRUS code      loaded
Dec 24 02:16:20 mail amavis[2869]: ANTI-SPAM code       loaded
Dec 24 02:16:20 mail amavis[2869]: ANTI-SPAM-SA code    loaded
Dec 24 02:16:20 mail amavis[2869]: Unpackers code       loaded
Dec 24 02:16:20 mail amavis[2869]: DKIM code            NOT loaded
Dec 24 02:16:20 mail amavis[2869]: Tools code           NOT loaded
Dec 24 02:16:20 mail amavis[2869]: Found $file            at /usr/bin/file
Dec 24 02:16:20 mail amavis[2869]: No $dspam,             not using it
Dec 24 02:16:20 mail amavis[2869]: Found $altermime       at /usr/bin/altermime
Dec 24 02:16:20 mail amavis[2869]: Internal decoder for .mail
Dec 24 02:16:20 mail amavis[2869]: Internal decoder for .asc
Dec 24 02:16:20 mail amavis[2869]: Internal decoder for .uue
Dec 24 02:16:20 mail amavis[2869]: Internal decoder for .hqx
Dec 24 02:16:20 mail amavis[2869]: Internal decoder for .ync
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .F    at /usr/bin/unfreeze
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .Z    at /usr/bin/uncompress
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .gz   at /usr/bin/gzip -d
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .lzo  at /usr/bin/lzop -d
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .cpio at /usr/bin/pax
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .tar  at /usr/bin/pax

Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .deb  at /usr/bin/ar
Dec 24 02:16:20 mail amavis[2869]: Internal decoder for .zip
Dec 24 02:16:20 mail amavis[2869]: No decoder for       .7z   tried: 7zr, 7za, 7z
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .rar  at /usr/bin/unrar
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .arj  at /usr/bin/arj
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .arc  at /usr/bin/nomarch
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .zoo  at /usr/bin/zoo
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .lha  at /usr/bin/lha
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .cab  at /usr/bin/cabextract
Dec 24 02:16:20 mail amavis[2869]: No decoder for       .tnef tried: tnef
Dec 24 02:16:20 mail amavis[2869]: Internal decoder for .tnef
Dec 24 02:16:20 mail amavis[2869]: Found decoder for    .exe  at /usr/bin/unrar; /usr/bin/lha; /usr/bin/arj
Dec 24 02:16:20 mail amavis[2869]: Using primary internal av scanner code for ClamAV-clamd
Dec 24 02:16:20 mail amavis[2869]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Dec 24 02:16:20 mail amavis[2869]: Creating db in /var/amavis/db/; BerkeleyDB 0.36, libdb 4.3
Dec 24 02:16:21 mail postfix/postfix-script[2938]: starting the Postfix mail system
Dec 24 02:16:21 mail postfix/master[2939]: daemon started -- version 0.5.1, configuration /etc/postfix
Dec 24 02:17:17 mail policyd: starting policyd v1.82
Dec 24 02:17:17 mail policyd: connecting to mysql database: 127.0.0.1
Dec 23 18:17:17 mail policyd: connected..
Dec 24 02:17:18 mail pysieved[3182]: Listening on INADDR_ANY port 2000

回复: 给QQ邮箱发邮件,发不出去

1  一般来说,如果取消了白名单,还是收不到信的说,很大的可能性就是
你的 dns 尚未起作用或者 仅在部分地区起作用。检查一下dns设置。看看是否这个问题。
2 检查你的防火墙设置,是否屏蔽了smtp的端口。

回复: 给QQ邮箱发邮件,发不出去

发现只能发不行收,能发139,sina,qq,其它没有试。
139收到退信,说是不能连接iredmail的25端口
白名单已经取消了:
#####################################################################
#                            GREYLISTING               (functional) #
#####################################################################
#
# enable greylisting                                  default: on
#   
#   whether greylisting should be enabled or disabled.
#
#                                                     1=on  0=off
GREYLISTING=0

###
防火墙iredmail 推荐设置的:
[root@mail etc]# iptables --list
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            multiport dports http,https,smtp,smtps,pop3,pop3s,imap,imaps,submission,smtps,ssh
ACCEPT     all  --  anywhere             anywhere           

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
###

回复: 给QQ邮箱发邮件,发不出去

你的邮件服务器是放在防火墙后面?如果是的话,建议认真检查一下防火墙上的端口印射

回复: 给QQ邮箱发邮件,发不出去

自己给自己发邮件是没有问题的。
邮件服务器是放在idc机房里,
原来这台也是邮件服务器,同样的ip,但用的是winwebmail,原来收发都正常啊。

回复: 给QQ邮箱发邮件,发不出去

kerom 写道:

139收到退信,说是不能连接iredmail的25端口

先检查你这个问题吧

回复: 给QQ邮箱发邮件,发不出去

我安装iredmail的时候,是没有启用SPF和DKIM的,
现在想确认是否有启用这两个东西,要在哪里看啊?