edu
ben@GROOTS.EDU
The last line further illustrates that the substring match is a case-insensitive one. The
substring matchis literal. Wildcard characters (suchas *) and regular expressions
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
432 | Chapter 11: Manage the Queue
(suchas .*@.*edu) won??™t work and might confuse the shell from which you run
sendmail.
Multiple specifications can be combined on the command line (as shown earlier),
but they all AND together:
% /usr/sbin/sendmail -qI123 -qSroot -qR@host.edu
Here, the queue is processed only for messages with the number 123 anywhere in the
queue identifier that are also from root and that are also addressed to anyone at
host.edu.
You can use the mailq command to preview the effect of these switches. For example,
the following command will list (but not send) the messages that would be processed
by the previous command line:
% mailq -qI123 -qSroot -qR@host.edu
11.8.2.4 Process by negated identifier/recipient/sender (V8.12 and
later)
Beginning withV8.12 sendmail, you can prefix any of the I, S, or R specifications to -q
withan ! character. The presence of an ! character prefix instructs sendmail to invert
the logic of that particular test. For example:
% mailq -q\!Sroot -qR@host.edu
Here, we wishto process the queue for any message addressed to anyone at host.
Pages:
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777