<domain>
Of the three authentication mechanisms the node understands, two — PLAIN and LOGIN — transmit the password in the conversation itself. If the connection is not encrypted (STARTTLS is not used), the password goes over the network in plain text.
This line decides whether that is acceptable. The third mechanism, CRAM-MD5, does not transmit the password over the network and is not subject to the restriction.
The line applies to outbound authentication — the one where the node identifies itself to someone else’s relay (auth-username, auth-password). Mail acceptance has its own mirror line: allow-unencrypted-plain-auth in the <source> block.
Do not allow it. A password to someone else’s relay that goes over the network in the clear is compromised entirely and unnoticed.
The right answer is to encrypt the connection. If the relay cannot do STARTTLS, the question is not about this line but about the relay itself.
CRAM-MD5 is a workaround. It does not transmit the password over the network; if the relay supports it, the restriction stops getting in the way.
# no password over the network in the clear; the relay must support STARTTLS <domain relay.example.com> auth-username relay-user auth-password s3cr3t use-unencrypted-plain-auth false</domain>
what people get wrong and how it ends2 mistakes▶
our experience
our experience
1 relation
pmta show settings relay.example.com/vmta1 | grep -i use-unencrypted-plain-auth grep -i 'STARTTLS' /var/log/pmta/pmta.log | tail -10
3 articles
◇How the policy for a receiver is assembledSettings are assembled from the most general pattern to the most precise; the order of blocks in the file means nothing.◇Backoff mode — the queue's second personalityA queue that a receiver has started refusing switches to a parallel set of limits, retries and routes — ten directives that act only in this mode.◇Reputation monitoring inside the nodeThe engine itself watches the receiving servers’ replies and changes the queue mode on a pattern match — a reaction within the connection, not through telemetry.