faqts : Computers : Internet : Mail Servers : qmail : Tips and Tricks : Controlling Daemons

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 16 people (75%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How do I shutdown qmail?
How do I shutdown qmail outbound and inbound email?

Dec 10th, 2004 03:21
Sam Snow, Brian Coogan, Raul Gomez,


Shutting down qmail is fairly straight forward:
If you have the Life with Qmail qmailctl command, just use it. As 
root, type:
                  qmailctl stop
Type qmailctl by itself for a full list of commands.
Otherwise, you'll need 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.
See also the FAQTS question on killing qmail-send nicely.
===================================================================
If you are using Debian you might try shutting down qmail via the 
standard debian method (as root): 
/etc/init.d/qmail stop 
===================================================================