1 最后由 it (2017-06-21 09:48:27) 编辑

主题: 【求助】公司邮箱接收不了外网邮件,但可以发送!

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.8
- 与您的问题相关的日志信息:
公司邮箱不了接收外网邮件,外网邮箱没有退信,内网收发没有问题,也可以将邮件发送到外网邮箱。
我看过域名解析没有问题,在CMD里面ping公司邮箱域名则显示正确IP地址。

Jun 20 16:05:59 mail postfix/qmgr[2452]: 130E71806892: from=<it@win.net.cn>, size=32322, nrcpt=1 (queue active)
Jun 20 16:05:59 mail postfix/10025/smtpd[17864]: disconnect from mail.win.net.cn[127.0.0.1]
Jun 20 16:05:59 mail amavis[22734]: (22734-06) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [192.168.2.1]:3047 <it@win.net.cn> -> <tan@126.com>, Message-ID: , mail_id: OLjBA95y0uec, Hits: -, size: 31317, queued_as: 130E71806892, dkim_new=dkim:win.net.cn, 502 ms
Jun 20 16:05:59 mail postfix/smtp-amavis/smtp[21462]: 96C821806872: to=<tan@126.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.76, delays=0.14/0/0/0.62, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 130E71806892)
Jun 20 16:05:59 mail postfix/qmgr[2452]: 96C821806872: removed
Jun 20 16:05:59 mail postfix/submission/smtpd[23320]: disconnect from unknown[192.168.2.1]
Jun 20 16:06:01 mail postfix/pickup[20724]: E75F4180689F: uid=488 from=<root>
Jun 20 16:06:01 mail postfix/cleanup[21237]: E75F4180689F: message-id=<20170620080601.E75F4180689F@mail.win.net.cn>
Jun 20 16:06:02 mail postfix/qmgr[2452]: E75F4180689F: from=<root@win.net.cn>, size=802, nrcpt=1 (queue active)
Jun 20 16:06:03 mail postfix/10025/smtpd[17864]: connect from mail.win.net.cn[127.0.0.1]
Jun 20 16:06:03 mail postfix/10025/smtpd[17864]: EF67B1806872: client=mail.win.net.cn[127.0.0.1]
Jun 20 16:06:03 mail postfix/cleanup[21237]: EF67B1806872: message-id=<20170620080601.E75F4180689F@mail.win.net.cn>
Jun 20 16:06:04 mail postfix/qmgr[2452]: EF67B1806872: from=<root@win.net.cn>, size=1276, nrcpt=1 (queue active)
Jun 20 16:06:04 mail postfix/trivial-rewrite[23321]: warning: do not list domain win.net.cn in BOTH mydestination and virtual_mailbox_domains
Jun 20 16:06:04 mail amavis[22734]: (22734-07) Passed CLEAN {RelayedInbound}, <root@win.net.cn> -> <sogo@win.net.cn>, Message-ID: , mail_id: NXl82lHxB_aG, Hits: -1.901, size: 801, queued_as: EF67B1806872, 2069 ms, Tests: [BAYES_00=-1.9,NO_RELAYS=-0.001]
Jun 20 16:06:04 mail postfix/pipe[21880]: EF67B1806872: to=<sogo@win.net.cn>, relay=dovecot, delay=0.25, delays=0.12/0/0/0.13, dsn=5.1.1, status=bounced (user unknown)
Jun 20 16:06:04 mail postfix/cleanup[21237]: 3919218068F1: message-id=<20170620080604.3919218068F1@mail.win.net.cn>
Jun 20 16:06:04 mail postfix/smtp-amavis/smtp[21462]: E75F4180689F: to=<sogo@win.net.cn>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.4, delays=0.17/0/0/2.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as EF67B1806872)
Jun 20 16:06:04 mail postfix/qmgr[2452]: E75F4180689F: removed
Jun 20 16:06:04 mail postfix/bounce[20479]: EF67B1806872: sender non-delivery notification: 3919218068F1
Jun 20 16:06:04 mail postfix/qmgr[2452]: EF67B1806872: removed
Jun 20 16:06:04 mail postfix/qmgr[2452]: 3919218068F1: from=<>, size=3116, nrcpt=1 (queue active)
Jun 20 16:06:04 mail postfix/trivial-rewrite[23321]: warning: do not list domain win.net.cn in BOTH mydestination and virtual_mailbox_domains
Jun 20 16:06:04 mail postfix/pipe[21880]: 3919218068F1: to=<root@win.net.cn>, relay=dovecot, delay=0.18, delays=0.08/0/0/0.1, dsn=5.1.1, status=bounced (user unknown)
Jun 20 16:06:04 mail postfix/qmgr[2452]: 3919218068F1: removed
Jun 20 16:06:04 mail postfix/smtp[23073]: setting up TLS connection to 126mx02.mxmail.netease.com[220.181.15.144]:25
Jun 20 16:06:04 mail postfix/smtp[23073]: Trusted TLS connection established to 126mx02.mxmail.netease.com[220.181.15.144]:25: TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)
Jun 20 16:06:05 mail postfix/smtp[23073]: 130E71806892: to=<tan@126.com>, relay=126mx02.mxmail.netease.com[220.181.15.144]:25, delay=6, delays=0.14/0.01/5.3/0.53, dsn=2.0.0, status=sent (250 Mail OK queued as mx30,LMmowEA5aUUb10hZb7BYFg--.59397S3 1497945884)
Jun 20 16:06:05 mail postfix/qmgr[2452]: 130E71806892: removed
Jun 20 16:06:23 mail postfix/smtpd[21928]: timeout after CONNECT from unknown[192.168.2.1]
Jun 20 16:06:23 mail postfix/smtpd[21928]: disconnect from unknown[192.168.2.1]
Jun 20 16:07:02 mail postfix/pickup[20724]: 0F71B1806892: uid=488 from=<root>
Jun 20 16:07:02 mail postfix/cleanup[21237]: 0F71B1806892: message-id=<20170620080702.0F71B1806892@mail.win.net.cn>
Jun 20 16:07:02 mail postfix/qmgr[2452]: 0F71B1806892: from=<root@win.net.cn>, size=802, nrcpt=1 (queue active)
Jun 20 16:07:03 mail postfix/10025/smtpd[17864]: 2792B1806875: client=mail.win.net.cn[127.0.0.1]
Jun 20 16:07:03 mail postfix/cleanup[21237]: 2792B1806875: message-id=<20170620080702.0F71B1806892@mail.win.net.cn>
Jun 20 16:07:03 mail postfix/10025/smtpd[17864]: disconnect from mail.win.net.cn[127.0.0.1]
Jun 20 16:07:03 mail postfix/qmgr[2452]: 2792B1806875: from=<root@win.net.cn>, size=1276, nrcpt=1 (queue active)
Jun 20 16:07:03 mail postfix/trivial-rewrite[23321]: warning: do not list domain win.net.cn in BOTH mydestination and virtual_mailbox_domains

====

2 最后由 it (2017-06-21 10:29:54) 编辑

回复: 【求助】公司邮箱接收不了外网邮件,但可以发送!

已经解决!

我主管测试,qq邮箱退信显示是指向出现问题,我是用126邮箱测试时是没有退信。于是在服务器将公司对外的浏览网页的主机名由win.net.cn改为www.win.net.cn。之后收发就解决了。但问题来了:我是按iredmail的安装设置图解来安装的,输入域名的时候也没有输错,但为什么指向是公司另外一个对外的IP地址而不是邮箱对应的对外IP地址?(我公司对外有两个地址,一个是WEB地址,一个是邮箱的地址)我看过MX记录和A记录,发现没有写错!

回复: 【求助】公司邮箱接收不了外网邮件,但可以发送!

it 写道:

Jun 20 16:07:03 mail postfix/trivial-rewrite[23321]: warning: do not list domain win.net.cn in BOTH mydestination and virtual_mailbox_domains

服务器的 hostname 不能和虚拟的邮件域名一样。