What is HELO / EHLO?
The greeting a sending server uses at the start of an SMTP conversation to identify itself.
How it works in practice
The name it announces should be a real, fully-qualified hostname that resolves to the connecting IP and matches its reverse DNS. Some receivers reject greetings that are bare IPs, 'localhost' or names that don't resolve.
What the greeting is
A sending server opens an SMTP session by saying EHLO (or the older HELO) followed by a name, for example EHLO mail.example.com. That name is what the server claims to be. Receivers compare it with the connecting IP and with its reverse DNS entry, and an SPF check can also be run on it.
What a good HELO name looks like
It should be a fully-qualified hostname, not an IP, not localhost and not a bare machine name. It should resolve in DNS to the connecting IP, and ideally match the reverse DNS (PTR) of that IP. Mail servers behind a cloud provider's default settings often greet with an internal name that fails these checks.
Symptoms of a bad one
Some receivers reject or score down mail when the greeting is a bare IP or a name that does not resolve, and the SMTP log may show a reply mentioning HELO, EHLO or a host not found. Set the name in your mail server configuration, for example myhostname in Postfix, and create the matching DNS and PTR records.
The common mistake
Running a mail server that greets with its internal machine name.
Frequently asked questions
Is EHLO the same as HELO?
EHLO is the extended greeting that lets the server list what it supports, and it is what modern servers use. HELO is the original, simpler form.
Does the HELO name need to match my domain?
It needs to be a real hostname that resolves to the sending IP. It does not have to be your main domain, but a name under your own domain is cleaner.
Where do I set it?
In the mail server configuration. Hosted platforms set it for you.
Related terms
Not sure whether this is what's hurting your inbox placement? A free deliverability review finds the real cause.
How we help: Consulting · Private infrastructure · Managed mailboxes · Monthly support