CheckpointInterval

Checkpoint the queue V8.1 and later

When a single email message is sent to many recipients (those on a mailing list, for example), a single sendmail process handles all the recipients. Should that sendmail process die or be killed halfway through processing, there is no record that the first half was delivered. As a result, when the queue is later reprocessed, the recipients in that first half will receive the message a second time.

The FastSplit option (FastSplit on page 1032) and this CheckpointInterval option can limit that duplication. The CheckpointInterval option tells sendmail to rewrite (checkpoint) its qf file (which contains the list of recipients; see The Queue Control File: qf on page 399) after each group of a specified number of recipients has been delivered. Recipients who have already received mail are deleted from the list, and that list is rewritten to the qf file. The forms of the CheckpointInterval option are as follows:

O CheckpointInterval=numconfiguration file (V8.7 and later)
-OCheckpointInterval=numcommand line (V8.7 and later)
define(`confCHECKPOINT_INTERVAL',`num') ← mc configuration (V8.7 and later)
OCnumconfiguration file (deprecated)
-oCnumcommand line (deprecated)

The num argument is of type numeric and specifies the number of recipients in each group. If num is entirely missing, is non-numeric, or is zero, this feature is disabled. If the entire CheckpointInterval option is missing, the default is 10. There is a small performance ...

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.