Difference between revisions of "Qmail notes"
From Noah.org
Jump to navigationJump to searchm |
|||
Line 1: | Line 1: | ||
+ | [[Category:Engineering]] | ||
+ | [[Category:qmail]] | ||
== mail.sh == | == mail.sh == | ||
<pre> | <pre> |
Revision as of 16:05, 29 January 2007
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 {} \;'