免费注册 查看新帖 |

Chinaunix

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

[Mail] 我的postfix能向外发信,但收不到信,是哪的问题呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-21 11:55 |只看该作者 |倒序浏览
我的postfix能向外网发信,但是收不到外网的信,日志也没有提示信息。怎么回事呀?
我怀疑是不是sasl验证的问题呀?

论坛徽章:
0
2 [报告]
发表于 2006-08-21 12:34 |只看该作者
我的sasl验证有问题:25端口不能登陆,但是postfix中把sasl去了就没事。
[root@hwy ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
而去了sasl后就可以

论坛徽章:
0
3 [报告]
发表于 2006-08-21 17:14 |只看该作者

回复 2楼 fendou_2005 的帖子

這位兄弟,要把/var/log/maillog貼出來,大家看log才能發現問題啊。^_^

论坛徽章:
0
4 [报告]
发表于 2006-08-21 17:57 |只看该作者
LOGIN, user=hh@hh.com, ip=[127.0.0.1]
Aug 21 17:29:03 hwy postfix/pickup[3602]: 0A1D62EE7E: uid=1001 from=<hh@hh.com>
Aug 21 17:29:03 hwy postfix/cleanup[3760]: 0A1D62EE7E: message-id=<20060821092903.0A1D62EE7E@hwy.domain.com>
Aug 21 17:29:03 hwy postfix/qmgr[3603]: 0A1D62EE7E: from=<hh@hh.com>, size=390, nrcpt=1 (queue active)
Aug 21 17:29:03 hwy postfix/smtp[3768]: warning: numeric domain name in resource data of MX record for newhero.com.cn: 61.182.230.19
Aug 21 17:29:03 hwy postfix/smtp[3768]: connect to 61.182.230.19[61.182.230.19]: Connection refused (port 25)
Aug 21 17:29:03 hwy postfix/smtp[3768]: 0A1D62EE7E: to=<hwy@newhero.com.cn>, relay=none, delay=0, status=deferred (connect to 61.182.230.19[61.182.230.19]: Connection refused)

论坛徽章:
0
5 [报告]
发表于 2006-08-21 17:58 |只看该作者
LOGIN, user=hh@hh.com, ip=[127.0.0.1]
Aug 21 17:29:03 hwy postfix/pickup[3602]: 0A1D62EE7E: uid=1001 from=<hh@hh.com>
Aug 21 17:29:03 hwy postfix/cleanup[3760]: 0A1D62EE7E: message-id=<20060821092903.0A1D62EE7E@hwy.domain.com>
Aug 21 17:29:03 hwy postfix/qmgr[3603]: 0A1D62EE7E: from=<hh@hh.com>, size=390, nrcpt=1 (queue active)
Aug 21 17:29:03 hwy postfix/smtp[3768]: warning: numeric domain name in resource data of MX record for newhero.com.cn: 61.182.230.19
Aug 21 17:29:03 hwy postfix/smtp[3768]: connect to 61.182.230.19[61.182.230.19]: Connection refused (port 25)
Aug 21 17:29:03 hwy postfix/smtp[3768]: 0A1D62EE7E: to=<hwy@newhero.com.cn>, relay=none, delay=0, status=deferred (connect to 61.182.230.19[61.182.230.19]: Connection refused)

论坛徽章:
0
6 [报告]
发表于 2006-08-23 11:48 |只看该作者

回复 5楼 fendou_2005 的帖子

從你的maillog看是newhero.com.cn服務器拒絕了你的smtp連接請求。
試過從其他的郵箱(比如163的)發過嗎,或者自己發給自己能成功嗎?
可能是postfix main.cf中的
smtpd_recipient_restrictions 和smtpd_sender_restrictions 的設置有問題。

论坛徽章:
0
7 [报告]
发表于 2006-08-23 13:34 |只看该作者

能发出去,邮件全收到postfix用户

Aug 22 20:40:57 dstcn postfix/smtpd[5327]: warning: database /etc/postfix/aliase                  s.db is older than source file /etc/postfix/aliases
Aug 22 20:40:57 dstcn postfix/smtpd[5327]: connect from unknown[192.168.11.3]
Aug 22 20:40:57 dstcn postfix/smtpd[5327]: E8626724DC: client=unknown[192.168.11                  .3]
Aug 22 20:40:58 dstcn postfix/cleanup[5330]: E8626724DC: message-id=<20060823133                  1372343039@dstcn.vicp.net>
Aug 22 20:40:58 dstcn postfix/qmgr[5291]: E8626724DC: from=<admin@dstcn.vicp.net                  >, size=1657, nrcpt=2 (queue active)
Aug 22 20:40:58 dstcn postfix/smtpd[5327]: disconnect from unknown[192.168.11.3]
Aug 22 20:40:58 dstcn postfix/smtp[5331]: E8626724DC: to=<errmo@163.com>, relay=                  mx.mail.163.split.netease.com[220.181.12.52], delay=1, status=sent (250 Mail OK                   queued as mx13,wKjANLB7tQYv6OtEMB3JCA==.59235S2)
Aug 22 20:40:59 dstcn postfix/smtp[5332]: E8626724DC: to=<zhaoyang@dst.com.hk>,                   relay=mail.dst.com.hk[218.188.198.35], delay=2, status=sent (250 2.6.0  <2006082                  31331372343039@dstcn.vicp.net> Queued mail for delivery)
Aug 22 20:40:59 dstcn postfix/qmgr[5291]: E8626724DC: removed

论坛徽章:
0
8 [报告]
发表于 2006-08-23 15:17 |只看该作者
#====================SASL========================
broken_sasl_auth_clients = yes
#In order to allow mail relaying by authenticated clients
smtpd_recipient_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_invalid_hostname,
  reject_non_fqdn_hostname,
  reject_unknown_sender_domain,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unknown_recipient_domain,
  reject_unauth_pipelining,
  reject_unauth_destination,
  permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner=$myhostname ESMTP "Version not Available"
这是我的postfix中main.cf的sasl配置。去了这些收发正常,有这些不能收发。
这是怎么回事呀?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP