When using Postfix Port 587
is turned on by uncommenting a line in master.cf
.
submission inet n - n - - smtpd
I found this out by reading posts and comments on various websites. However I see no reference to this on the official Postfix Configuration Parameters page. That is very frustrating.
Where in the official docs does it say to uncomment the submission parameter in master.cf
? I feel like I'm missing out on a lot of important information.
This is officially documented in Managing multiple Postfix instances on a single host, but although it's very common, it's described as a single case among many possibilities (emphasis is mine):
The Postfix Configuration Parameters page doesn't tell any of this because it's out of its scope: it just lists the possible parameters you can use in
main.cf
, but doesn't tell how to override them withmaster.cf
.Essentially, "uncommenting the line" and the
-o
(Override the namedmain.cf
configuration parameter) arguments beneath it is about starting another instance of a Postfix component,smtpd
with different settings:The currently active line is another smtpd instance listening on
smtp
port25
with themain.cf
settings, whereas the line beginning withsubmission
creates another instance listening on submission port587
. The settings specified with-o
overrides the settings inmain.cf
, making it possible to add SASL authentication, mandatory encryption etc. that won't be required on normal SMTP between two MTAs (i.e. incoming mail).In other words, the
service
describes the port and thecommand
the Postfix component. You could even have a port number orip:port
there, instead: