免费注册 查看新帖 |

Chinaunix

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

[Mail] 请教:关于PHP使用sendmail自动发送邮件不能发送到某企业邮局的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-18 18:03 |只看该作者 |倒序浏览
请教各位大大一些事情:
    事情状况:
      1. 用php设计了一个网站,该网站所在的服务器的OS是:Scientific Linux ,该网站是一个买卖网站,有一个自动发送mail的机制(客户在注册时必须提供一个mail address,当注册成功以及客户下订单时网站会自动发送一封mail到客户注册时所填写的mail address上);
    2.该网站设计时,在php里使用函数直接调用Scientific Linux 内置的sendmail 进行发送mail。经过测试,客户使用@163.com 、@hotmail.com 的mail address注册后都可以收得到该网站自动发送的mail;
    3.奇怪的一点是发送到某一个企业邮箱就收不到,这里先解释下: 我们这里假设网站名为:www.maimai.com.cn ,上述提到的收不到mail的企业邮箱为@shop.com.cn ; 而www.maimai.com.cn发送邮件时使用的mail抬头是: service@shop.com.cn (PS:我也搞不懂为何弄的这么麻烦...)  
      4. www.maimai.com.cnwww.shop.com.cn (@shop.com.cn对应的domain)是托管在两家不同的ISP下;
     为何www.maimai.com.cn发往大部分邮件地址都可以,就发到@shop.com.cn 不行,各位大大能否分析下...

       谢谢了!!!

论坛徽章:
0
2 [报告]
发表于 2007-04-18 18:10 |只看该作者
请问下若用Scientific Linux  的sendmail发送mail,邮件日志和退信信息所存在的路径是哪里?

论坛徽章:
0
3 [报告]
发表于 2007-04-19 10:15 |只看该作者
/var/log/maillog

论坛徽章:
0
4 [报告]
发表于 2007-04-19 11:42 |只看该作者
说出你的发件服务器的IP地址和域名

论坛徽章:
0
5 [报告]
发表于 2007-04-19 16:20 |只看该作者
各位大俠,這樣的log怎么看的呢?

"maillog" [readonly] 34L, 5182C
Apr 19 13:10:35 devfiva sendmail[1756]: alias database /etc/aliases rebuilt by root
Apr 19 13:10:35 devfiva sendmail[1756]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Apr 19 13:10:35 devfiva sendmail[1761]: starting daemon (8.13.5): SMTP+queueing@01:00:00
Apr 19 13:10:35 devfiva sm-msp-queue[1770]: starting daemon (8.13.5): queueing@01:00:00
Apr 19 13:17:18 devfiva sendmail[1703]: alias database /etc/aliases rebuilt by root
Apr 19 13:17:18 devfiva sendmail[1703]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Apr 19 13:17:18 devfiva sendmail[1708]: starting daemon (8.13.5): SMTP+queueing@01:00:00
Apr 19 13:17:19 devfiva sm-msp-queue[1716]: starting daemon (8.13.5): queueing@01:00:00
Apr 19 13:31:59 devfiva sendmail[1774]: alias database /etc/aliases rebuilt by root
Apr 19 13:31:59 devfiva sendmail[1774]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Apr 19 13:31:59 devfiva sendmail[1779]: starting daemon (8.13.5): SMTP+queueing@01:00:00
Apr 19 13:31:59 devfiva sm-msp-queue[1787]: starting daemon (8.13.5): queueing@01:00:00
Apr 19 13:59:52 devfiva sendmail[2580]: l3J5xmrs002580: from=root, size=78, class=0, nrcpts=2, msgid=<200704190559.l3J5xmrs002580@localhost.localdomain>, relay=root@localhost
Apr 19 13:59:52 devfiva sendmail[2581]: l3J5xqVB002581: <.@localhost.localdomain>... User unknown
Apr 19 13:59:52 devfiva sendmail[2580]: l3J5xmrs002580: to=., ctladdr=root (0/0), delay=00:00:04, xdelay=00:00:00, mailer=relay, pri=60078, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Apr 19 13:59:52 devfiva sendmail[2581]: l3J5xqVB002581: from=<root@localhost.localdomain>, size=375, class=0, nrcpts=1, msgid=<200704190559.l3J5xmrs002580@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=devfiva [127.0.0.1]
Apr 19 13:59:52 devfiva sendmail[2580]: l3J5xmrs002580: to=codylee@qq.com, ctladdr=root (0/0), delay=00:00:04, xdelay=00:00:00, mailer=relay, pri=60078, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l3J5xqVB002581 Message accepted for delivery)
Apr 19 13:59:52 devfiva sendmail[2580]: l3J5xmrs002580: l3J5xmrt002580: DSN: User unknown
Apr 19 13:59:52 devfiva sendmail[2581]: l3J5xqVD002581: from=<>, size=1977, class=0, nrcpts=1, msgid=<200704190559.l3J5xmrt002580@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=devfiva [127.0.0.1]
Apr 19 13:59:52 devfiva sendmail[2580]: l3J5xmrt002580: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31102, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l3J5xqVD002581 Message accepted for delivery)
Apr 19 13:59:52 devfiva sendmail[2584]: l3J5xqVD002581: to=<root@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32181, dsn=2.0.0, stat=Sent
Apr 19 13:59:59 devfiva sendmail[2583]: l3J5xqVB002581: to=<codylee@qq.com>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:07, xdelay=00:00:07, mailer=esmtp, pri=120375, relay=aspmx.l.google.com. [72.14.253.27], dsn=2.0.0, stat=Sent (OK 1176962440 y25si154313pod)
Apr 19 14:02:50 devfiva sendmail[2633]: alias database /etc/aliases rebuilt by root
Apr 19 14:02:50 devfiva sendmail[2633]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Apr 19 14:02:50 devfiva sendmail[2638]: starting daemon (8.13.5): SMTP+queueing@01:00:00
Apr 19 14:02:50 devfiva sm-msp-queue[2646]: starting daemon (8.13.5): queueing@01:00:00
Apr 19 14:03:13 devfiva sendmail[2653]: l3J63DSA002653: from=root, size=71, class=0, nrcpts=1, msgid=<200704190603.l3J63DSA002653@localhost.localdomain>, relay=root@localhost
Apr 19 14:03:14 devfiva sendmail[2654]: l3J63Dkb002654: from=<root@localhost.localdomain>, size=373, class=0, nrcpts=1, msgid=<200704190603.l3J63DSA002653@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=devfiva [127.0.0.1]
Apr 19 14:03:14 devfiva sendmail[2653]: l3J63DSA002653: to=codylee@qq.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30071, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l3J63Dkb002654 Message accepted for delivery)
Apr 19 14:03:16 devfiva sendmail[2656]: l3J63Dkb002654: to=<codylee@qq.com, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:03, xdelay=00:00:02, mailer=esmtp, pri=120373, relay=aspmx.l.google.com. [72.14.253.27], dsn=2.0.0, stat=Sent (OK 1176962637 m27si315840pof)
Apr 19 14:37:06 devfiva sendmail[2959]: l3J6b6HV002959: from=root, size=896, class=0, nrcpts=1, msgid=<200704190637.l3J6b6HV002959@localhost.localdomain>, relay=root@localhost
Apr 19 14:37:06 devfiva sendmail[2960]: l3J6b6EV002960: from=<root@localhost.localdomain>, size=1202, class=0, nrcpts=1, msgid=<200704190637.l3J6b6HV002959@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=devfiva [127.0.0.1]
Apr 19 14:37:06 devfiva sendmail[2959]: l3J6b6HV002959: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30896, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l3J6b6EV002960 Message accepted for delivery)
Apr 19 14:37:06 devfiva sendmail[2961]: l3J6b6EV002960: to=<root@localhost.localdomain>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31425, dsn=2.0.0, stat=Sent
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP