主题: 邮件系统能收不能发。

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.7
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Ubuntu 14.04
- 与您的问题相关的日志信息:
====
发送邮件中的mail.log
Dec  3 10:01:09 mail postfix/smtpd[14937]: connect from localhost[127.0.0.1]
Dec  3 10:01:09 mail postfix/smtpd[14937]: AEDB01E11F4: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=test01@szsmail.1010bao.com
Dec  3 10:01:27 mail postfix/cleanup[14942]: AEDB01E11F4: message-id=<ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>
Dec  3 10:01:27 mail postfix/qmgr[14701]: AEDB01E11F4: from=<test01@szsmail.1010bao.com>, size=567, nrcpt=2 (queue active)
Dec  3 10:01:27 mail roundcube: User test01@szsmail.1010bao.com [192.168.0.16]; Message for cxge@renosdata.comcxge@mhmail.1010bao.com; 250: 2.0.0 Ok: queued as AEDB01E11F4
Dec  3 10:01:29 mail postfix/smtpd[14937]: disconnect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/smtpd[14957]: connect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/smtpd[14957]: 2626A1E11FE: client=localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/smtpd[14958]: connect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/cleanup[14942]: 2626A1E11FE: message-id=<ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>
Dec  3 10:01:45 mail postfix/smtpd[14957]: disconnect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/qmgr[14701]: 2626A1E11FE: from=<test01@szsmail.1010bao.com>, size=1694, nrcpt=1 (queue active)
Dec  3 10:01:45 mail postfix/smtpd[14958]: 27B891E1201: client=localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/cleanup[14942]: 27B891E1201: message-id=<ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>
Dec  3 10:01:45 mail postfix/smtpd[14958]: disconnect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/qmgr[14701]: 27B891E1201: from=<test01@szsmail.1010bao.com>, size=1684, nrcpt=1 (queue active)
Dec  3 10:01:45 mail amavis[1765]: (01765-04) Passed CLEAN {RelayedInternal}, MYNETS/MYUSERS LOCAL [127.0.0.1]:38121 [127.0.0.1] <test01@szsmail.1010bao.com> -> <cxge@mhmail.1010bao.com>, Queue-ID: AEDB01E11F4, Message-ID: <ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>, mail_id: pRUl_Sy1LnWh, Hits: -9.998, size: 567, queued_as: 2626A1E11FE, dkim_new=dkim:szsmail.1010bao.com, 17182 ms
Dec  3 10:01:45 mail amavis[1771]: (01771-05) Passed CLEAN {RelayedInternal}, MYNETS/MYUSERS LOCAL [127.0.0.1]:38121 [127.0.0.1] <test01@szsmail.1010bao.com> -> <cxge@renosdata.com>, Queue-ID: AEDB01E11F4, Message-ID: <ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>, mail_id: dxFREWiET5fd, Hits: -9.998, size: 567, queued_as: 27B891E1201, dkim_new=dkim:szsmail.1010bao.com, 17181 ms
Dec  3 10:01:45 mail postfix/smtp[14943]: AEDB01E11F4: to=<cxge@mhmail.1010bao.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=36, delays=18/0.01/0/17, 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 2626A1E11FE)
Dec  3 10:01:45 mail postfix/smtp[14945]: AEDB01E11F4: to=<cxge@renosdata.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=36, delays=18/0.02/0/17, 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 27B891E1201)
Dec  3 10:01:45 mail postfix/qmgr[14701]: AEDB01E11F4: removed
Dec  3 10:02:05 mail postfix/smtp[14961]: 2626A1E11FE: to=<cxge@mhmail.1010bao.com>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=mhmail.1010bao.com type=MX: Host not found, try again)
Dec  3 10:02:05 mail postfix/smtp[14962]: 27B891E1201: to=<cxge@renosdata.com>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=renosdata.com type=MX: Host not found, try again)


nslookup了一下对方的邮箱域名
nslookup
> set type=mx
> renosdata.com
Server:         61.177.7.1
Address:        61.177.7.1#53

Non-authoritative answer:
renosdata.com   mail exchanger = 5 mxbiz1.qq.com.
renosdata.com   mail exchanger = 10 mxbiz2.qq.com.

Authoritative answers can be found from:
renosdata.com   nameserver = dns32.hichina.com.
renosdata.com   nameserver = dns31.hichina.com.
mxbiz1.qq.com   internet address = 113.108.16.61
mxbiz1.qq.com   has AAAA address 240e:ff:f040:28::c
mxbiz2.qq.com   internet address = 113.108.16.61
mxbiz2.qq.com   has AAAA address 240e:ff:f040:28::c
dns31.hichina.com       internet address = 42.120.249.193
dns31.hichina.com       internet address = 182.92.19.193
dns31.hichina.com       internet address = 42.120.248.193
dns32.hichina.com       internet address = 182.92.19.226
dns32.hichina.com       internet address = 42.120.248.226
dns32.hichina.com       internet address = 42.120.249.226


这个是自己的邮箱域名
> szsmail.1010bao.com
Server:         61.177.7.1
Address:        61.177.7.1#53

Non-authoritative answer:
*** Can't find szsmail.1010bao.com: No answer

Authoritative answers can be found from:
1010bao.com
        origin = dns31.hichina.com
        mail addr = hostmaster.hichina.com
        serial = 2014031405
        refresh = 10800
        retry = 900
        expire = 604800
        minimum = 3600

回复: 邮件系统能收不能发。

ForseTi 写道:

Dec  3 10:02:05 mail postfix/smtp[14961]: 2626A1E11FE: to=<cxge@mhmail.1010bao.com>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=mhmail.1010bao.com type=MX: Host not found, try again)

/etc/resolv.conf 里有设置正确的 DNS 服务器地址么?/var/spool/postfix/etc/resolv.conf 呢?

回复: 邮件系统能收不能发。

ZhangHuangbin 写道:
ForseTi 写道:

Dec  3 10:02:05 mail postfix/smtp[14961]: 2626A1E11FE: to=<cxge@mhmail.1010bao.com>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=mhmail.1010bao.com type=MX: Host not found, try again)

/etc/resolv.conf 里有设置正确的 DNS 服务器地址么?/var/spool/postfix/etc/resolv.conf 呢?

DNS设置没有问题,ping百度都是正常的
我在部署邮件服务器的时候按照http://iredmail.com/docs/enable.smtps.html步骤,直接开启了465端口
我在检查的时候,在/etc/postfix/master.cf把添加的命令注释掉之后,收发正常了,防火墙端口又开启,端口映射有设置。
之后,我再次把之前注释吊的恢复出来,也可以正常收发了...这个现象是为什么呢?

回复: 邮件系统能收不能发。

ForseTi 写道:
ZhangHuangbin 写道:
ForseTi 写道:

Dec  3 10:02:05 mail postfix/smtp[14961]: 2626A1E11FE: to=<cxge@mhmail.1010bao.com>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=mhmail.1010bao.com type=MX: Host not found, try again)

/etc/resolv.conf 里有设置正确的 DNS 服务器地址么?/var/spool/postfix/etc/resolv.conf 呢?

DNS设置没有问题,ping百度都是正常的
我在部署邮件服务器的时候按照http://iredmail.com/docs/enable.smtps.html步骤,直接开启了465端口
我在检查的时候,在/etc/postfix/master.cf把添加的命令注释掉之后,收发正常了,防火墙端口又开启,端口映射有设置。
之后,我再次把之前注释吊的恢复出来,也可以正常收发了...这个现象是为什么呢?

ForseTi 写道:

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.7
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Ubuntu 14.04
- 与您的问题相关的日志信息:
====
发送邮件中的mail.log
Dec  3 10:01:09 mail postfix/smtpd[14937]: connect from localhost[127.0.0.1]
Dec  3 10:01:09 mail postfix/smtpd[14937]: AEDB01E11F4: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=test01@szsmail.1010bao.com
Dec  3 10:01:27 mail postfix/cleanup[14942]: AEDB01E11F4: message-id=<ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>
Dec  3 10:01:27 mail postfix/qmgr[14701]: AEDB01E11F4: from=<test01@szsmail.1010bao.com>, size=567, nrcpt=2 (queue active)
Dec  3 10:01:27 mail roundcube: User test01@szsmail.1010bao.com [192.168.0.16]; Message for cxge@renosdata.comcxge@mhmail.1010bao.com; 250: 2.0.0 Ok: queued as AEDB01E11F4
Dec  3 10:01:29 mail postfix/smtpd[14937]: disconnect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/smtpd[14957]: connect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/smtpd[14957]: 2626A1E11FE: client=localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/smtpd[14958]: connect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/cleanup[14942]: 2626A1E11FE: message-id=<ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>
Dec  3 10:01:45 mail postfix/smtpd[14957]: disconnect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/qmgr[14701]: 2626A1E11FE: from=<test01@szsmail.1010bao.com>, size=1694, nrcpt=1 (queue active)
Dec  3 10:01:45 mail postfix/smtpd[14958]: 27B891E1201: client=localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/cleanup[14942]: 27B891E1201: message-id=<ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>
Dec  3 10:01:45 mail postfix/smtpd[14958]: disconnect from localhost[127.0.0.1]
Dec  3 10:01:45 mail postfix/qmgr[14701]: 27B891E1201: from=<test01@szsmail.1010bao.com>, size=1684, nrcpt=1 (queue active)
Dec  3 10:01:45 mail amavis[1765]: (01765-04) Passed CLEAN {RelayedInternal}, MYNETS/MYUSERS LOCAL [127.0.0.1]:38121 [127.0.0.1] <test01@szsmail.1010bao.com> -> <cxge@mhmail.1010bao.com>, Queue-ID: AEDB01E11F4, Message-ID: <ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>, mail_id: pRUl_Sy1LnWh, Hits: -9.998, size: 567, queued_as: 2626A1E11FE, dkim_new=dkim:szsmail.1010bao.com, 17182 ms
Dec  3 10:01:45 mail amavis[1771]: (01771-05) Passed CLEAN {RelayedInternal}, MYNETS/MYUSERS LOCAL [127.0.0.1]:38121 [127.0.0.1] <test01@szsmail.1010bao.com> -> <cxge@renosdata.com>, Queue-ID: AEDB01E11F4, Message-ID: <ca6eeb8f1016fd24cb7b0ced9e63338a@szsmail.1010bao.com>, mail_id: dxFREWiET5fd, Hits: -9.998, size: 567, queued_as: 27B891E1201, dkim_new=dkim:szsmail.1010bao.com, 17181 ms
Dec  3 10:01:45 mail postfix/smtp[14943]: AEDB01E11F4: to=<cxge@mhmail.1010bao.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=36, delays=18/0.01/0/17, 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 2626A1E11FE)
Dec  3 10:01:45 mail postfix/smtp[14945]: AEDB01E11F4: to=<cxge@renosdata.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=36, delays=18/0.02/0/17, 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 27B891E1201)
Dec  3 10:01:45 mail postfix/qmgr[14701]: AEDB01E11F4: removed
Dec  3 10:02:05 mail postfix/smtp[14961]: 2626A1E11FE: to=<cxge@mhmail.1010bao.com>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=mhmail.1010bao.com type=MX: Host not found, try again)
Dec  3 10:02:05 mail postfix/smtp[14962]: 27B891E1201: to=<cxge@renosdata.com>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=renosdata.com type=MX: Host not found, try again)


nslookup了一下对方的邮箱域名
nslookup
> set type=mx
> renosdata.com
Server:         61.177.7.1
Address:        61.177.7.1#53

Non-authoritative answer:
renosdata.com   mail exchanger = 5 mxbiz1.qq.com.
renosdata.com   mail exchanger = 10 mxbiz2.qq.com.

Authoritative answers can be found from:
renosdata.com   nameserver = dns32.hichina.com.
renosdata.com   nameserver = dns31.hichina.com.
mxbiz1.qq.com   internet address = 113.108.16.61
mxbiz1.qq.com   has AAAA address 240e:ff:f040:28::c
mxbiz2.qq.com   internet address = 113.108.16.61
mxbiz2.qq.com   has AAAA address 240e:ff:f040:28::c
dns31.hichina.com       internet address = 42.120.249.193
dns31.hichina.com       internet address = 182.92.19.193
dns31.hichina.com       internet address = 42.120.248.193
dns32.hichina.com       internet address = 182.92.19.226
dns32.hichina.com       internet address = 42.120.248.226
dns32.hichina.com       internet address = 42.120.249.226


这个是自己的邮箱域名
> szsmail.1010bao.com
Server:         61.177.7.1
Address:        61.177.7.1#53

Non-authoritative answer:
*** Can't find szsmail.1010bao.com: No answer

Authoritative answers can be found from:
1010bao.com
        origin = dns31.hichina.com
        mail addr = hostmaster.hichina.com
        serial = 2014031405
        refresh = 10800
        retry = 900
        expire = 604800
        minimum = 3600

ZhangHuangbin 写道:
ForseTi 写道:

Dec  3 10:02:05 mail postfix/smtp[14961]: 2626A1E11FE: to=<cxge@mhmail.1010bao.com>, relay=none, delay=20, delays=0.01/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=mhmail.1010bao.com type=MX: Host not found, try again)

/etc/resolv.conf 里有设置正确的 DNS 服务器地址么?/var/spool/postfix/etc/resolv.conf 呢?

我现在收发已经没有问题了...只是还是比较好奇会出现这种情况的原因,不知道张工有何高见,求指点。