LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1217|回复: 1

[请教] 使用sendmail 给公司邮箱失败,但是给gmail发送邮件能够成功,为什么呢?

[复制链接]
发表于 2011-4-26 13:26:57 | 显示全部楼层 |阅读模式
求教一下!!!谢谢哈~

用sendmail -t 测试发送邮件
给gmail邮件和公司邮箱各发送了一个邮件,结果发现gmail能收到,但是给公司邮箱发送失败。
error log如下:不过奇怪的是,我们公司的邮件服务器地址是cnhzexch01.comtele.com但是从log里看到的却是cnhzsbg01.comtele.com。

Apr 25 08:27:12 luncher sendmail[24447]: p3P0QTlK024447: from=hzscm, size=117, class=0, nrcpts=2, msgid=<201104250026.p3P0QTlK024447@launcher.com_domain>, relay=hzscm@localhost
Apr 25 08:27:12 luncher sendmail[24448]: p3P0RCN3024448: from=<hzscm@launcher.com_domain>, size=354, class=0, nrcpts=2, msgid=<201104250026.p3P0QTlK024447@launcher.com_domain>, proto=ESMTP, daemon=MTA, relay=launcher.com_domain [127.0.0.1]
Apr 25 08:27:12 luncher sendmail[24447]: p3P0QTlK024447: to=zhebie.zju@gmail.com,zhebie_zju@comtele.com, ctladdr=hzscm (500/500), delay=00:00:43, xdelay=00:00:00, mailer=relay, pri=60117, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p3P0RCN3024448 Message accepted for delivery)
Apr 25 08:27:12 luncher sendmail[24450]: p3P0RCN3024448: to=<zhebie_zju@comtele.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=150354, relay=cnhzsbg01.comtele.com., dsn=5.1.2, stat=Host unknown (Name server: cnhzsbg01.comtele.com.: host not found)
Apr 25 08:27:16 luncher sendmail[24450]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Apr 25 08:27:20 luncher sendmail[24450]: p3P0RCN3024448: to=<zhebie.zju@gmail.com>, delay=00:00:08, xdelay=00:00:08, mailer=esmtp, pri=150354, relay=gmail-smtp-in.l.google.com. [72.14.213.27], dsn=2.0.0, stat=Sent (OK 1303691114 x3si9583645wfd.25)
Apr 25 08:27:20 luncher sendmail[24450]: p3P0RCN3024448: p3P0RKN3024450: DSN: Host unknown (Name server: cnhzsbg01.comtele.com.: host not found)
Apr 25 08:27:20 luncher sendmail[24450]: p3P0RKN3024450: SYSERR(root): launcher.com_domain. config error: mail loops back to me (MX problem?)
Apr 25 08:27:20 luncher sendmail[24451]: p3P0RKpm024451: launcher.com_domain [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Apr 25 08:27:20 luncher sendmail[24450]: p3P0RKN3024450: to=<hzscm@launcher.com_domain>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=31565, relay=launcher.com_domain. [127.0.0.1], dsn=5.3.5, stat=Local configuration error
Apr 25 08:27:26 luncher sendmail[24450]: p3P0RKN3024450: p3P0RKN4024450: return to sender: Local configuration error
Apr 25 08:27:27 luncher sendmail[24450]: p3P0RKN4024450: to=root, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=32589, dsn=2.0.0, stat=Sent
发表于 2011-4-27 10:33:33 | 显示全部楼层
检查下DNS的MX,A记录,/etc/hosts,看看有没配置错误。
检查下Sendmail的relay配置。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表