Fri Mar 02 2001 Nalin Dahyabhai <nalin@redhat.com> - rebuild in new environment Tue Feb 27 2001 Florian La Roche <Florian.LaRoche@redhat.de> - add noreplace for /etc/sysconfig/sendmail and /etc/mail/sendmail.mc Wed Feb 21 2001 Florian La Roche <Florian.LaRoche@redhat.de> - add changes from Christopher McCrory <chrismcc@pricegrabber.com>: - prepare /etc/mail/Makefile for more maps not shipped with this rpm - changed sendmail.mc to include some more commented out options, so that people are directly pointed at important options - add /etc/pam.d/smtp for AUTH - add FEATURE(use_ct_file) and /etc/mail/trusted-users Fri Feb 16 2001 Tim Powers <timp@redhat.com> - don't obsolete postfix and exim, only conflict (for RHN purposes) Thu Feb 15 2001 Trond Eivind Glomsrød <teg@redhat.com> - obsolete and conflict with exim and postfix Wed Feb 14 2001 Florian La Roche <Florian.LaRoche@redhat.de> - fix devision by zero bug in #20395 - mv /usr/lib/sendmail-cf /usr/share/sendmail-cf Wed Feb 07 2001 Trond Eivind Glomsrød <teg@redhat.com> - i18n tweaks to initscript Wed Feb 07 2001 Florian La Roche <Florian.LaRoche@redhat.de> - aliases.db should be owned by group root Wed Jan 24 2001 Florian La Roche <Florian.LaRoche@redhat.de> - prepare for startup-script translation Tue Jan 23 2001 Florian La Roche <Florian.LaRoche@redhat.de> - enable daemon mode again, but only listen to the loopback device instead of all devices. - do not include check.tar with old anti-spam rules Fri Jan 12 2001 Florian La Roche <Florian.LaRoche@redhat.de> - fix configuration of /etc/aliases Mon Jan 08 2001 Florian La Roche <Florian.LaRoche@redhat.de> - fix interoperation problems with communigate pro - disable msa Thu Jan 04 2001 Florian La Roche <Florian.LaRoche@redhat.de> - update to (security release) 8.11.2 - build also on RHL 6.x #16061 - include smrsh man-page #17901 - use the "-f" flag for makemap to preserve case for virtusertable and userdb in /etc/mail/Makefile - suggested by Harald Hoyer - fix /usr/doc -> usr/share/doc in docu #20611 - wrong path in sendmail.mc #20691 - tcp-wrapper support wasn't enabled correctly #21642 - do not expose user "root" when masquerading like in older releases #21643 - disable the VRFY and EXPN smtp commands #21801 - disable queue-runs for normal users (restrictqrun privacy flag) - fix typo in sendmail.mc #21880, #22682 - disable daemon mode to see what needs fixing Mon Oct 02 2000 Florian La Roche <Florian.LaRoche@redhat.de> - update to 8.11.1 Fri Sep 08 2000 Nalin Dahyabhai <nalin@redhat.com> - rebuild in new environment
93 lines
1.7 KiB
Bash
93 lines
1.7 KiB
Bash
#!/bin/bash
|
|
#
|
|
# sendmail This shell script takes care of starting and stopping
|
|
# sendmail.
|
|
#
|
|
# chkconfig: 2345 80 30
|
|
# description: Sendmail is a Mail Transport Agent, which is the program \
|
|
# that moves mail from one machine to another.
|
|
# processname: sendmail
|
|
# config: /etc/sendmail.cf
|
|
# pidfile: /var/run/sendmail.pid
|
|
|
|
# Source function library.
|
|
. /etc/init.d/functions
|
|
|
|
# Source networking configuration.
|
|
. /etc/sysconfig/network
|
|
|
|
# Source sendmail configureation.
|
|
if [ -f /etc/sysconfig/sendmail ] ; then
|
|
. /etc/sysconfig/sendmail
|
|
else
|
|
DAEMON=no
|
|
QUEUE=1h
|
|
fi
|
|
|
|
# Check that networking is up.
|
|
[ ${NETWORKING} = "no" ] && exit 0
|
|
|
|
[ -f /usr/sbin/sendmail ] || exit 0
|
|
|
|
RETVAL=0
|
|
prog="sendmail"
|
|
|
|
start() {
|
|
# Start daemons.
|
|
|
|
echo -n $"Starting $prog: "
|
|
/usr/bin/newaliases > /dev/null 2>&1
|
|
for i in virtusertable access domaintable mailertable ; do
|
|
if [ -f /etc/mail/$i ] ; then
|
|
makemap hash /etc/mail/$i < /etc/mail/$i
|
|
fi
|
|
done
|
|
daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo -bd) \
|
|
$([ -n "$QUEUE" ] && echo -q$QUEUE)
|
|
RETVAL=$?
|
|
echo
|
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail
|
|
return $RETVAL
|
|
}
|
|
|
|
stop() {
|
|
# Stop daemons.
|
|
echo -n $"Shutting down $prog: "
|
|
killproc sendmail
|
|
RETVAL=$?
|
|
echo
|
|
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sendmail
|
|
return $RETVAL
|
|
}
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart|reload)
|
|
stop
|
|
start
|
|
RETVAL=$?
|
|
;;
|
|
condrestart)
|
|
if [ -f /var/lock/subsys/sendmail ]; then
|
|
stop
|
|
start
|
|
RETVAL=$?
|
|
fi
|
|
;;
|
|
status)
|
|
status sendmail
|
|
RETVAL=$?
|
|
;;
|
|
*)
|
|
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $RETVAL
|