Opens in a new tab

SMTP 504: command parameter not implemented — what it means

504 means the server supports the command but not the parameter asked for — most often an AUTH mechanism it does not offer. A mail client then tries a mechanism the server listed in its EHLO reply.

Code504
MeaningCommand parameter not implemented
KindPermanent failure — the sender gives up
Sent in reply toAUTH most often; also EHLO, VRFY, EXPN, HELP
What the sender doesTries another mechanism or parameter
Defined inRFC 5321, section 4.2; RFC 4954

Paste your bounce

Paste the line with the code — or the whole bounce: we explain each code in it, say whether the sender will try again, and link the service’s own page where it has one. It is read in your browser; nothing is sent.

What to do

  • Use a login method the server offers — for Gmail and Microsoft 365, OAuth (XOAUTH2).
  • At Postfix: give the full host name in HELO, and full addresses.

What each provider means by it

WhoWhat they say
Gmail504 for an unrecognised authentication type, and “XOAUTH is no longer supported” — use OAuth 2.0 (XOAUTH2).
PostfixUses 504 to refuse a HELO name, sender or recipient that is not fully qualified (non_fqdn_reject_code).
EximRejects AUTH with no matching advertised mechanism with 504.

Related: 502, 534, 535.

Sources

Checked on 27 September 2026 against these official sources:

See every bounce before your customers do

Add your domain and send us a test message: we show what a receiving server saw — authentication, reverse DNS, blocklists, TLS — and monitor the servers you send from for blocklistings every day. Free for your first domain.

Create a free account