MaxQueueChildren

Limit total concurrent queue processors V8.12 and later

It is possible to get into situations where too many sendmail processes are processing queues. These queue processors are children of the main sendmail process. Should too many queue-processing children become a problem at your site, you can use this MaxQueueChildren option to limit them.

The MaxQueueChildren option is declared like this:

O MaxQueueChildren=numconfiguration file (V8.12 and later)
-OMaxQueueChildren=numcommand line (V8.12 and later)
define(`confMAX_QUEUE_CHILDREN',`num')   ← mc configuration (V8.12 and later)

Here, num is of type numeric. If num is negative, non-numeric, or zero (the default), no limit is placed on the number of queue-processing children that can simultaneously run. If num is greater than zero, each time sendmail is about to fork(3) to create another queue-processing child, it checks to make sure that there are not too many running. If the number running is equal to or greater than the limit imposed by num, sendmail skips launching another one.

When you define queue groups (Queue Groups (V8.12 and Later) on page 408), you can set up processors for each group with the Runners= equate (The Runners= (R=) queue-group equate on page 414). When this MaxQueueChildren option is defined, it establishes a limit on the total queue processors across all queue groups—that is, for example, if you have two queue groups[397] and you define Runners=2 for each group. If this MaxQueueChildren

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.