How to make sendmail re-read the configuration file

David Elliott dce at mips.UUCP
Fri Jan 9 05:10:58 AEST 1987


In our environment, it is possible for the sendmail configuration file
to change much more frequently than a machine is rebooted.

I looked at the code for sendmail, and could only find one place where
it reads the configuration file (in main()), and no way to send a
signal or message saying "re-read the configuration file". This means
that we have to kill the daemon and restart it manually (or at best
by finding the pid using ps, killing it, and restarting it with the
right arguments).

I would like to modify sendmail to have it re-read the configuration
file on some given signal (HUP?), but I am worried that sendmail
can't handle this without modifications elsewhere. Is there anyone
with a lot of sendmail experience that can help me out?

			David



More information about the Comp.unix.questions mailing list