use*_*568 3 postfix authentication hostname
我的邮件服务器(Postfix、Dovecot 和 MySQL)有问题。我无法接收电子邮件,也无法发送带有尝试对邮件服务器用户帐户进行身份验证的脚本的电子邮件。
我使用 piwik,这是一个类似于 Google Analytics 的脚本。我希望它每周向我发送一封电子邮件。在设置中,我设置了以下内容:
SMTP server address: domain.tld
SMTP Port: 25
Authentication method for SMTP: Login
SMTP username: stats@domain.tld
SMTP password: *******
SMTP encryption: TLS
Run Code Online (Sandbox Code Playgroud)
现在我尝试发送报告,但出现以下错误:
向 hello@domain.tld 发送“HTML 电子邮件报告 - 6.2013-04-15.1.en.html”时发生错误。错误是“5.5.2:Helo 命令被拒绝:需要完全限定的主机名”
我的电子邮件日志是这样写的:
Apr 16 04:22:06 s1 postfix/smtpd[2106]: connect from s1.domain.tld[xx.xxx.xxx.xxx]
Apr 16 04:22:06 s1 postfix/smtpd[2106]: setting up TLS connection from s1.domain.tld[xx.xxx.xxx.xxx]
Apr 16 04:22:06 s1 postfix/smtpd[2106]: Anonymous TLS connection established from s1.domain.tld[xx.xxx.xxx.xxx]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Apr 16 04:22:06 s1 postfix/smtpd[2106]: NOQUEUE: reject: RCPT from s1.domain.tld[xx.xxx.xxx.xxx]: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname; from=<noreply@domain.tld> to=<hello@domain.tld> proto=ESMTP helo=<localhost>
Apr 16 04:22:06 s1 postfix/smtpd[2106]: lost connection after RCPT from s1.domain.tld[37.221.195.121]
Apr 16 04:22:06 s1 postfix/smtpd[2106]: disconnect from s1.domain.tld[xx.xxx.xxx.xxx]
Run Code Online (Sandbox Code Playgroud)
此外,除了来自 iCloud、GMail、Hotmail 等大型服务的电子邮件外,我无法接收任何电子邮件。
如果我通过 Thunderbird、Mail App 或 Sparrow 等邮件客户端登录,一切正常,日志也显示没有错误。
在我的 main.cf 文件中,我使用以下内容:
smtpd_tls_auth_only = yes
Run Code Online (Sandbox Code Playgroud)
目前我不知道为什么我会遇到这些问题。我希望有一个人可以帮助我!
您似乎限制了经过身份验证的用户的 EHLO。改变:
smtpd_helo_restrictions = permit_mynetworks,
reject_non_fqdn_hostname,
reject_invalid_hostname,
permit
Run Code Online (Sandbox Code Playgroud)
到:
smtpd_helo_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_invalid_hostname,
permit
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
21218 次 |
最近记录: |