Usage:
# /usr/bin/qmailctl { start | stop | restart | doqueue | flush | reload | stat | pause | cont | cdb | queue | help }
where
stop -- stops mail service (smtp connections refused, nothing goes out)
start -- starts mail service (smtp connection accepted, mail can go out)
pause -- temporarily stops mail service (connections accepted, nothing leaves)
cont -- continues paused mail service
stat -- displays status of mail service
cdb -- rebuild the tcpserver cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
doqueue -- schedules queued messages for immediate delivery
reload -- sends qmail-send HUP, rereading locals and virtualdomains
queue -- shows status of queue
alrm -- same as doqueue
flush -- same as doqueue
hup -- same as reload
To manually shutdown the qmail processes. Kill qmail-send first. (qmail-send is the parent qmail process) (check for
and kill any qmail-lspawn processes that remain after a while). This stops outbound email, and stops the queue being processed.
Kill the tcpserver process providing qmail-smtpd access. This stops incoming email from being queued.
===================================================================
If you are using Debian you might try shutting down qmail via the
standard debian method (as root):
/etc/init.d/qmail stop
===================================================================
No comments:
Post a Comment