7 and later sendmail offer a hard limit
that is somewhat like the old version but is site-tunable with the MaxQueueRunSize
option (?§24.9.72 on page 1050). After all the qf files have been gathered, they are
sorted in order of cost. Messages with the lowest value on the P line have the highest
priority (lowest cost) and are processed first.
Beginning withV8.7, sendmail also offers the QueueSortOrder option (?§24.9.92 on
page 1073), which allows you to sort by priority (as before), by priority and hostname,
by date queued, or (beginning withV8.10) by filename or (beginning with
V8.12) in random order. Once all the messages have been sorted, sendmail processes
each in turn.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
11.8 Cause Queues to Be Processed | 427
11.7.1 Processing a Single Message
A single queued message has a single sender but can have many recipients. When
processing a queued message, sendmail attempts to deliver it to all recipients before
processing the next queued message.
The first step in processing a queued message is to lock it so that concurrent runs of
sendmail do not attempt to process it simultaneously (?§11.2.3.1 on page 398). Then
the qf file is opened and read. The sender and all the recipients are gathered from the
corresponding S and R lines.
Pages:
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767