Qmail queue: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
# qmailctl start
# qmailctl start
# qmailctl queue
# qmailctl queue
qmHandle
# wget -P /usr/local/bin  https://qtp.qmailtoaster.org/bin/qmHandle
# chmod +x /usr/local/bin/qmHandle
# qmHandle
qmHandle v1.2.0-bovine
Copyright 1998-2003 Michele Beltrame
Patched 2004-2006 Robert McLeay
Available parameters:
  -V    : print program version
  -a    : try to send queued messages now (qmail must be running)
  -l    : list message queues
  -L    : list local message queue
  -R    : list remote message queue
  -s    : show some statistics
  -mN    : display message number N
  -dN    : delete message number N
  -Stext : delete all messages that have/contain text as Subject
  -D    : delete all messages in the queue (local and remote)
  -tX 'string': delete all messages with matching headers, where 'string' is the
                string to match and X specifies:
                  'f'  : Who the message is from,
                  't'  : Who the message is to; or,
                  's'  : What the message's subject is
  -M          : delete all msgs in the queue from
                MAILER-DAEMON@localhost.localdomain
Additional (optional) parameters:
  -c    : display colored output
  -N    : list message numbers only
          (to be used either with -l, -L or -R)
You can view/delete multiple message i.e. -d123 -v456 -d567
More to come...
More to come...

Revision as of 11:01, 19 October 2024

Back
Queue creation

  1. qmailctl stop
  2. mv /var/qmail/queue /var/qmail/queue.bak
  3. queue_repair.py -c --split 23 --no-bigtodo /var/qmail
  4. qmailctl start

Queue repair

  1. qmailctl stop
  2. queue_repair.py -r
  3. qmailctl start
  4. qmailctl queue

qmHandle

  1. wget -P /usr/local/bin https://qtp.qmailtoaster.org/bin/qmHandle
  2. chmod +x /usr/local/bin/qmHandle
  3. qmHandle

qmHandle v1.2.0-bovine Copyright 1998-2003 Michele Beltrame Patched 2004-2006 Robert McLeay

Available parameters:

 -V     : print program version
 -a     : try to send queued messages now (qmail must be running)
 -l     : list message queues
 -L     : list local message queue
 -R     : list remote message queue
 -s     : show some statistics
 -mN    : display message number N
 -dN    : delete message number N
 -Stext : delete all messages that have/contain text as Subject
 -D     : delete all messages in the queue (local and remote)
 -tX 'string': delete all messages with matching headers, where 'string' is the
               string to match and X specifies:
                 'f'  : Who the message is from,
                 't'  : Who the message is to; or,
                 's'  : What the message's subject is
 -M          : delete all msgs in the queue from
               MAILER-DAEMON@localhost.localdomain

Additional (optional) parameters:

 -c     : display colored output
 -N     : list message numbers only
          (to be used either with -l, -L or -R)

You can view/delete multiple message i.e. -d123 -v456 -d567

More to come...