#!/bin/sh # Start/stop/restart the Exim MTA # Run as SMTP listener daemon, do queue runs every 15 mins. EXIM_ARGS="-bd -q15m" case "$1" in start) echo "Starting Exim" /usr/sbin/exim $EXIM_ARGS ;; stop) echo "Stopping Exim" pkill -f /usr/sbin/exim ;; reload) echo "Reloading Exim config" pkill -HUP -f /usr/sbin/exim ;; restart) $0 stop sleep 2 $0 start ;; *) echo "usage: $0 {start|stop|reload|restart}" ;; esac