Hi Viktor!

Thank you for the explanation. But before I get to that point, I guess I need to make more detailed plans about which features I compile postfix with. STARTTLS, MySQL and SASL authentication come to mind. I don't really know what else is useful/required. Then it also depends on whether I install the postfix compiled by me on a system that already has/had an instance running or not. I have to read the documentation in the INSTALL file thoroughly before I can build and install it, I assume.

Thanks for the help so far.

Translated with DeepL.com (free version)

Am 09.03.2025 um 01:46 schrieb Viktor Dukhovni via Postfix-users:
On Sun, Mar 09, 2025 at 01:13:06AM +0100, Andreas Kuhlen via Postfix-users 
wrote:

I am running Postfix out of /opt, with just "alternatives" symlinks for
/usr/sbin/sendmail.  So less prone to conflicts with system updates.
Could you please tell me a little more about the "alternatives"
symlinks for /usr/sbin/sendmail? Why are these necessary and what are
you linking sendmail against?
Well, local mail submission, e.g. from cron jobs, uses
/usr/sbin/sendmail (perhaps indirectly via /bin/mail or /bin/mailx),
which needs to ultimately resolve to the sendmail(1) for the active
Postfix.

So I have:

     $ f=/usr/sbin/sendmail
     $ while :; do
         printf "%s\n" "$f"
         g=$(readlink "$f")
         if [ -z "$g" -o "$g" = "$f" ]; then break; fi
         f="$g"
       done
     /usr/sbin/sendmail
     /etc/alternatives/mta
     /opt/postfix/sbin/sendmail

Configured by customising /var/lib/alternatives/mta.

The systemd unit starts Postfix from /opt/:

     Type=forking
     PIDFile=/var/spool/postfix/pid/master.pid
     EnvironmentFile=-/etc/sysconfig/network
     PrivateTmp=true
     ProtectSystem=false
     PrivateDevices=false
     ExecStart=/opt/postfix/sbin/postfix start
     ExecReload=/opt/postfix/sbin/postfix reload
     ExecStop=/opt/postfix/sbin/postfix stop

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to