Red Hat Bugzilla – Bug 86005
/etc/init.d/sendmail uses default "make" target
Last modified: 2007-04-18 12:51:58 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211
Description of problem:
It is quite common practice to have /etc/mail/Makefile build site-specific
configurations, e.g. antispam access control lists. It's very convenient for
the system administrator if a simple "make" can rebuild all these files and
Unfortunately, in recent RedHat versions the sendmail startup script calls "make
-s" in /etc/mail, resulting in an infinite loop.
I would like to strongly recommend that the startup scripts use a named target
instead (I use the name "auto") and leave the default target for use by the
This is a RedHat concern, because this requires a small change to the standard
init scripts, lest every time sendmail is updated because of a security hole the
sysadmin has to go in and patch the startup script again.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install the attached Makefile as /etc/mail/Makefile
2. Type "make"
Actual Results: Infinite loop
Expected Results: The files should have been constructed and sendmail restarted.
See also bug 85875.
Created attachment 90569 [details]
Sample site-specific Makefile
RedHat may want to steal some ideas from this script, in particular the "stop",
"start" and "restart" targets are handy.
I have change the startup script to use the target "all" and added
Florian La Roche