免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3846 | 回复: 2

[网络管理] 请教一个sendmail的问题 [复制链接]

论坛徽章:
0
发表于 2007-05-21 10:57 |显示全部楼层
我使用了一个php写的脚本发邮件,之间使用一直是好的,可是最近发现无法收到所发的mail,不知是为什么
使用的是redhat的兼容版本centos系统自带的sendmail发邮件,sendmai使用的是默认配置,没有做过任何配置,就最近这几天发现程序判断是把mail已经发出去了,但是却收不到邮件,是往我的gmail邮箱里发邮件。
一下是sendmail的发邮件时的进程过程:
1.
smmsp    17755 17754  0 10:36 pts/2    00:00:00 sendmail: ./l4L2bt5p017755 [127.0.0.1]: client MAIL
root     17874  2620  0 10:38 ?        00:00:00 sendmail: l4L2c3RU017874 localhost [127.0.0.1]: MAIL From

2.
smmsp    17755 17754  0 10:36 pts/2    00:00:00 sendmail: ./l4L2bt5p017755 [127.0.0.1]: client DATA 354
root     17874  2620  0 10:38 ?        00:00:00 sendmail: l4L2c3RU017874 localhost [127.0.0.1]: DATA

3.
root     17906     1  0 10:38 ?        00:00:00 sendmail: ./l4L2c3RU017874 gmail-smtp-in.l.google.com.: user open

4.
root     17906     1  0 10:38 ?        00:00:00 sendmail: ./l4L2c3RU017874 gmail-smtp-in.l.google.com.: client RCPT

5.
root     17906     1  0 10:38 ?        00:00:00 sendmail: ./l4L2c3RU017874 gmail-smtp-in.l.google.com.: client DATA 354

6.
root     17906     1  0 10:38 ?        00:00:00 sendmail: ./l4L2c3RU017874 gmail-smtp-in.l.google.com.: client DATA status

7.
root     17906     1  0 10:38 ?        00:00:00 sendmail: gmail-smtp-in.l.google.com.: idle

这是mail的log,/var/log/maillog
May 21 11:04:59 streamfount sendmail[20451]: My unqualified host name (streamfount) unknown; sleeping for retry
May 21 11:05:59 streamfount sendmail[20451]: unable to qualify my own domain name (streamfount) -- using short name
May 21 11:06:00 streamfount sendmail[20451]: l4L35xdM020451: from=root, size=760528, class=0, nrcpts=1, msgid=<e2cf3ea37fabd79c762e4fedca4ac65a@localhost.localdomain>, relay=root@localhost
May 21 11:06:08 streamfount sendmail[20472]: l4L360tS020472: from=<root@streamfount>, size=760619, class=0, nrcpts=1, msgid=<e2cf3ea37fabd79c762e4fedca4ac65a@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
May 21 11:06:08 streamfount sendmail[20451]: l4L35xdM020451: to=aaa@gmail.com, ctladdr=root (0/0), delay=00:00:09, xdelay=00:00:08, mailer=relay, pri=790528, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l4L360tS020472 Message accepted for delivery)
May 21 11:06:45 streamfount sendmail[20477]: l4L360tS020472: to=<aaa@gmail.com>, ctladdr=<root@streamfount> (0/0), delay=00:00:42, xdelay=00:00:37, mailer=esmtp, pri=880619, relay=gmail-smtp-in.l.google.com. [64.233.167.114], dsn=5.0.0, stat=Service unavailable
May 21 11:06:45 streamfount sendmail[20477]: l4L360tS020472: l4L36jtS020477: DSN: Service unavailable
May 21 11:06:47 streamfount sendmail[20477]: l4L36jtS020477: to=<root@streamfount>, delay=00:00:02, xdelay=00:00:00, mailer=local, pri=791835, dsn=2.0.0, stat=Sent

请问这个发邮件的过程是否正确,为什么我的邮件没有到达我的邮箱?

[ 本帖最后由 hjxisking 于 2007-5-21 11:11 编辑 ]

论坛徽章:
0
发表于 2007-05-21 17:57 |显示全部楼层

回复 #1 hjxisking 的帖子

日志里还发现
May 21 17:39:39 CZSFOUNT sendmail[5697]: l4L9dJmQ005697: from=<root@CZSFOUNT>, size=491, class=0, nrcpts=1, msgid=<340b5a4407051b97db3dbba17ff30b4e@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
May 21 17:40:43 CZSFOUNT sendmail[5703]: l4L9dJmQ005697: to=<syit601@gmail.com>, ctladdr=<root@CZSFOUNT> (0/0), delay=00:01:04, xdelay=00:01:04, mailer=esmtp, pri=120491, relay=gmail-smtp-in.l.google.com. [64.233.167.114], dsn=5.1.6, stat=User unknown
May 21 17:40:43 CZSFOUNT sendmail[5703]: l4L9dJmQ005697: l4L9ehmQ005703: DSN: User unknown


请问会是什么问题?怎么解决?
大哥大姐帮帮忙吧,小弟对这个并不是很懂。。。。

论坛徽章:
0
发表于 2007-05-21 17:59 |显示全部楼层

回复 #2 hjxisking 的帖子

说明一下,以上是2台机器,2楼的是另一台机器的日志显示,CASFOUNT只是那台机器的机器名,该机器只是发mail而已
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP