HELO/EHLO checker

Short answer

What are HELO and EHLO in SMTP?

HELO and EHLO are the commands a mail server uses to introduce itself by name when it connects to another server (RFC 5321). The name should be a full host name, like mail.company.com, that points to the server IP, and PTR for the IP should point back. Localhost or an unknown name gives worse delivery.

Enter the HELO name and the IP address, or paste the email headers and we find them.

Why HELO matters

Many spam filters check the HELO name. A name like localhost, an IP number or a name that does not exist in DNS gives worse delivery.

How to use the check

  • Enter the HELO name and the IP address of the server that sends.
  • Or paste the email headers from an email the server has sent, and we find the name and the IP in the Received header.
  • We check that the name is a valid host name, that it points to the IP, and that PTR for the IP matches.

Good and bad HELO names

  • Good: mail.company.com, with an A record to the server IP and the same name in PTR.
  • Bad: localhost, server01 or a name without a dot. That is not a full host name.
  • Bad: a name that does not exist in DNS, or an internal name like exchange.company.local.
  • Allowed, but weak: an IP address in square brackets, like [203.0.113.25].

Questions and answers

Where do I see the HELO name?

In the Received header at the receiver: from <helo name> (<ptr> [<ip>]).

Where do I change the HELO name?

In the settings of the mail server or the service that sends. In Postfix the setting is called myhostname, and in Exchange it is set on the send connector.

Must the HELO name be in the same domain as the sender?

No. What matters is that the name exists in DNS, points to the IP and matches PTR. At services that send for many customers, it is the service’s own name.