I have MX records setup at mail.domain.com and my domain is visible through domain.com
I am sending email via PHP PEAR Mail package.
This page claims I can change:
The value to give when sending EHLO or HELO. Default is localhost
As of right now, my email headers look like this:
Received: from domain.com ([12.34.56.78] helo=localhost
What should they look like? I assume:
helo=domain.com
???
Cite from RFC 5321 4.1.1.1. Extended HELLO (
EHLO
) or HELLO (HELO
)In other words it should be the FQDN which resolves into the IP address you're sending mail from.
So, if you are sending mail from the IP address
12.34.56.78
andmail.domain.com
resolves into12.34.56.78
(and theDNS
PTR
for12.34.56.78
is set tomail.domain.com
) you should usemail.domain.com
as the parameters forHELO
(EHLO
).Your
HELO
/EHLO
name should be the system's fully-qualified domain name.In the immortal words of RFC2821 (emphasis added):
(the "address literal" is the address in brackets (
[192.0.2.1]
), or for v6 the address with anIPv6
prefix ([IPv6:fe80::1]
))