13, a new %msg hash variable has been introduced. Called quarantine_
reason, it can be used to match strings in the literal reason the message was
quarantined. You could use this, for example, to bounce all messages that were quarantined
with a reason that contained the word Virus:
#./qtool.pl -b -Q -e ??™$msg{quarantine_reason} =~ m/Virus/??™
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
444 | Chapter 11: Manage the Queue
See the online manual for the qtool.pl program (contrib/qtool.8) for a complete guide
to using that program.
11.10.2.9 The qf file??™s quarantine reason: q line
As of V8.13, the qf file??™s q line is used to store the reason that an envelope was quarantined.
The q line should appear only in quarantined envelopes, that is, in hf files,
not in qf files. If a q line appears in a qf file, that file will be silently converted into an
hf file. Thus, it does no good to simply rename an hf file into a qf file.
The format of a q line looks like this:
qreason
There may be only one q line in an hf file. The reason is the reason the envelope was
quarantined.
11.11 Pitfalls
??? Eachrelease of sendmail offers more and better ways to handle queue problems.
They are mostly implemented as options. Table 24-7 on page 966 lists all
options that affect the queue.
Pages:
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798