免费注册 查看新帖 |

Chinaunix

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

[Mail] 关于sendmail中邮件都发到root下,什么原因? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-08-26 21:23 |只看该作者 |倒序浏览
DNS:172.31.11.238
SMTP/POP3:172.31.11.238

我得邮件服务器能发送邮件,可就是收不到,请帮我看看如下:
/var/log/mail:

Aug 26 20:37:09 www sendmail[23263]: h7QCb9Fa023263: from=<smmsp@test.com>;, size=582, class=0, nrcpts=1, msgid=<200308261237.h7QCb9Fa023263@www.test.com>;, proto=SMTP, daemon=MTA, relay=[172.31.11.43]
Aug 26 20:37:09 www sendmail[23264]: h7QCb9Fa023263: to=root, ctladdr=<smmsp@test.com>; (506/506), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30800, dsn=2.0.0, stat=Sent
Aug 26 20:37:17 www ipop3d[23266]: pop3 service init from 172.31.11.43
Aug 26 20:37:17 www ipop3d[23266]: Login user=smmsp host=[172.31.11.43] nmsgs=0/0
Aug 26 20:37:17 www ipop3d[23266]: Logout user=smmsp host=[172.31.11.43] nmsgs=0 ndele=0
Aug 26 20:37:18 www ipop3d[23267]: pop3 service init from 172.31.11.43
Aug 26 20:37:18 www ipop3d[23267]: Login user=smmsp host=[172.31.11.43] nmsgs=0/0
Aug 26 20:37:18 www ipop3d[23267]: Logout user=smmsp host=[172.31.11.43] nmsgs=0 ndele=0
Aug 26 21:12:44 www sendmail[23339]: h7QDCiFa023339: from=<smmsp@test.com>;, size=583, class=0, nrcpts=1, msgid=<200308261312.h7QDCiFa023339@www.test.com>;, proto=SMTP, daemon=MTA, relay=[172.31.11.43]
Aug 26 21:12:44 www sendmail[23340]: h7QDCiFa023339: to=root, ctladdr=<smmsp@test.com>; (506/506), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30801, dsn=2.0.0, stat=Sent
Aug 26 21:12:48 www ipop3d[23342]: pop3 service init from 172.31.11.43
Aug 26 21:12:52 www ipop3d[23342]: Login user=smmsp host=[172.31.11.43] nmsgs=0/0
Aug 26 21:12:52 www ipop3d[23342]: Logout user=smmsp host=[172.31.11.43] nmsgs=0 ndele=0
Aug 26 21:12:56 www ipop3d[23343]: pop3 service init from 172.31.11.43
Aug 26 21:12:56 www ipop3d[23344]: pop3 service init from 172.31.11.43
Aug 26 21:12:56 www ipop3d[23343]: Login user=smmsp host=[172.31.11.43] nmsgs=0/0
Aug 26 21:12:56 www ipop3d[23343]: Logout user=smmsp host=[172.31.11.43] nmsgs=0 ndele=0
Aug 26 21:13:05 www ipop3d[23344]: Command stream end of file while reading line user=root host=[172.31.11.43]
Aug 26 21:13:05 www ipop3d[23345]: pop3 service init from 172.31.11.43
Aug 26 21:13:12 www ipop3d[23345]: Command stream end of file while reading line user=root host=[172.31.11.43]


好像没有错误提示,但就是收不到,并有个奇怪的问题:
1。我发给smmsp@test.com的邮件,提示被/var/spool/mail/root收到,在root文件中有发给smmsp@test.com的邮件(却发给了root@test.com)?
2。我在foxmail中建了root@test.com也收不到,为何?

论坛徽章:
0
2 [报告]
发表于 2003-08-28 09:10 |只看该作者

关于sendmail中邮件都发到root下,什么原因?

问题在于我没有做过任何特别的转发设置! (为何邮件都发给了root)
我得sendmail.mc有这一行:
FEATURE(`no_default_msa',`dnl')dnl **********************这一行什么意思?*******************
dnl DAEMON_OPTIONS(`Port=smtp,Addr=172.31.11.238,Name=MTA')dnl
dnl DAEMON_OPTIONS(`Port=smtp,Name=MTA,M=E')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
dnl #
dnl # The -t option will retry delivery if e.g. the user runs over his quota.
dnl #
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF>; -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl **********************这一行什么意思?*******************
FEATURE(`accept_unresolvable_domains')dnl **********************这一行什么意思?*******************
dnl #
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl

是不是和EXPOSED_USER(`root')dnl 有关系,请指教!
我的/etc/mail/access

# by default we allow relaying from localhost...
172.31.11 RELAY
172.31.12 RELAY
test.com RELAY
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY

/etc/mail/local-host-names:
# local-host-names - include all aliases for your machine here
test.com
www.test.com
localhost.localdomain
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP