Red Hat Bugzilla – Bug 1465910
systemd unit could malfunction if "mta" in alternatives set to a different MTA
Last modified: 2018-06-20 22:13:54 EDT
If multiple MTAs (incl. sendmail) are installed and the "mta" group in alternatives is set to an MTA other than sendmail, then systemctl calls against the "sendmail" service could malfunction, possibly because sendmail's systemd unit calls /usr/sbin/sendmail which is controlled by alternatives. E.g.:
********** Steps to Reproduce:
1. sendmail and postfix are installed, neither is running
2. alternatives --set mta /usr/sbin/sendmail.postfix
3. systemctl start sendmail
********** Actual results:
The systemctl call hangs and eventually fails. If interrupted, "systemctl status sendmail" reveals postfix got started:
● sendmail.service - Sendmail Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/sendmail.service; disabled; vendor preset: disabled)
Active: activating (start) since Wed 2017-06-28 03:37:14 EDT; 12s ago
Process: 10719 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
Process: 10711 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
Process: 10710 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
├─10793 /usr/libexec/postfix/master -w
├─10794 pickup -l -t unix -u
└─10795 qmgr -l -t unix -u
Jun 28 03:37:14 hostname systemd: Starting Sendmail Mail Transport Agent...
Jun 28 03:37:14 hostname systemd: PID file /run/sendmail.pid not readable...t.
Jun 28 03:37:14 hostname postfix/master: daemon started -- version 2.1...x
Hint: Some lines were ellipsized, use -l to show in full.
********** Expected results:
systemctl works with the service it's called for.
********** Version-Release number of selected component (if applicable):
After updating Scientific Linux 7.3 to 7.4 on a mail server using postfix, systemd started sendmail instead of postfix. Is this related to this bug?