On 2025-11-11 at 09:48:20 UTC-0500 (Tue, 11 Nov 2025 09:48:20 -0500)
Dennis Putnam via Postfix-users <[email protected]>
is rumored to have said:
Then why was I told that line belongs in main.cf?
Because there was missing context. I expect that advice would not have
been given, had you included the whole master.cf or at least enough
context to understand it.
An entry in master.cf defines how a Postfix service operates and looks
like this:
submission inet n - n - - smtpd
-o syslog_name=postfix/submit
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_type=dovecot
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
The first line says the service listens on the "submission" port (587),
that it it is an "inet" service, i.e. a TCP listener on that port, and
has various fields setting how the Postfix master daemon should run the
program, which is named 'smtpd'. All of the remaining lines, *which
start with whitespace* are arguments to that smtpd execution. In this
case, they are all specifying runtime options that differ from built-in
defaults and from the Postfix-wide settings in main.cf.
If you put a line starting with whitespace into main.cf, it will either
be joined to the preceding line (if that line is non-empty) or it will
be interpreted as its own distinct setting. A setting in main.cf cannot
start with "-o" so that would not work, but any of those lines with the
'-o' removed would be interpeted in main.cf as applying to all Postfix
programs (except for those overriding it in master.cf.)
On 11/10/2025 4:42 PM, Peter via Postfix-users wrote:
On 08/11/2025 07:06, Dennis Putnam via Postfix-users wrote:
It is just comments preceding that line. In any case I moved it to
main.cf and cured the problem. Thanks again.
Moving or changing config lines around without understanding what
they do and the impact of having them in certain files is not a good
idea. In this case putting that line in main.cf will cause problems
with you receiving mail from the internet.
Peter
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
--
Bill Cole
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]