Bug 756232 - postfix will not start on boot.
Summary: postfix will not start on boot.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sendmail
Version: 16
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-23 00:57 UTC by Nick Urbanik
Modified: 2011-12-10 19:46 UTC (History)
2 users (show)

Fixed In Version: sendmail-8.14.5-11.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-10 19:46:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nick Urbanik 2011-11-23 00:57:06 UTC
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  ]

Comment 1 Jaroslav Škarvada 2011-11-23 10:48:56 UTC
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.

Comment 2 Jaroslav Škarvada 2011-11-23 12:39:01 UTC
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.

Comment 3 Jaroslav Škarvada 2011-11-23 13:39:31 UTC
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.

Comment 4 Fedora Update System 2011-11-23 14:29:05 UTC
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

Comment 5 Fedora Update System 2011-11-23 23:26:14 UTC
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).

Comment 6 Nick Urbanik 2011-11-24 22:46:12 UTC
I will investigate on the weekend and tell what happened.

Comment 7 Fedora Update System 2011-12-10 19:46:16 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.