V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
a7898585
V2EX  ›  Linux

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

  •  
  •   a7898585 · 2013-10-20 16:41:16 +08:00 · 5107 次点击
    这是一个创建于 4055 天前的主题,其中的信息可能已经有所发展或是发生改变。
    提示信息为:发送测试电子邮件消息:出现未知错误,错误代码:0x80040607
    具体步骤
    http://hi.baidu.com/xie_jin/item/311e474a576f980c6cc2f075
    在vps上测试成功,正常发信,outlook上收信正常,发信出现上面错误
    百度上很多说要在其他设置的发送服务器里勾选我的发送服务器要求验证,但是测试以后还是失败
    同学们有知道怎么解决的吗?
    8 条回复    1970-01-01 08:00:00 +08:00
    megaforce
        1
    megaforce  
       2013-10-20 21:50:10 +08:00 via iPad   ❤️ 1
    手动telnet测试一下,看看是sendmail还是其他方面的问题



    看看maillog里面怎么说的
    a7898585
        2
    a7898585  
    OP
       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 =<[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
    megaforce
        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要接受哪个域名的邮件.
    megaforce
        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
    a7898585
        5
    a7898585  
    OP
       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: [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.
    megaforce
        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
    a7898585
        7
    a7898585  
    OP
       2013-10-21 11:32:03 +08:00
    @megaforce
    生成的***授权错误
    AUTH PLAIN AFVTRVJOQU1FQERPTUFJTgBQQVNTV09SRA==
    535 5.7.0 authentication failed

    我的设置里面好像是MECH=shadow,这个有影响吗
    a7898585
        8
    a7898585  
    OP
       2013-10-21 22:17:11 +08:00
    有其他同学能帮忙解答下吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1134 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:47 · PVG 06:47 · LAX 14:47 · JFK 17:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.