免费注册 查看新帖 |

Chinaunix

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

[Mail] postfix能发信,但不能收信的问题. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-08-26 13:29 |只看该作者 |倒序浏览
postfix能发信,但却收不了信件,110端口有开,用foxmail收信也没错误出现,但就是收不了信.这是我的main.cf的主要配置:[root@www etc]# postconf -n
alias_database = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
inet_interfaces = all
mail_owner = postfix
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = enter-top.com
myhostname = mail.enter-top.com
mynetworks = 61.28.29.0/24, 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_recipient_restrictions = permit_sasl_authenticated permit_auth_destination reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous

论坛徽章:
0
2 [报告]
发表于 2004-08-26 13:31 |只看该作者

postfix能发信,但不能收信的问题.

这是我的一部分maillog,请高手帮忙下.
Aug 26 13:12:07 www postfix-script: starting the Postfix mail system
Aug 26 13:12:07 www postfix/master[13652]: daemon started
Aug 26 13:12:23 www postfix/smtpd[13655]: connect from unknown[218.17.95.250]
Aug 26 13:12:24 www postfix/smtpd[13655]: 2F2306A: client=unknown[218.17.95.250]
Aug 26 13:12:25 www postfix/cleanup[13656]: 2F2306A: message-id=<20040826051224.
2F2306A@mail.enter-top.com>;
Aug 26 13:12:25 www postfix/qmgr[13654]: 2F2306A: from=<sales@enter-top.com>;, si
ze=808, nrcpt=1 (queue active)
Aug 26 13:12:25 www postfix/local[13658]: fatal: open database /etc/aliases.db:
No such file or directory
Aug 26 13:12:25 www postfix/smtpd[13655]: disconnect from unknown[218.17.95.250]
Aug 26 13:12:26 www postfix/qmgr[13654]: warning: end of input while receiving s
tring data from service private/local
Aug 26 13:12:26 www postfix/qmgr[13654]: warning: private/local: malformed respo
nse
Aug 26 13:12:26 www postfix/master[13652]: warning: process /usr/libexec/postfix
/local pid 13658 exit status 1
Aug 26 13:12:26 www postfix/master[13652]: warning: /usr/libexec/postfix/local:
bad command startup -- throttling
Aug 26 13:12:27 www ipop3d[13659]: pop3 service init from 61.28.29.2
Aug 26 13:12:27 www ipop3d[13659]: Login user=sales host=[218.17.95.250] nmsgs=0
/0
Aug 26 13:12:28 www ipop3d[13659]: Logout user=sales host=[218.17.95.250] nmsgs=
0 ndele=0
Aug 26 13:12:49 www postfix/smtpd[13655]: connect from unknown[218.17.95.250]
Aug 26 13:12:49 www postfix/smtpd[13655]: A35586B: client=unknown[218.17.95.250]
Aug 26 13:12:49 www postfix/smtpd[13655]: reject: RCPT from unknown[218.17.95.25
0]: 554 <tianhe-vip@163.com>;: Recipient address rejected: Access denied; from=<s
ales@enter-top.com>; to=<tianhe-vip@163.com>;
Aug 26 13:12:55 www postfix/smtpd[13655]: lost connection after RCPT from unknow
n[218.17.95.250]
Aug 26 13:12:55 www postfix/smtpd[13655]: disconnect from unknown[218.17.95.250]
Aug 26 13:12:55 www postfix/smtpd[13655]: connect from unknown[218.17.95.250]
Aug 26 13:12:56 www postfix/smtpd[13655]: 472406B: client=unknown[218.17.95.250]
, sasl_method=LOGIN, sasl_username=sales
Aug 26 13:12:57 www postfix/cleanup[13656]: 472406B: message-id=<20040826051256.
472406B@mail.enter-top.com>;
Aug 26 13:12:57 www postfix/qmgr[13654]: 472406B: from=<sales@enter-top.com>;, si
ze=790, nrcpt=1 (queue active)
Aug 26 13:12:57 www postfix/smtpd[13655]: disconnect from unknown[218.17.95.250]
Aug 26 13:12:59 www postfix/smtp[13660]: 472406B: to=<tianhe-vip@163.com>;, relay
=m208.163.com[202.108.44.208], delay=3, status=sent (250 Ok: queued as GQDhZtltL
UFj5UgD.1)
Aug 26 13:14:07 www ipop3d[13662]: pop3 service init from 61.28.29.2
Aug 26 13:14:07 www ipop3d[13662]: Login user=alice host=[218.17.95.250] nmsgs=0
/0
Aug 26 13:14:08 www ipop3d[13662]: Logout user=alice host=[218.17.95.250] nmsgs=
0 ndele=0
Aug 26 13:16:13 www postfix/smtpd[13665]: connect from unknown[222.101.92.96]
Aug 26 13:16:13 www postfix/smtpd[13665]: disconnect from unknown[222.101.92.96]
Aug 26 13:19:07 www ipop3d[13672]: pop3 service init from 61.28.29.2
Aug 26 13:19:08 www ipop3d[13672]: Login user=alice host=[218.17.95.250] nmsgs=0
/0
Aug 26 13:19:08 www ipop3d[13672]: Logout user=alice host=[218.17.95.250] nmsgs=
0 ndele=0
Aug 26 13:20:23 www imapd[13711]: imap service init from 127.0.0.1
Aug 26 13:20:23 www postfix/smtpd[13710]: connect from localhost[127.0.0.1]
Aug 26 13:20:23 www postfix/smtpd[13710]: lost connection after CONNECT from loc
alhost[127.0.0.1]
Aug 26 13:20:23 www postfix/smtpd[13710]: disconnect from localhost[127.0.0.1]
Aug 26 13:20:23 www imapd[13711]: Connection reset by peer, while reading line u
ser=??? host=UNKNOWN
Aug 26 13:20:23 www ipop3d[13712]: pop3 service init from UNKNOWN
Aug 26 13:20:23 www ipop3d[13712]: Command stream end of file while reading line
user=??? host=UNKNOWN
Aug 26 13:20:23 www imapd[13713]: imaps SSL service init from UNKNOWN
Aug 26 13:20:23 www imapd[13713]: Unable to accept SSL connection, host=UNKNOWN
Aug 26 13:21:03 www postfix/smtpd[13710]: connect from www[127.0.0.1]
Aug 26 13:21:03 www ipop3d[13746]: pop3 service init from UNKNOWN
Aug 26 13:21:03 www postfix/smtpd[13710]: lost connection after CONNECT from www
[127.0.0.1]
Aug 26 13:21:03 www postfix/smtpd[13710]: disconnect from www[127.0.0.1]
Aug 26 13:21:03 www ipop3d[13746]: Command stream end of file while reading line
user=??? host=UNKNOWN
Aug 26 13:21:03 www imapd[13747]: imap service init from UNKNOWN
Aug 26 13:21:03 www imapd[13747]: Command stream end of file, while reading line
user=??? host=UNKNOWN
Aug 26 13:21:10 www ipop3d[13748]: pop3 service init from 61.28.29.2
Aug 26 13:21:11 www ipop3d[13748]: Login user=sales host=[218.17.95.250] nmsgs=0
/0
Aug 26 13:21:11 www ipop3d[13748]: Logout user=sales host=[218.17.95.250] nmsgs=
0 ndele=0
Aug 26 13:21:23 www postfix/smtpd[13710]: connect from unknown[218.17.95.250]
Aug 26 13:21:24 www postfix/smtpd[13710]: 264236B: client=unknown[218.17.95.250]
Aug 26 13:21:25 www postfix/cleanup[13749]: 264236B: message-id=<20040826052124.
264236B@mail.enter-top.com>;
Aug 26 13:21:25 www postfix/qmgr[13654]: 264236B: from=<sales@enter-top.com>;, si
ze=803, nrcpt=1 (queue active)
Aug 26 13:21:25 www postfix/local[13751]: fatal: open database /etc/aliases.db:
No such file or directory
Aug 26 13:21:25 www postfix/smtpd[13710]: disconnect from unknown[218.17.95.250]
Aug 26 13:21:26 www postfix/qmgr[13654]: warning: end of input while receiving s
tring data from service private/local
Aug 26 13:21:26 www postfix/qmgr[13654]: warning: private/local: malformed respo
nse
Aug 26 13:21:26 www postfix/master[13652]: warning: process /usr/libexec/postfix
/local pid 13751 exit status 1
Aug 26 13:21:26 www postfix/master[13652]: warning: /usr/libexec/postfix/local:
bad command startup -- throttling
Aug 26 13:21:27 www ipop3d[13752]: pop3 service init from 61.28.29.2
Aug 26 13:21:27 www ipop3d[13752]: Login user=sales host=[218.17.95.250] nmsgs=0
/0
Aug 26 13:21:28 www ipop3d[13752]: Logout user=sales host=[218.17.95.250] nmsgs=
0 ndele=0
Aug 26 13:24:08 www ipop3d[13753]: pop3 service init from 61.28.29.2
Aug 26 13:24:09 www ipop3d[13753]: Login user=alice host=[218.17.95.250] nmsgs=0
/0
Aug 26 13:24:09 www ipop3d[13753]: Logout user=alice host=[218.17.95.250] nmsgs=
0 ndele=0

论坛徽章:
0
3 [报告]
发表于 2004-08-26 13:37 |只看该作者

postfix能发信,但不能收信的问题.

Aug 26 13:12:25 www postfix/local[13658]: fatal: open database /etc/aliases.db:
No such file or directory


这不是有错误提示么?

执行 newaliases 然后postfix reload

论坛徽章:
0
4 [报告]
发表于 2004-08-26 13:38 |只看该作者

postfix能发信,但不能收信的问题.

需要配置alias_maps这个参数
然后编辑你所指定的别名文件
编辑完成后,再postmap 将别名文件转换为aliases.db

论坛徽章:
0
5 [报告]
发表于 2004-08-26 14:10 |只看该作者

postfix能发信,但不能收信的问题.

经过蜗牛大侠的顶力相助,在下的问题已解决,是因为没有aliases.db 所以postfix不收信,所以pop3也就没有信可以收了。cp /etc/postfix/aliases /etc

执行newaliases
再postfix reload就搞定了.再一次谢谢蜗牛大侠~~

论坛徽章:
0
6 [报告]
发表于 2004-08-26 14:17 |只看该作者

postfix能发信,但不能收信的问题.

共同进步,避免初级问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP