Helo 命令被拒绝:找不到主机 - 即使我没有配置 reject_unknown_helo_hostname

pat*_*ics 2 email ubuntu email-server postfix

我的服务器正在向我们的用户发送注册成功邮件。他们中的大多数都到达了,但最近一封发往特定域的电子邮件仍保留在 mailq 中,并出现以下错误

(host smtp.geofs.de[5.45.103.59] said: 
450 4.7.1 <Ubuntu-1004-lucid64-minimal.localdomain>: 
Helo command rejected: Host not found (in reply to RCPT TO command))
Run Code Online (Sandbox Code Playgroud)

我在这里找到的一些答案建议删除“smtpd_helo_restrictions”中的配置参数“reject_unknown_helo_hostname”,但事实证明我的 main.cf 甚至没有设置“smtpd_helo_restrictions”。某处有默认值吗?我在哪里可以更改它?还有其他可能的问题解决方案吗?

这是我在 /etc/postfix/main.cf 中的当前配置

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no
myorigin = /etc/mailname
mydestination = xxmydomainxx.com, Ubuntu-1004-lucid-64-minimal, localhost.localdomain, localhost, xxmydomainxx.de
relayhost = 
mynetworks = 127.0.0.0/8 xxx.xxx.136.32/27
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
Run Code Online (Sandbox Code Playgroud)

问题是我的服务器还是接收方服务器造成的?我该如何解决?

很想听听你的想法,谢谢!

Gry*_*ius 8

(主机 smtp.geofs.de[5.45.103.59] 说:450 4.7.1:

限制设置在接收服务器smtp.geofs.de 上。该消息被拒绝,因为发送(=您的)服务器使用不可解析的 HELO“Ubuntu-1004-lucid64-minimal.localdomain”。

在系统范围内修复您的主机名或在您的后缀配置中设置一个可解析的 helo ( myhostname )

  • 通过将 myhostname=xxmydomainxx.com 添加到 /etc/postfix/main.cf 来修复它 - 谢谢! (2认同)