免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2527 | 回复: 0
打印 上一主题 下一主题

[Mail] sendmail无法relay邮件问题(已解决,谢谢) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-27 09:21 |只看该作者 |倒序浏览
我的sendmail配置好smtp服务后,

假设sendmail配的/etc/mail/local-host-name里配置的域名为heartbeat.com,

我用sendmail  -v bio3_jill@163.com测试发信无法发信,

我已在/etc/log/access里增加了

.163.com RELAY这一行


##############maillog记录如下,####################
##heartbeat2是mail server的hostname,

Dec 27 01:41:57 heartbeat2 sendmail[23528]: lBR1frco023528: from=root, size=12, class=0, nrcpts=1, msgid=<200712270141.lBR1frco023528@heartbeat2.localdomain>, relay=root@localhost
Dec 27 01:41:57 heartbeat2 sendmail[23531]: lBR1fvtg023531: <bio3_jill@163.com>... Unrecognized host name 163.com.
Dec 27 01:41:57 heartbeat2 sendmail[23528]: lBR1frco023528: to=bio3_jill@163.com, ctladdr=root (0/0), delay=00:00:04, xdelay=00:00:00, mailer=relay, pri=30012, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.2, stat=User unknown
Dec 27 01:41:57 heartbeat2 sendmail[23531]: lBR1fvtg023531: from=<root@heartbeat2.localdomain>, size=12, class=0, nrcpts=0, proto=ESMTP, daemon=MSA, relay=localhost.localdomain [127.0.0.1]
Dec 27 01:41:57 heartbeat2 sendmail[23528]: lBR1frco023528: lBR1frcp023528: DSN: User unknown
Dec 27 01:41:57 heartbeat2 sendmail[23531]: lBR1fvti023531: from=<>, size=2049, class=0, nrcpts=1, msgid=<200712270141.lBR1frcp023528@heartbeat2.localdomain>, proto=ESMTP, daemon=MSA, relay=localhost.localdomain [127.0.0.1]
Dec 27 01:41:57 heartbeat2 sendmail[23528]: lBR1frcp023528: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31036, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (lBR1fvti023531 Message accepted for delivery)
Dec 27 01:41:57 heartbeat2 sendmail[23532]: lBR1fvti023531: to=<root@heartbeat2.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32268, dsn=2.0.0, stat=Sent



##############运行nslookup -type=mx 163.com命令显示如下###############

Server:         192.168.1.201
Address:        192.168.1.201#53

Non-authoritative answer:
163.com mail exchanger = 50 mx.mail.163.split.netease.com.

Authoritative answers can be found from:
163.com nameserver = ns.nease.net.
163.com nameserver = ns3.nease.net.
ns.nease.net    internet address = 202.106.185.75
ns3.nease.net   internet address = 220.181.28.3



##############运行dig mail.163.com显示如下####################


; <<>> DiG 9.2.4 <<>> mail.163.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13572
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;mail.163.com.                  IN      A

;; ANSWER SECTION:
mail.163.com.           78295   IN      CNAME   mcache.mail.163.com.
mcache.mail.163.com.    100276  IN      CNAME   mcache.split.netease.com.
mcache.split.netease.com. 361   IN      A       61.177.95.155

;; AUTHORITY SECTION:
split.netease.com.      199     IN      NS      ns-split1.netease.com.
split.netease.com.      199     IN      NS      ns-split2.netease.com.

;; ADDITIONAL SECTION:
ns-split1.netease.com.  2597    IN      A       202.106.168.79
ns-split2.netease.com.  2597    IN      A       220.181.28.4

;; Query time: 1 msec
;; SERVER: 192.168.1.201#53(192.168.1.201)
;; WHEN: Thu Dec 27 01:39:34 2007
;; MSG SIZE  rcvd: 182


请高手们帮忙看下是哪里还有问题,谢谢了~~~

[ 本帖最后由 BLZer 于 2007-12-27 10:55 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP