Since version 2.3.0, Dovecot has provided the Submission Server feature, which is an authenticating proxy between MUA and MTA. Its main advantage is the BURL (RFC 4468) extension, which allows saving the message to the Sent
folder at the same time it is delivered to SMTP.
On the other hand, it was implemented in 2017, just before the RFC 8314 made the STARTTLS submission obsolete. Personally I would recommend using the traditional way, where Postfix handles both SMTP for incoming mail and submissions (implicit TLS on port 465
) for outboud, authenticated mail. There, Dovecot provides the SASL authentication as explained in the two documentations:
Your configuration with the current approach is missing configuration for the Relay MTA. In other words, your Dovevot does not understand where the mail should be relayed.
submission_relay_host
Host name for the relay server (required).
If you want to keep this course, please edit your 20-submission.conf
with at least, e.g.,
submission_relay_host = localhost
Also, setting disable_plaintext_auth
to no
is a huge security risk, and you should stick with the default yes
:
If yes
, disables the LOGIN
command and all other plaintext authentication unless SSL/TLS is used (LOGINDISABLED capability) or the connection is “secured”:
- Client IP is in
login_trusted_networks
.
- Client IP is from
localhost
, and it’s not coming from HAProxy listener.