1. Home
  2. SMTP codes
  3. Enhanced status codes
  4. Gmail 501 5.5.4
Permanent failure — do not retry unchanged

Gmail 501 5.5.4

Invalid HELO/EHLO argument

Gmail 501 5.5.4 means: invalid HELO/EHLO argument. It is a permanent failure, so do not retry it unchanged. Send a valid fully qualified hostname in HELO or EHLO, not an empty value, an IP without brackets or someone else's hostname.

Gmail’s exact wording

Quoted from Google Workspace Admin Help: Gmail SMTP errors and codes, checked 2026-11-05. Placeholders are Gmail’s own.

Reply text

HELO/EHLO argument argument invalid closing connection. For more information, go to HELO/EHLO email error.

Reply text

Empty HELO/EHLO argument not allowed, closing connection. For more information, go to HELO/EHLO email error.

Who sends itGmail and Google Workspace
Basic code501: Syntax error in parameters or arguments (RFC)
Enhanced code5.5.4: Invalid command arguments
Permanent or temporaryPermanent (5xx)
Verifying the list prevents itNo

In practice

Gmail rejects an empty HELO and an invalid argument. The name should be your server's fully qualified domain name, ideally matching its PTR record. Scripts often send localhost, a bare IP address without brackets, or nothing at all. Fixing it is a one-line change in the client configuration. Many receivers apply the same check, not only Gmail.

What the sender should do

Send a valid fully qualified hostname in HELO or EHLO, not an empty value, an IP without brackets or someone else's hostname.

Would verifying the list have prevented Gmail 501 5.5.4?

No

This reply is about your sending setup, the message or the receiving system, not about whether the address exists, so verifying the list will not prevent it.

Common questions

What does Gmail 501 5.5.4 mean?
Gmail 501 5.5.4 means: invalid HELO/EHLO argument. It is a permanent failure, so do not retry it unchanged. Send a valid fully qualified hostname in HELO or EHLO, not an empty value, an IP without brackets or someone else's hostname.
Should I retry after Gmail 501 5.5.4?
No. It is a permanent (5xx) failure, so the same message to the same address will fail again. Fix the cause first. Send a valid fully qualified hostname in HELO or EHLO, not an empty value, an IP without brackets or someone else's hostname.
Would verifying my list have prevented Gmail 501 5.5.4?
No. This reply is about your sending setup, the message or the receiving system, not about whether the address exists, so verifying the list will not prevent it.

Sources

Registry and provider wording is quoted exactly; guidance is written by the SimpleVerifier Team.

SimpleVerifier Team · Last checked against the sources 2026-11-05

Clean your next list before it bounces

100 free email checks when you sign in with Google, no card. Then monthly plans from $9, or one flat price with fair use, never cut off.

100 free checks, no card Cancel anytime Secure payment by Stripe