Qmail notes

From Noah.org
Revision as of 13:55, 29 January 2007 by Root (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

mail.sh

#!/bin/sh
# Start or stop all mail services.
# Intended for a standard Qmail Rocks installation.
# Noah Spurrier

case $1 in
status)
    /usr/bin/qmailctl stat
    ;;
start)
    /usr/local/sbin/authdaemond start
    /etc/init.d/imap start
    /etc/init.d/imaps start
    svc -u /service/qmail-pop3d
    svc -u /service/qmail-smtpd
    svc -u /service/qmail-send
    /usr/bin/qmailctl start
    ;;
stop)
    /usr/bin/qmailctl stop
    svc -d /service/qmail-send
    svc -d /service/qmail-smtpd
    svc -d /service/qmail-pop3d
    /etc/init.d/imaps stop
    /etc/init.d/imap stop
    /usr/local/sbin/authdaemond stop
    ;;
esac
exit 0

aliases

Add this to bash aliases.

alias lsq='find /var/qmail/queue -type f -exec ls -l {} \;'