关于sendmail本地用outlook发送出现错误0x80040607,同学们快来帮忙解决一下

2013-10-20 16:41:16 +08:00
 a7898585
提示信息为:发送测试电子邮件消息:出现未知错误,错误代码:0x80040607
具体步骤
http://hi.baidu.com/xie_jin/item/311e474a576f980c6cc2f075
在vps上测试成功,正常发信,outlook上收信正常,发信出现上面错误
百度上很多说要在其他设置的发送服务器里勾选我的发送服务器要求验证,但是测试以后还是失败
同学们有知道怎么解决的吗?
5128 次点击
所在节点    Linux
8 条回复
megaforce
2013-10-20 21:50:10 +08:00
手动telnet测试一下,看看是sendmail还是其他方面的问题



看看maillog里面怎么说的
a7898585
2013-10-20 21:58:53 +08:00
@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 =<delijia-stationary@bjsht.org>, relay=[122.227.117.189], reject=550 5.7.1 <deli jia-stationary@bjsht.org>... 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 =<delijia-stationary@bjsht.org>, relay=[122.227.117.189], reject=550 5.7.1 <deli jia-stationary@bjsht.org>... 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
megaforce
2013-10-21 09:28:30 +08:00
Oct 20 04:35:16 server1 sendmail[2177]: r9K8ZFCc002177: ruleset=check_rcpt, arg1 =<delijia-stationary@bjsht.org>;, relay=[122.227.117.189], reject=550 5.7.1 <deli jia-stationary@bjsht.org>... 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要接受哪个域名的邮件.
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:<test@163.com>
data
From:<USERNAME@DOMAIN>
To:<test@163.com>
Subject: TEST

day day up
.
QUIT
a7898585
2013-10-21 10:14:59 +08:00
@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: 4451641347@qq.com
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.
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
a7898585
2013-10-21 11:32:03 +08:00
@megaforce
生成的***授权错误
AUTH PLAIN AFVTRVJOQU1FQERPTUFJTgBQQVNTV09SRA==
535 5.7.0 authentication failed

我的设置里面好像是MECH=shadow,这个有影响吗
a7898585
2013-10-21 22:17:11 +08:00
有其他同学能帮忙解答下吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/86196

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX