Hello,

I am trying to understand the postfix startup sequence.

I am using postfix 3.4.5 on Debian.

/etc/init.d/postfix, the init script that is used to start postfix does
not start master directly, but calls:

  /usr/sbin/postfix quiet-quick-start

which in turn calls postfix-script. And than, postfix-script, after some
checks and housekeeping (post-install), starts master:

  /usr/lib/postfix/sbin/master &

At first sight, this looks very complicated.

Especially mysterious is, why post-install needs to be run at each start
to "create missing queue directories", and check if permissions
correspond to those defined in /etc/postfix/postfix-files

Why should queue directories be missing ? Other than somebody
deliberately deleting them, are there situations where this might happen?

If I am using simplest possible setup (single instance, no chroot), and
I don't delete queue directories, can I simply skip postfix-script and
post-install and start master directly from /etc/init.d/postfix, ie ?

  /usr/lib/postfix/sbin/master &

What exactly will I miss ?

I tried comparing running instances (one started in the standard way,
the other by calling "master &" directly). postconf prints identical
info in both cases.

thanks,

Reply via email to