#!/bin/sh #----------------------------------------------------------------------------- # Creation: 2006-08-18 Jens Vehlhaber <jens(at)eisfair(dot)org> # Last Update: $Id$ #----------------------------------------------------------------------------- #include eislib . /var/install/include/eislib case "$1" in qlist) clrhome mecho -info "List of messages that are in the mail queue:" mailq anykey ;; qflush) clrhome mecho -info "Flush all e-mails and show mail queue:" /usr/sbin/postfix flush sleep 1 mailq anykey ;; qhandle) /usr/local/postfix/pfqueue -b postfix2 -q 1 ;; esac ### ------------------------------------------------------------------------- exit 0