postfix "loops back to myself"

本文介绍了当Postfix遇到邮件错误提示'loops back to myself'时的解决方法,重点讨论了如何配置Postfix以处理特定域的邮件,涉及到DNS设置、mydestination、relay_domains等关键配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我们客户公司(infor-trans.com)的邮件发不进我们公司邮箱(cn-gd.uc.com.tw),他们管理员传给我的maillog如下:
maillog:
Mar  5 10:02:51 mail postfix/smtp[9752]: ACB5812A2DF: to=<sales2@cn-gd.uc.com.tw>, relay=127.0.0.1[127.0.0.1]:10025, delay=0.56, delays=0.11/0/0.2/0.25, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as F378F12A4B9)
Mar  5 10:02:51 mail clamsmtpd: 1008D1: from=jerry@infor-trans.com, to=sales2@cn-gd.uc.com.tw, status=CLEAN
Mar  5 10:02:51 mail postfix/qmgr[1459]: F378F12A4B9: from=<jerry@infor-trans.com>, size=1887, nrcpt=1 (queue active)
Mar  5 10:02:51 mail postfix/smtpd[17959]: disconnect from localhost[127.0.0.1]
Mar  5 10:02:51 mail postfix/qmgr[1459]: ACB5812A2DF: removed
Mar  5 10:02:52 mail postfix/smtp[29390]: warning: host cn-gd.uc.com.tw[211.72.35.139]:25 replied to HELO/EHLO with my own hostname localhost
Mar  5 10:02:52 mail postfix/smtp[29390]: F378F12A4B9: to=<sales2@cn-gd.uc.com.tw>, relay=cn-gd.uc.com.tw[211.72.35.139]:25, delay=1.6, delays=0.25/0.02/1.3/0, dsn=5.4.6, status=bounced (mail for cn-gd.uc.com.tw loops back to myself)
Mar  5 10:02:52 mail postfix/cleanup[27073]: 8B6BB12A81B: message-id=<20070305020252.8B6BB12A81B@localhost>


还不知道清楚如何解决,收集的资料如下说

Linuxforum上的贴子

解决办法:
修改master.cf,10024端口的加一个myhostname = filter.domain.com
myhostname不要和main.cf里边的一样

原因:
[xjb@mail doc]$ telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is ‘^]’.
220 mail.domain.com ESMTP Postfix
~~~~~~~~~~~~~~~~

postfix的远程投递代理smtp在联接到smtp端口后,检查上面波浪线的部分和myhostname是否相同
相同则认为是loop了.

改一下master.cf就可以了噢.

还有一种可能是查出来的primary mx的IP和你机器上的某个IP相同,也会被认为是loop.

最后我在main.cf中mydestination中增加localhost.$mydomain
而客户也发信说把他们的main.cf中myhostname=localhost改成mail.infor-trans.com
就可以正常接收他们的信件了,看来还是hostname的问题
<script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=3&lang=zh"></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script>
阅读(2320) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-07-28 20:48:08

修改master.cf,10024端口的加一个myhostname = filter.domain.com 怎么修改?

chinaunix网友2007-03-09 16:01:39

34. I can't seem to receive messages. What does this error mean: " : mail for example.com loops back to myself"? Postfix reports this error when a DNS reply points to your mail server, but Postfix hasn't been configured to deal with messages addressed to the domain. Postfix accepts mail for domains listed in mydestination, relay_domains, virtual_mailbox_domains, virtual_alias_domains, and domains that resolve to IP addresses listed in inet_interfaces and proxy_interfaces. The

评论热议
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值