Description of problem: When I boot this machine, postfix does not start, though it is enabled. Version-Release number of selected component (if applicable): $ rpm -q postfix postfix-2.8.5-1.fc16.x86_64 How reproducible: Always Steps to Reproduce: 1. Boot or reboot computer 2. see that postfix is not running. 3. Actual results: postfix does not start automatically Expected results: postfix should automatically start on boot when it is enabled. Additional info: $ pwd /etc/rc.d/rc5.d $ \ls S* S01sandbox S13iscsi S78clamd.amavisd S97libvirtd S04dkms_autoinstaller S25netfs S79amavisd S99libvirt-guests S07iscsid S28autofs S80postfix [after manually starting with systemctl start postfix.service:] $ sudo systemctl status postfix.service postfix.service - LSB: start and stop postfix Loaded: loaded (/etc/rc.d/init.d/postfix) Active: active (running) since Wed, 23 Nov 2011 08:27:30 +1100; 3h 17min ago Main PID: 26325 (master) CGroup: name=systemd:/system/postfix.service ├ 1184 pickup -l -t fifo -u ├ 26325 /usr/libexec/postfix/master └ 26328 qmgr -l -t fifo -u Am using amavisd, clamd.amavisd, spamassassin. After booting, I can start postfix manually, where it works fine after. I have sendmail installed (mainly so I can refer to its documentation), but it is properly disabled. Alternatives are properly set up for postfix. $ ll /usr/sbin/sendmail lrwxrwxrwx. 1 root root 21 Nov 9 15:41 /usr/sbin/sendmail -> /etc/alternatives/mta $ ll /etc/alternatives/mta lrwxrwxrwx. 1 root root 26 Nov 9 15:41 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix $ sudo grep postfix /var/log/maillog | grep -A1 'starting the Postfix mail system' Nov 22 11:12:16 nick postfix/postfix-script[1385]: starting the Postfix mail system Nov 23 08:27:30 nick postfix/postfix-script[26324]: starting the Postfix mail system Nov 23 08:27:30 nick postfix/master[26325]: daemon started -- version 2.8.5, configuration /etc/postfix It failed to start on Nov 22 11:12:16; I started it manually at Nov 23 08:27:30 /var/log/messages starts at Nov 20. $ sudo grep postfix /var/log/messages Nov 23 08:27:30 nick postfix[26252]: Starting postfix: [ OK ]
Please try the following: # systemctl disable sendmail.service # systemctl disable sm-client.service # systemctl enable postfix.service And reboot. There is alternatives hack, that should do it for you, but it seems that it currently doesn't handle the sm-client well. Generally it is better to switch the initscripts on your own. I will look on the sm-client issue more deep.
Please confirm whether the steps from comment 1 fixed your problem. I filled bug 756390 on alternatives. And I will try to temporally workaround this in sendmail.
Reassigned to sendmail. It should be workarounded by Also in install section of sm-client.service. We can also switch the sm-client.service to use the BindTo=sendmail.service. The BindTo was originally intended to be there but due to bug in systemd (bug 697636 comment 38) it was replaced by Wants. Now it seems the systemd was fixed (at least I cannot reproduce the deadlock) thus we can go with it.
sendmail-8.14.5-11.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/sendmail-8.14.5-11.fc16
Package sendmail-8.14.5-11.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing sendmail-8.14.5-11.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-16298/sendmail-8.14.5-11.fc16 then log in and leave karma (feedback).
I will investigate on the weekend and tell what happened.
sendmail-8.14.5-11.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.