1
megaforce 2013-10-20 21:50:10 +08:00 via iPad 1
手动telnet测试一下,看看是sendmail还是其他方面的问题
看看maillog里面怎么说的 |
2
a7898585 OP @megaforce 手动telnet正常,能发信
mailog的我复制了一部分 Oct 20 04:34:50 server1 dovecot: pop3-login: Login: user=<sales>, method=PLAIN, rip=::ffff:122.227.117.189, lip=::ffff:162.220.10.200 Oct 20 04:34:50 server1 dovecot: POP3(sales): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Oct 20 04:34:54 server1 sendmail[2173]: r9K8YpuV002173: ruleset=check_rcpt, arg1 =<[email protected]>, relay=[122.227.117.189], reject=550 5.7.1 <deli [email protected]>... Relaying denied. IP name lookup failed [122.227.117 .189] Oct 20 04:34:54 server1 sendmail[2173]: r9K8YpuV002173: from=<delijia-stationary @bjsht.org>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[122.227. 117.189] Oct 20 04:35:14 server1 dovecot: pop3-login: Login: user=<sales>, method=PLAIN, rip=::ffff:122.227.117.189, lip=::ffff:162.220.10.200 Oct 20 04:35:14 server1 dovecot: POP3(sales): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Oct 20 04:35:16 server1 sendmail[2177]: r9K8ZFCc002177: ruleset=check_rcpt, arg1 =<[email protected]>, relay=[122.227.117.189], reject=550 5.7.1 <deli [email protected]>... Relaying denied. IP name lookup failed [122.227.117 .189] Oct 20 04:35:16 server1 sendmail[2177]: r9K8ZFCc002177: from=<delijia-stationary @bjsht.org>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[122.227. 117.189] Oct 20 04:36:08 server1 dovecot: pop3-login: Login: user=<sales>, method=PLAIN, rip=::ffff:122.227.117.189, lip=::ffff:162.220.10.200 Oct 20 04:36:08 server1 dovecot: POP3(sales): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Oct 20 04:36:10 server1 sendmail[2183]: AUTH=server, relay=[122 |
3
megaforce 2013-10-21 09:28:30 +08:00
Oct 20 04:35:16 server1 sendmail[2177]: r9K8ZFCc002177: ruleset=check_rcpt, arg1 =<[email protected]>;, relay=[122.227.117.189], reject=550 5.7.1 <deli [email protected]>... Relaying denied. IP name lookup failed [122.227.117 .189]
Oct 20 04:35:16 server1 sendmail[2177]: r9K8ZFCc002177: from=<delijia-stationary @bjsht.org>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[122.227. 117.189] 这个日志只是说sendmail不接受转发到bjsht.org的邮件。 你确定一下,你的sendmail是要接受哪个domain的邮件。从/etc/mail/local-host-names里面可以设置告诉Sendmail要接受哪个域名的邮件. |
4
megaforce 2013-10-21 09:33:30 +08:00
@a7898585
我看了baidu上面贴的测试,你是连127.0.0.1测试发信。你试一下从外面连外网测试,例如: 1. 先生成验证用的 perl -MMIME::Base64 -e 'print encode_base64("\000USERNAME\@DOMAIN\000PASSWORD")' 输入的*****下面要用 2. telnet测试了: telnet 162.220.10.200 25 EHLO test AUTH PLAIN ****** mail from:<USERNAME@DOMAIN> rcpt to:<[email protected]> data From:<USERNAME@DOMAIN> To:<[email protected]> Subject: TEST day day up . QUIT |
5
a7898585 OP @megaforce
在outlook上接受陈功的,只是发送失败 下面的在服务器上的发送测试,是成功的,我QQ邮箱接收到了邮件 telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 centos5 ESMTP Sendmail 8.13.8/8.13.8; Thu, 6 May 2010 06:21:29 +0800 helo localhost 250 centos5 Hello localhost.localdomain [127.0.0.1], pleased to meet you mail from:<> 250 2.1.0 <>... Sender ok rcpt to: [email protected] 250 2.1.5 <>... Recipient ok data 354 Enter mail, end with "." on a line by itself From: alin To: alin Subject: Hello test . 250 2.0.0 o45MLTcH005157 Message accepted for delivery quit 221 2.0.0 centos5 closing connection Connection closed by foreign host. |
6
megaforce 2013-10-21 10:45:37 +08:00
@a7898585 你没仔细看我的回复。
不要在127.0.0.1上测试。 在outlook上『接受成功』这个是指dovecot是没有问题 在outlook上『发送』失败,就是『sendmail不接受RELAY到bjsht.org』,你在/etc/mail/local-host-names里里面加上bjsht.org;或者你在access里面写上 bjsht.org REALY |
7
a7898585 OP @megaforce
生成的***授权错误 AUTH PLAIN AFVTRVJOQU1FQERPTUFJTgBQQVNTV09SRA== 535 5.7.0 authentication failed 我的设置里面好像是MECH=shadow,这个有影响吗 |
8
a7898585 OP 有其他同学能帮忙解答下吗?
|