<source>
The line requires the client to perform STARTTLS before any authentication command. The default is false, that is, by default the password can be sent over an unencrypted connection.
This is a softer form of requirement than require-starttls: that one requires encryption before everything, this one only before the password. Submission without authentication keeps working as before.
A related line is allow-unencrypted-plain-auth: it is about whether the PLAIN mechanism may be used on an unencrypted connection. The two settings close the same hole from different sides, and they are best understood together.
The value is boolean, and it has to be considered together with its neighbor:
| What is set | Can the password travel in the clear |
|---|---|
| both lines at the default | yes, in two ways |
| only this line true | no — authentication without encryption is forbidden |
| only allow-unencrypted-plain-auth false | no for PLAIN, yes for other mechanisms |
| this one true and PLAIN forbidden | no, with margin to spare |
The practical minimum for a submission node is this line. It costs less than the strictest form and closes the main gap.
# the minimum for a submission node: the password only over an encrypted connection <source 0/0> allow-starttls true require-starttls-before-auth true</source>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.7.15
2 relations
printf 'EHLO test\r\nAUTH LOGIN\r\nQUIT\r\n' | openssl s_client -connect localhost:25 -quiet 2>/dev/null | head -5
3 articles
◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇The group that grants management rightsMembership in the pmta group gives an unprivileged user the right to call the node’s commands and use submission.◇How the node selects a source and combines its settingsA connection falls under all source blocks whose addresses cover it, and they act merged — the narrow one overrides the wide one; named blocks are attached only by direct reference.