后缀继电器给出了错误450,而它应该是550

我们使用postfix做中继。

我们在/ var / log / mail(稍微编辑)中得到了几个如下所示的消息:

Apr 13 13:30:29 linserver postfix/smtpd[1064]: NOQUEUE: reject: RCPT from unknown[$ip]: 450 4.1.1 <[email protected]>: Recipient address rejected: undeliverable address: host domain.be [$ip] said: 550 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command); from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<BLUESTREAK.domain.local> 

现在,当主邮件服务器给出550,声称用户不存在,我想中继也给550回来。 现在发生的事情是,它似乎返回一个450,导致客户端保持消息排队,不断尝试,只有经过一段时间后才通知用户。

根据我所能find的,soft_bounce可能会导致这种情况。 但是我们还没有启用这个选项(默认情况下它是根据postfix文档closures的)。这也可能与*_reject_code postconf值有关。 特别是因为日志消息抱怨未知的IP。 但是,正如您在下面的postconf输出中所看到的那样, smtpd_sender_restrictionssmtpd_client_restrictions是空的。 所以,即使它试图在那里做任何限制,550是最糟糕的错误,所以这是我期望返回给客户的。

  • postconf: http : //sprunge.us/JYgB

谢谢,

迪特

在Postfix conf文件中添加/更改“unknown_address_reject_code = 550”并尝试。

我将unverified_recipient_reject_code设置为550,似乎解决了这个问题