#!/bin/sh # # Start or stop TWO Postfix Instances # Assumes first instance config files are in /etc/postfix # and second instance files are in /etc/postfix-out # # For Debian Linux 3.0. # PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/sbin/postfix NAME=Postfix case "$1" in start) echo -n "Starting mail transport agent: Postfix" $DAEMON start 2>&1 | (grep -v 'starting the Postfix' 1>&2 || /bin/true) echo "." echo -n "Starting mail transport agent: Postfix-out" $DAEMON -c /etc/postfix-out start 2>&1 | (grep -v 'starting the Postfix' 1>&2 || /bin/true) echo "." ;; stop) echo -n "Stopping mail transport agent: Postfix" $DAEMON stop 2>&1 | (grep -v 'stopping the Postfix' 1>&2 || /bin/true) echo "." echo -n "Stopping mail transport agent: Postfix-out" $DAEMON -c /etc/postfix-out stop 2>&1 | (grep -v 'stopping the Postfix' 1>&2 || /bin/true) echo "." ;; restart) $0 stop $0 start ;; *) echo "Usage: /etc/init.d/postfix {start|stop|restart}" exit 1 ;; esac exit 0