core/exim/exim
Juergen Daubert 32d711c85d [notify] exim: update to 4.87
Note the following change in behaviour:

JH/18 Bug 1709: When built with TLS support, the tls_advertise_hosts
      option now defaults to "*" (all hosts).  The variable is now
      available when not built with TLS, default unset, mainly to
      enable keeping the testuite sane.
      If a server certificate is not supplied (via tls_certificate)
      an error is logged, and clients will find TLS connections fail
      on startup.  Presumably they will retry in-clear.

      Packagers of Exim are strongly encouraged to create a server
      certificate at installation time.

To follow that advice our rc-script creates the required certificate
and the two variables tls_certificate and tls_privatekey are set in
the configuration file.
2016-04-07 13:58:47 +02:00

47 lines
864 B
Bash

#!/bin/sh
#
# /etc/rc.d/exim: start/stop exim daemon
#
SSD=/sbin/start-stop-daemon
PROG=/usr/sbin/exim
PID=/var/run/exim.pid
OPTS="-bd -q15m"
CRT=/etc/ssl/certs/exim.crt
KEY=/etc/ssl/keys/exim.key
case $1 in
start)
if [ ! -s $CRT -o ! -s $KEY ]; then
/usr/bin/mksslcert $KEY $CRT
chown mail $CRT $KEY
fi
$SSD --start --pidfile $PID --exec $PROG -- $OPTS
;;
stop)
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID
;;
restart)
$0 stop
$0 start
;;
reload)
$SSD --stop --signal HUP --pidfile $PID
;;
status)
$SSD --status --pidfile $PID
case $? in
0) echo "$PROG is running with pid $(cat $PID)" ;;
1) echo "$PROG is not running but the pid file $PID exists" ;;
3) echo "$PROG is not running" ;;
4) echo "Unable to determine the program status" ;;
esac
;;
*)
echo "usage: $0 [start|stop|restart|reload|status]"
;;
esac
# End of file