smtp;550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

你离开我真会死。 提交于 2020-01-03 08:27:18

问题


I'm running Windows server 2008 R2 but am getting smtp mail rejected from a few domains.

To test it I'm dropping a text file into C:\inetpub\mailroot\Pickup directory, with something like this:

From: my@emailaddress.com
To: someone@somewhere.com
Subject: testing

This is a test

It will send to some domains, but some are returning:

Reporting-MTA: dns;DEDICAT-93I3U5A
Received-From-MTA: dns;DEDICAT-93I3U5A
Arrival-Date: Wed, 8 Aug 2012 12:50:58 +0100

Final-Recipient: rfc822;someone@somewhere.com
Action: failed
Status: 5.5.0
Diagnostic-Code: smtp;550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

I understand this could be something to do with the smtp setup on the server (IIS 7.5). Can anybody give me some advice as to where to start please?

Thanks,

Andy.


回答1:


Some SMTP servers require you to send a valid host name with the HELO command that also is the same as the reverse DNS of the IP address the request originates from.

You can configure the host name the IIS SMTP Server uses through the old IIS6 Management Console. To do so, select the SMTP Server, right click and select Properties, go to the tab Delivery and then click on the button Advanced.

The reverse DNS for your IP address is usually controlled by your ISP.




回答2:


FWIW, I had the same problem using hMailServer, and found the configuration instructions here. For the benefit of other hMailServer users, here's the field you need to set:




回答3:


Here is the solution to the problem.

Set the Authorization property before creating session as below.

properties.put("mail.smtp.auth", "true");


来源:https://stackoverflow.com/questions/11864227/smtp550-access-denied-invalid-helo-name-see-rfc2821-4-1-1-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!