Name

-d41.1

Synopsis

The -d41.1 (a.k.a. -d41) debugging switch causes sendmail to print its ordering of the queue. First it prints:

gatherq::
        QueueLimitId = !qid if -qI used  
        QueueLimitSender = !address if -qS used  
        QueueLimitRecipient = !address if -qR used

See Section 11.8.2.3 for an explanation of how the -qI, -qS, and -qR command-line switches can limit the scope of a queue run. If none of them was specified, only gatherq: is printed. The -d41.1 debugging switch is extremely handy for previewing the effect of the -qI, -qS, and -qR command-line switches. When combined with -bp (mailq), these switches limit the queue listing and thus preview the effect of a limited queue run:

# mailq
                /var/spool/mqueues/q.2/df (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
g7PJQTbL027814      107 Sun Aug 25 13:26 you
                 (Deferred: Connection timed out with host.domain)
                                         user@host.domain
# mailq -d41.1 -qI27814
gatherq:
        QueueLimitId = 27814
                /var/spool/mqueues/q.2/df (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
g7PJQTbL027814      107 Sun Aug 25 13:26 you
                 (Deferred: Connection timed out with host.domain)
                                         user@host.domain

Note that you may combine debugging command-line switches with queue processing commands only if you are root. If you are not, the following error is printed and debugging is turned off:

WARNING: Cannot use -d with -q.  Disabling debugging.

The -d41.1 debugging switch also traces the growth of the queue working ...

Get Sendmail, 3rd 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.