postfix start script is buggy causing it not to startup when the /var/spool/postfix/pid/ is not removed at shutdown

Solution Unverified - Updated -


Sometimes postfix is NOT being started upon system reboot, even though it is chkconfig-ed on. It seems this is due to the following script in /etc/init.d/postfix:

case "$1" in
        [ $running -eq 0 ] && exit 0

If we remove the following line to make it the same script as in RHEL5, then we will not hit this bug:

[ $running -eq 0 ] && exit 0
  • The issue only occurs when the pid file is not being removed on shutdown, and on startup another process is re-using the same pid as that in the /var/spool/postfix/pid/ file.
  • In these instances the postfix startup script checks erroneously report that the postfix service has already started, resulting in the start script not being triggered.


  • Red Hat Enterprise Linux 6
  • postfix

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In