What exactly should HELO say

domain-name-systememailemail-bouncesemail-server

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

???

Best Answer

Cite from RFC 5321 4.1.1.1. Extended HELLO (EHLO) or HELLO (HELO)

The argument field contains the fully-qualified domain name of the SMTP client if one is available.

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 and mail.domain.com resolves into 12.34.56.78 (and the DNS PTR for 12.34.56.78 is set to mail.domain.com) you should use mail.domain.com as the parameters for HELO (EHLO).

Related Topic