At a glance
- Type: permanent failure (class 5, RFC 3463 §2). The sending server does not retry it and reports the failure to the sender: a bounce message, or an error in the mail app.
- Basic code 504: “Command parameter not implemented” (RFC 5321 §4.2.3).
- Enhanced code 5.7.4: “Security features not supported” in the IANA registry (RFC 3463), in the group security or policy status (RFC 3463 §3.8).
The server you were talking to does not support a security feature that your message or your app relied on. Nothing is wrong with the recipient. The problem is the match between what you asked for and what the server can do.
What it means
RFC 3463 §3.8 defines X.7.4 as "security features not supported": a message contained security features, such as secure authentication, that could not be supported on the delivery protocol. The RFC says the code is useful only as a permanent error. The IANA registry pairs it with the basic reply 504, which RFC 5321 §4.2 uses for a command parameter that is not implemented.
The sign-in standard, RFC 4954 §4, uses 504 too. When a mail app asks for a sign-in method the server does not support, or one that needs an encrypted connection first, the server rejects the AUTH command with 504. RFC 4954 suggests 504 5.5.4 for that case (see 5.5.4 for the code itself). A 504 5.7.4 reply to AUTH reports it under the security codes instead.
Common causes
- The mail app asked for a sign-in method that the server does not offer.
- The app asked for a method that the server allows only on an encrypted connection.
- The message carried a security feature that the next system on the path could not handle.
How to fix it
If you are the sender:
- Read the text after the code. It may name the feature the server refused.
- In the app's outgoing mail settings, turn on TLS or STARTTLS, then try the sign-in again.
- Set the app to use a sign-in method the server lists. The methods appear after
AUTHin the server's reply to EHLO. - If the bounce is about the message itself, send it without the extra security feature if the message does not need that protection and your policy allows it, or ask the recipient what their system supports.
If you run the server:
- Advertise only the sign-in methods you accept on the current connection.
- Name the missing feature in the reply text.
See also 534 5.7.9 for a method the server supports but finds too weak.
What to do with the address
Keep it. The code is about your mail app's setup or a security feature of the message, not about the recipient's address. Once the setup matches what the server supports, send again.
The address on your list is not what failed here. For the bounces your list does cause, clean the list before you send.