pavement

Qmail, clearing the queue

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
To clear *all* messages from the queue, shut down qmail, then:
+
To delete '''all''' messages from the queue, shut down qmail, then:
  
  cd /var/qmail/queue && find intd todo local remote mess info bounce -type f -print |xargs rm
+
  server# '''cd /var/qmail/queue && find intd todo local remote mess info bounce -type f -print |xargs rm'''
  
Start qmail back up, and the queue should be empty.
+
Start qmail back up, and the queue should be empty. Note that if, for example, you just want to clear bounce messages, you could do:
 +
 
 +
server# '''cd /var/qmail/queue && find bounce -type f -print |xargs rm'''
  
 
[[Category:Common Tasks]]
 
[[Category:Common Tasks]]

Revision as of 00:05, 28 May 2006

To delete all messages from the queue, shut down qmail, then:

server# cd /var/qmail/queue && find intd todo local remote mess info bounce -type f -print |xargs rm

Start qmail back up, and the queue should be empty. Note that if, for example, you just want to clear bounce messages, you could do:

server# cd /var/qmail/queue && find bounce -type f -print |xargs rm
Personal tools