8.2.5 on page 432)
-qQreason ?†? match any queue group with the name reason (?§11.10.2 on page 439)
* We say qf file, even though this new line appears only in the new hf file type.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
440 | Chapter 11: Manage the Queue
For example, the following command line will only process quarantined envelopes in
the queue group okayclients that were sent by the user bob:
/usr/sbin/sendmail -qQ -qGokayclients -qSbob
The same switches can also be used to determine what the mailq command will
print. For example, the following prints the status of all the currently quarantined
envelopes:
mailq -qQ
11.10.2.2 The -Q command-line switch
When the -Q command-line switchis used withan argument (suchas -Q"reason") it
causes the specified envelopes to become quarantined. When used without an argument,
it causes the specified envelopes to become dequarantined.
For example, the following command line causes all currently queued envelopes destined
for the user bob to become quarantined:
/usr/sbin/sendmail -qSbob@your.domain -Q"Bob resigned today"
Here, the -qSbob@your.domain causes the queue to be searched for all envelopes that
are from the sender (the -qS) bob at your domain. The -Q is followed by the argument
"Bob resigned today", so all those messages are quarantined using ???Bob
resigned today??? as the reason.
Pages:
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791