At a glance
- Type: permanent reply (class 5, RFC 3463 §2) to a command your mail app or client sent, such as its sign-in, not to a message. Nothing is queued and nothing bounces. The same command fails the same way until the cause is fixed.
- Basic code 538: “Encryption required for requested authentication mechanism” (RFC 4954 §6).
- Enhanced code 5.7.11: “Encryption required for requested authentication mechanism” in the IANA registry (RFC 4954), in the group security or policy status (RFC 3463 §3.8).
A 538 5.7.11 reply comes when your mail app signs in to send mail. The sign-in method it picked is allowed only once the connection is encrypted. Nothing was sent.
What it means
RFC 4954 §6 defines 538 5.7.11 Encryption required for requested authentication mechanism as a reply to the AUTH command. It means the selected mechanism may only be used when the underlying SMTP connection is encrypted.
The RFC keeps this reply for historical purposes only, and it deprecates the 538 code. A server that follows the current standard should not send it:
- A modern server should not advertise a mechanism it will refuse for lack of encryption. The exception is a connection that already has an encryption layer of enough strength.
- RFC 4954 §4 says a server rejects a mechanism that needs an encryption layer with 504. If it sends enhanced codes, it adds 5.5.4 (see 501 5.5.4 for that code).
- So the current answer to this case is 504, not 538.
The later code 5.7.10 covers a similar case.
The IANA registry pairs X.7.11 with the basic replies 524 and 538.
Common causes
- The app's outgoing mail settings have TLS or STARTTLS turned off.
- The app signs in before it starts TLS on the connection.
- The server still advertises sign-in methods on unencrypted connections that it then refuses.
How to fix it
If you are the sender:
- Open the app's outgoing mail (SMTP) settings.
- Turn on TLS or STARTTLS, and use the port and security setting your mail provider documents.
- If you wrote the client yourself, send STARTTLS, wait for the encrypted connection, send EHLO again, and only then send AUTH.
- Send a test message to yourself. If the server now answers 535 5.7.8, the method works but the credentials are wrong.
If you run the server:
- On a connection that is not encrypted, do not advertise mechanisms that need encryption. RFC 4954 asks for this.
- Replace 538 with a current reply, and say in its text that TLS is required first.
What to do with the address
Nothing. This reply is about how your mail app signs in to its own server, not about any recipient. The addresses you were sending to are not the problem. Once the connection is encrypted and the sign-in works, send the message again.