Postfix&Dovecot – 不能接收邮件 – status = bounced(未知用户:“some.name”)

我有Postfix和Dovecot运行。 Postfix设置为使用Dovecot作为邮件传输。 一切都非常靠书,但每收到一封电子邮件都被反弹回来。 我正在从Gmailtesting邮件服务器。

每个电子邮件都有一些奇怪的查询:

SELECT email FROM users WHERE email ='receiver@domain' (This is ok) SELECT email FROM users WHERE email ='receiver@domain' (This is ok) SELECT email FROM users WHERE email ='[email protected]' (Why is postfix checking sender's email against db?) SELECT email FROM users WHERE email ='@gmail.com' (Why is postfix checking senders domain against db?) 

前两个mysql查询返回一个有效的结果(三重检查)。

退回消息: Diagnostic-Code: X-Postfix; unknown user: "receiver.name" Diagnostic-Code: X-Postfix; unknown user: "receiver.name"只有从maillog有用位: status=bounced (unknown user: "receiver.name")

任何疑难解答想法或解决scheme? 我已经对Postfix和Dovecot进行了详细的debugging,但是在日志中没有更多的东西。

编辑:master.cf – http://pastebin.com/raw.php?i=Yt8QzPfT main.cf – http://pastebin.com/raw.php?i=rTdEM9m4

我们应该先澄清一下,Postfix的工作方式与Dovecot无关。 他们当然合作,但不相互依赖。

检查发件人/收件人和发件人域的有效性是非常普遍的事情。 这是防范垃圾邮件和各种其他“邪恶”活动的基本防范措施。

虽然并不罕见,但您的后缀configuration为针对数据库进行检查。 这使得排查更加困难。 什么是你的configurationmain.cf和master.cf? 没有他们,猜测将是一个很好的可能性。