从我的新服务器发送电子邮件,被SMTP暂停,因为“怪异”的主机名?

我从我的服务器发送电子邮件时遇到了一些问题:我的SMTP服务器已被禁止/阻止滥用(IP阻止) 。 这只发生在我的新虚拟服务器上

正确的问题是:我的新服务器configuration错误? 我该如何解决这个问题,希望能解决暂停问题?

故事:

新服务器已Received标题

这是从我的私人虚拟服务器上运行的PHP脚本发送的消息头的一部分:

 Received: from apogeo.hpsart.it (31-193-130-251.static.as29550.net [31.193.130.251]) 

奇怪的部分是31-193-130-251.static.as29550.net而不是主机名。 SMTP服务器/客户端交互:

 SERVER -> CLIENT: 220 smtps.pec.aruba.it ESMTP Postfix CLIENT -> SERVER: EHLO apogeo.hpsart.it [...] SMTP ERROR: RCPT TO command failed: 554 5.7.1 <31-193-130-251.static.as29550.net [31.193.130.251]>: Client host rejected: IP address banned for abuse. Please contact the support or use the Webmail 

/etc/hosts被正确configuration(我猜)。 我认为这可能是暂停的原因,我不是一个专家,但:

 127.0.0.1 plutone plutone.iosystems.it localhost localhost.localdomain ::1 plutone plutone.iosystems.it localhost localhost.localdomain 

旧服务器Received标题

旧的服务器工作正常,永远不会被暂停/禁止。 标题显示正确的主机名称:

 Received: from apogeo.hpsart.it (guest2.iosystems.it [81.31.150.182]) 

文件/etc/hosts几乎是相同的。

更新1 :由@Tero Kilkanenbuild议,我已经将反向DNS(它是空白)从31.193.130.251plutone.iosystems.it 。 它不起作用: Recevied总是显示31-193-130-251.static.as29550.net而不是主机名。

问题是您的正向和反向DNS条目是不一样的。 具有IP地址的DNS和DNS与IP地址映射一样必不可less。

您应该要求您的托pipe服务提供商为您的服务器IP地址设置适当的反向DNS(sub.domain.com)。