简体   繁体   English

php 邮件 HELO 名称无效

[英]php mail invalid HELO name

i am trying to use localhost to send mail.我正在尝试使用 localhost 发送邮件。 however, i am getting this error when sending:但是,我在发送时收到此错误:

Warning: mail() [function.mail]: SMTP server response: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1).警告:mail() [function.mail]:SMTP 服务器响应:550 访问被拒绝 - HELO 名称无效(请参阅 RFC2821 4.1.1.1)。 i have smtp settings correct in php.ini and am just confused as to what this means.我在 php.ini 中有正确的 smtp 设置,我只是对这意味着什么感到困惑。 thanks谢谢

There seem to be two primary reasons for this.这似乎有两个主要原因。

  1. The first has to do with the email client configuration (google INVALID HELO OUTLOOK).第一个与 email 客户端配置有关(google INVALID HELO OUTLOOK)。
  2. The other reason is an improperly configured SMTP server where the server sends out emails with only the server name and not a fully qualified name (eg, emailserver vs emailserver.mydomain.com).另一个原因是配置不正确的 SMTP 服务器,其中服务器发送的电子邮件仅包含服务器名称而不是完全限定名称(例如,emailserver 与 emailserver.mydomain.com)。

You should contact your hosting company and give them as much detail as you can.您应该联系您的托管公司,并尽可能详细地向他们提供信息。 They should be able to help.他们应该能够提供帮助。

If you are using cPanel, you can disable HELO checking.如果您使用的是 cPanel,您可以禁用 HELO 检查。 See the user guide.请参阅用户指南。 The trade off is you will receive more spam...权衡是您将收到更多垃圾邮件...

I had a similar problem with postfix in Ubuntu. Ubuntu 中的后缀也有类似的问题。 It turned out that I'd not set 'myhostname' in the postfix configuration file.原来我没有在后缀配置文件中设置'myhostname'。

The problem disappeared when I configured 'myhostname' in the following file:当我在以下文件中配置“myhostname”时,问题消失了:

/etc/postfix/main.cf /etc/postfix/main.cf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM