我的邮件服务器有问题(Postfix,Dovecot和MySQL)。 我无法收到电子邮件,也无法通过脚本发送邮件来validation邮件服务器用户帐户。
我使用piwik,这是一个像Google Analytics一样的脚本。 我希望它每周给我发一封电子邮件。 在设置中,我设置了以下内容:
SMTP server address: domain.tld SMTP Port: 25 Authentication method for SMTP: Login SMTP username: [email protected] SMTP password: ******* SMTP encryption: TLS
现在我试着发送报告,我得到以下错误:
将“HTML电子邮件报告 – 6.2013-04-15.1.en.html”发送到[email protected]时发生错误。 错误是“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=<[email protected]> to=<[email protected]> 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]
除了iCloud,GMail,Hotmail等大型服务外,我也收不到任何电子邮件。
如果我通过邮件客户端,如雷鸟,邮件应用程序或麻雀login一切工作正常,日志也说没有错误。
在我的main.cf文件中,我使用以下内容:
smtpd_tls_auth_only = yes
目前我不知道为什么我有这些问题。 我希望有一个人可以帮助我!
您似乎限制您的身份validation用户的EHLO。 更改:
smtpd_helo_restrictions = permit_mynetworks, reject_non_fqdn_hostname, reject_invalid_hostname, permit
至:
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_invalid_hostname, permit