主题: 拒收邮件的问题

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):mysql
- 使用的 Linux/BSD 发行版名称及版本号:CentOS release 6.3
- 与您的问题相关的日志信息:
maillog:Jun  3 15:20:46 mail policyd: rcpt=2, module=bypass, host=220.181.64.21 (unknown), from=jinhua.pu@chinacache.com, to=tshen@i-move.cn, size=11445
maillog:Jun  3 15:20:46 mail postfix/smtpd[7227]: NOQUEUE: reject: RCPT from unknown[220.181.64.21]: 554 5.7.1 <jinhua.pu@chinacache.com>: Sender address rejected: Access denied; from=<jinhua.pu@chinacache.com> to=<tshen@i-move.cn> proto=ESMTP helo=<corp.chinacache.com>
====

昨天突然收不到@chinacache.com域发来的邮件,4月份的时候收过他们的邮件。
在/var/log/maillog里看到以上消息,对方收到拒收的邮件,内容是:Sender address rejected: Access denied.

不知道问题出在哪里?

我在/etc/mail/spamassassin/local.cf里加了2行:

whitelist_from      *@corp.chinacache.com
whitelist_from      *@chinacache.com

重启了所有服务,还是拒收。

回复: 拒收邮件的问题

建议在  Postfix 里针对这个 IP 打开 debug 模式,然后让对方发一封邮件过来进行测试,分析一下你的 Postfix 邮件日志看看具体为何。
例如:

debug_peer_list = 对方的 IP 地址

3 最后由 sailer.shen (2014-06-04 16:37:29) 编辑

回复: 拒收邮件的问题

谢谢老大回复。根据你的方法,我抓取了对方发送邮件过来的全过程日志,从connect到disconnect。

Jun  4 16:07:08 mail postfix/smtpd[6734]: connect from unknown[220.181.64.21]
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostname: unknown ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostaddr: 220.181.64.21 ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: unknown: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: 220.181.64.21: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = connect
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr ident = smtp:220.181.64.21
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/anvil: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/anvil: wanted attribute: count
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: count
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/anvil: wanted attribute: rate
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: rate
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/anvil: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 220 mail.i-move.cn ESMTP Postfix
Jun  4 16:07:08 mail postfix/smtpd[6734]: xsasl_dovecot_server_create: SASL service=smtp, realm=(null)
Jun  4 16:07:08 mail postfix/smtpd[6734]: name_mask: noanonymous
Jun  4 16:07:08 mail postfix/smtpd[6734]: xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
Jun  4 16:07:08 mail postfix/smtpd[6734]: xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
Jun  4 16:07:08 mail postfix/smtpd[6734]: watchdog_pat: 0x7f0c5dcee290
Jun  4 16:07:08 mail postfix/smtpd[6734]: < unknown[220.181.64.21]: EHLO corp.chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-PIPELINING
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-SIZE 104857600
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-ETRN
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-STARTTLS
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-AUTH PLAIN LOGIN
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: unknown: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: 220.181.64.21: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-AUTH=PLAIN LOGIN
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-ENHANCEDSTATUSCODES
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-8BITMIME
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250 DSN
Jun  4 16:07:08 mail postfix/smtpd[6734]: watchdog_pat: 0x7f0c5dcee290
Jun  4 16:07:08 mail postfix/smtpd[6734]: < unknown[220.181.64.21]: STARTTLS
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 220 2.0.0 Ready to start TLS
Jun  4 16:07:08 mail postfix/smtpd[6734]: auto_clnt_open: connected to private/tlsmgr
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = seed
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr size = 32
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/tlsmgr: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/tlsmgr: wanted attribute: seed
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: seed
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: wAA7TaI++Yaxj0zwnBe/l61fbckW05UZK3IdyN79Ckc=
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/tlsmgr: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: watchdog_pat: 0x7f0c5dcee290
Jun  4 16:07:08 mail postfix/smtpd[6734]: < unknown[220.181.64.21]: EHLO corp.chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-PIPELINING
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-SIZE 104857600
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-ETRN
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-AUTH PLAIN LOGIN
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: unknown: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: 220.181.64.21: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-AUTH=PLAIN LOGIN
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-ENHANCEDSTATUSCODES
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250-8BITMIME
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250 DSN
Jun  4 16:07:08 mail postfix/smtpd[6734]: watchdog_pat: 0x7f0c5dcee290
Jun  4 16:07:08 mail postfix/smtpd[6734]: < unknown[220.181.64.21]: MAIL FROM:<junlei.tian@chinacache.com> SIZE=31592
Jun  4 16:07:08 mail postfix/smtpd[6734]: extract_addr: input: <junlei.tian@chinacache.com>
Jun  4 16:07:08 mail postfix/smtpd[6734]: smtpd_check_addr: addr=junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: connect to subsystem private/rewrite
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = rewrite
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr rule = local
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr address = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: address
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: address
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: rewrite_clnt: local: junlei.tian@chinacache.com -> junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = resolve
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sender = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr address = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: transport
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: transport
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: smtp
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: nexthop
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: nexthop
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: recipient
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: recipient
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 4096
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: resolve_clnt: `' -> `junlei.tian@chinacache.com' -> transp=`smtp' host=`chinacache.com' rcpt=`junlei.tian@chinacache.com' flags= class=default
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: install entry key junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: extract_addr: in: <junlei.tian@chinacache.com>, result: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: fsspace: .: block size 4096, blocks free 8317531
Jun  4 16:07:08 mail postfix/smtpd[6734]: smtpd_check_queue: blocks 4096 avail 8317531 min_free 0 msg_size_limit 104857600
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 250 2.1.0 Ok
Jun  4 16:07:08 mail postfix/smtpd[6734]: watchdog_pat: 0x7f0c5dcee290
Jun  4 16:07:08 mail postfix/smtpd[6734]: < unknown[220.181.64.21]: RCPT TO:<tshen@i-move.cn>
Jun  4 16:07:08 mail postfix/smtpd[6734]: extract_addr: input: <tshen@i-move.cn>
Jun  4 16:07:08 mail postfix/smtpd[6734]: smtpd_check_addr: addr=tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = rewrite
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr rule = local
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr address = tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: address
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: address
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: rewrite_clnt: local: tshen@i-move.cn -> tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = resolve
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sender = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr address = tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: transport
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: transport
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: dovecot
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: nexthop
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: nexthop
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: recipient
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: recipient
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1024
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: resolve_clnt: `' -> `tshen@i-move.cn' -> transp=`dovecot' host=`i-move.cn' rcpt=`tshen@i-move.cn' flags= class=virtual
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: install entry key tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: extract_addr: in: <tshen@i-move.cn>, result: tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = rewrite
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr rule = local
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr address = double-bounce
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: flags
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: address
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: address
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: double-bounce@mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/rewrite socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: rewrite_clnt: local: double-bounce -> double-bounce@mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> START Helo command RESTRICTIONS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_mynetworks
Jun  4 16:07:08 mail postfix/smtpd[6734]: permit_mynetworks: unknown 220.181.64.21
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostname: unknown ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostaddr: 220.181.64.21 ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: unknown: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: 220.181.64.21: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_mynetworks status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_sasl_authenticated
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_sasl_authenticated status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=check_helo_access
Jun  4 16:07:08 mail postfix/smtpd[6734]: check_domain_access: corp.chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_pcre_lookup: /etc/postfix/helo_access.pcre: corp.chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=check_helo_access status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> END Helo command RESTRICTIONS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> START Sender address RESTRICTIONS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_mynetworks
Jun  4 16:07:08 mail postfix/smtpd[6734]: permit_mynetworks: unknown 220.181.64.21
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostname: unknown ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostaddr: 220.181.64.21 ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: unknown: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: 220.181.64.21: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_mynetworks status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_sender_login_mismatch
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> START Sender address RESTRICTIONS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_authenticated_sender_login_mismatch
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_authenticated_sender_login_mismatch status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unauthenticated_sender_login_mismatch
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: move existing entry key junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: connect to subsystem private/proxymap
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/sender_login_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/sender_login_maps.cf flags=lock|fold_fix key=junlei.tian@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: smtpd_sender_login_maps: junlei.tian@chinacache.com: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost.localdomain
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost.mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: chinacache.com: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/sender_login_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = @chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/sender_login_maps.cf flags=lock|fold_fix key=@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: smtpd_sender_login_maps: @chinacache.com: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: mail_addr_find: junlei.tian@chinacache.com -> (not found)
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unauthenticated_sender_login_mismatch status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> END Sender address RESTRICTIONS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_sender_login_mismatch status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_sasl_authenticated
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_sasl_authenticated status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> END Sender address RESTRICTIONS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> CHECKING RECIPIENT MAPS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: leave existing entry key junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: recipient_canonical_maps: junlei.tian@chinacache.com: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost.localdomain
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost.mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: chinacache.com: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: recipient_canonical_maps: @chinacache.com: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: mail_addr_find: junlei.tian@chinacache.com -> (not found)
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: canonical_maps: junlei.tian@chinacache.com: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost.localdomain
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost.mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: chinacache.com: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: canonical_maps: @chinacache.com: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: mail_addr_find: junlei.tian@chinacache.com -> (not found)
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/virtual_alias_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/virtual_alias_maps.cf flags=lock|fold_fix key=junlei.tian@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/domain_alias_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/domain_alias_maps.cf flags=lock|fold_fix key=junlei.tian@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/catchall_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/catchall_maps.cf flags=lock|fold_fix key=junlei.tian@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf flags=lock|fold_fix key=junlei.tian@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: virtual_alias_maps: junlei.tian@chinacache.com: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost.localdomain
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: chinacache.com ~? localhost.mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: chinacache.com: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/virtual_alias_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = @chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/virtual_alias_maps.cf flags=lock|fold_fix key=@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/domain_alias_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = @chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/domain_alias_maps.cf flags=lock|fold_fix key=@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/catchall_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = @chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/catchall_maps.cf flags=lock|fold_fix key=@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = @chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 1
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf flags=lock|fold_fix key=@chinacache.com -> status=1 result=
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: virtual_alias_maps: @chinacache.com: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: mail_addr_find: junlei.tian@chinacache.com -> (not found)
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> START Recipient address RESTRICTIONS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unknown_sender_domain
Jun  4 16:07:08 mail postfix/smtpd[6734]: reject_unknown_address: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: leave existing entry key junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: reject_unknown_mailhost: chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: lookup chinacache.com type MX flags 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: dns_query: chinacache.com (MX): OK
Jun  4 16:07:08 mail postfix/smtpd[6734]: dns_get_answer: type MX for chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unknown_sender_domain status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unknown_recipient_domain
Jun  4 16:07:08 mail postfix/smtpd[6734]: reject_unknown_address: tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: move existing entry key tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unknown_recipient_domain status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_non_fqdn_sender
Jun  4 16:07:08 mail postfix/smtpd[6734]: reject_non_fqdn_address: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_non_fqdn_sender status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_non_fqdn_recipient
Jun  4 16:07:08 mail postfix/smtpd[6734]: reject_non_fqdn_address: tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_non_fqdn_recipient status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unlisted_recipient
Jun  4 16:07:08 mail postfix/smtpd[6734]: >>> CHECKING RECIPIENT MAPS <<<
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: leave existing entry key tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: recipient_canonical_maps: tshen@i-move.cn: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: i-move.cn ~? mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: i-move.cn ~? localhost
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: i-move.cn ~? localhost.localdomain
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: i-move.cn ~? localhost.mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: i-move.cn: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: recipient_canonical_maps: @i-move.cn: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: mail_addr_find: tshen@i-move.cn -> (not found)
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: canonical_maps: tshen@i-move.cn: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: i-move.cn ~? mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: i-move.cn ~? localhost
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: i-move.cn ~? localhost.localdomain
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_string: i-move.cn ~? localhost.mail.i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: i-move.cn: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: canonical_maps: @i-move.cn: not found
Jun  4 16:07:08 mail postfix/smtpd[6734]: mail_addr_find: tshen@i-move.cn -> (not found)
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = lookup
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr table = mysql:/etc/postfix/mysql/virtual_alias_maps.cf
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr flags = 16448
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr key = tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: value
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/proxymap socket: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_proxy_lookup: table=mysql:/etc/postfix/mysql/virtual_alias_maps.cf flags=lock|fold_fix key=tshen@i-move.cn -> status=0 result=tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: maps_find: virtual_alias_maps: proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf(0,lock|fold_fix): tshen@i-move.cn = tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: mail_addr_find: tshen@i-move.cn -> tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unlisted_recipient status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=check_policy_service
Jun  4 16:07:08 mail postfix/smtpd[6734]: trying... [127.0.0.1]
Jun  4 16:07:08 mail postfix/smtpd[6734]: auto_clnt_open: connected to 127.0.0.1:7777
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = smtpd_access_policy
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr protocol_state = RCPT
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr protocol_name = ESMTP
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr client_address = 220.181.64.21
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr client_name = unknown
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr reverse_client_name = unknown
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr helo_name = corp.chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sender = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr recipient = tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr recipient_count = 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr queue_id = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr instance = 1a4e.538ed3ac.c6f46.0
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr size = 31592
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr etrn_domain = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr stress = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sasl_method = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sasl_username = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sasl_sender = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr ccert_subject = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr ccert_issuer = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr ccert_fingerprint = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr encryption_protocol = TLSv1
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr encryption_cipher = AES128-SHA
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr encryption_keysize = 128
Jun  4 16:07:08 mail postfix/smtpd[6734]: 127.0.0.1:7777: wanted attribute: action
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: action
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: DUNNO
Jun  4 16:07:08 mail postfix/smtpd[6734]: 127.0.0.1:7777: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: check_table_result: inet:127.0.0.1:7777 DUNNO policy query
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=check_policy_service status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_mynetworks
Jun  4 16:07:08 mail postfix/smtpd[6734]: permit_mynetworks: unknown 220.181.64.21
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostname: unknown ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostaddr: 220.181.64.21 ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: unknown: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: 220.181.64.21: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_mynetworks status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_sasl_authenticated
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=permit_sasl_authenticated status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unauth_destination
Jun  4 16:07:08 mail postfix/smtpd[6734]: reject_unauth_destination: tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: permit_auth_destination: tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: leave existing entry key tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_unauth_destination status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_non_fqdn_helo_hostname
Jun  4 16:07:08 mail postfix/smtpd[6734]: reject_non_fqdn_hostname: corp.chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_non_fqdn_helo_hostname status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_invalid_helo_hostname
Jun  4 16:07:08 mail postfix/smtpd[6734]: reject_invalid_hostname: corp.chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=reject_invalid_helo_hostname status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=check_policy_service
Jun  4 16:07:08 mail postfix/smtpd[6734]: trying... [127.0.0.1]
Jun  4 16:07:08 mail postfix/smtpd[6734]: auto_clnt_open: connected to 127.0.0.1:10031
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = smtpd_access_policy
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr protocol_state = RCPT
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr protocol_name = ESMTP
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr client_address = 220.181.64.21
Jun  4 16:07:08 mail policyd: connection from: 127.0.0.1 port: 50305 slots: 0 of 2044 used
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr client_name = unknown
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr reverse_client_name = unknown
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr helo_name = corp.chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sender = junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr recipient = tshen@i-move.cn
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr recipient_count = 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr queue_id = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr instance = 1a4e.538ed3ac.c6f46.0
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr size = 31592
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr etrn_domain = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr stress = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sasl_method = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sasl_username = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr sasl_sender = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr ccert_subject = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr ccert_issuer = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr ccert_fingerprint = 
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr encryption_protocol = TLSv1
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr encryption_cipher = AES128-SHA
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr encryption_keysize = 128
Jun  4 16:07:08 mail policyd: rcpt=220, whitelist_sender=update, host=220.181.64.21 (unknown), from=junlei.tian@chinacache.com, to=tshen@i-move.cn, size=31592
Jun  4 16:07:08 mail postfix/smtpd[6734]: 127.0.0.1:10031: wanted attribute: action
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: action
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: dunno
Jun  4 16:07:08 mail postfix/smtpd[6734]: 127.0.0.1:10031: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: check_table_result: inet:127.0.0.1:10031 dunno policy query
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=check_policy_service status=0
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=check_sender_access
Jun  4 16:07:08 mail postfix/smtpd[6734]: check_mail_access: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: ctable_locate: move existing entry key junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: check_access: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_regexp_lookup: /etc/postfix/checks-rule/sender_checks: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: check_table_result: regexp:/etc/postfix/checks-rule/sender_checks REJECT junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: NOQUEUE: reject: RCPT from unknown[220.181.64.21]: 554 5.7.1 <junlei.tian@chinacache.com>: Sender address rejected: Access denied; from=<junlei.tian@chinacache.com> to=<tshen@i-move.cn> proto=ESMTP helo=<corp.chinacache.com>
Jun  4 16:07:08 mail postfix/smtpd[6734]: generic_checks: name=check_sender_access status=2
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 554 5.7.1 <junlei.tian@chinacache.com>: Sender address rejected: Access denied
Jun  4 16:07:08 mail postfix/smtpd[6734]: watchdog_pat: 0x7f0c5dcee290
Jun  4 16:07:08 mail postfix/smtpd[6734]: < unknown[220.181.64.21]: QUIT
Jun  4 16:07:08 mail postfix/smtpd[6734]: > unknown[220.181.64.21]: 221 2.0.0 Bye
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostname: unknown ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_hostaddr: 220.181.64.21 ~? 127.0.0.0/8
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: unknown: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: match_list_match: 220.181.64.21: no match
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr request = disconnect
Jun  4 16:07:08 mail postfix/smtpd[6734]: send attr ident = smtp:220.181.64.21
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/anvil: wanted attribute: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: status
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute value: 0
Jun  4 16:07:08 mail postfix/smtpd[6734]: private/anvil: wanted attribute: (list terminator)
Jun  4 16:07:08 mail postfix/smtpd[6734]: input attribute name: (end)
Jun  4 16:07:08 mail postfix/smtpd[6734]: disconnect from unknown[220.181.64.21]

我看到其中有以下几行:

Jun  4 16:07:08 mail postfix/smtpd[6734]: dict_regexp_lookup: /etc/postfix/checks-rule/sender_checks: junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: check_table_result: regexp:/etc/postfix/checks-rule/sender_checks REJECT junlei.tian@chinacache.com
Jun  4 16:07:08 mail postfix/smtpd[6734]: NOQUEUE: reject: RCPT from unknown[220.181.64.21]: 554 5.7.1 <junlei.tian@chinacache.com>: Sender address rejected: Access denied; from=<junlei.tian@chinacache.com> to=<tshen@i-move.cn> proto=ESMTP helo=<corp.chinacache.com>

/etc/postfix/checks-rule/sender_checks 文件是类似以下这样的内容,有2000多行:

/zzpmjiv.net$/  REJECT
/zzpy.com $/  REJECT
/zztackpt.org$/  REJECT
/zztur.net$/  REJECT
/zzvj.net$/  REJECT
/zzwuwa.com$/  REJECT
/nessen.com$/  REJECT

但是这个文件里并不包括chinacache.com,为啥会在这里把这个域名的邮件拒收?

4 最后由 sailer.shen (2014-06-04 18:46:17) 编辑

回复: 拒收邮件的问题

终于发现问题所在。
/etc/postfix/checks-rules/sender_checks文件里有一行:

/e.com$/  REJECT

在做正则检查时,e.com$ 与chinacache.com 匹配成功,导致chinacache.com发来的邮件被拒收。
根据ZhangHuangbin的提示,把这一行改为:

/^(e\.com)$/  REJECT ACCESS DENIED. Mail was rejected (${1})

这样就保证e.com不会与chinacache.com匹配上。
当然,这个文件里所有的行都需要按这样的方法做修改。

注:
REJECT后面的内容会出现在退信中,这样便于调试。

问题解决。
感谢ZhangHuangbin给我的帮助!
细节决定成败啊。。。