#!/bin/bash
case $1 in
start)
/usr/local/sbin/postfix start
;;
stop)
/usr/local/sbin/postfix stop
;;
reload)
/usr/local/sbin/postfix reload
;;
abort)
/usr/local/sbin/postfix abort
;;
flush)
/usr/local/sbin/postfix flush
;;
check)
/usr/local/sbin/postfix check
;;
status)
/usr/local/sbin/postfix status
;;
set-permissions)
/usr/local/sbin/postfix set-permissions
;;
upgrade-configuration)
/usr/local/sbin/postfix upgrade-configuration
;;
*)
# Print help
echo "
postfix/postfix-script: fatal: usage:
postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)
" 1>&2
exit
esac
exit 0 |