Re: dma: could not pick up queue file

From: John R. Levine <johnl_at_iecc.com>
Date: Fri, 01 Nov 2024 13:23:09 UTC
On Fri, 1 Nov 2024, Dan Langille wrote:
> This event occurred today.  These logs are slightly amended to obscure host names and email and IP addresses.
>
> Nov  1 00:00:10 wikis newsyslog[46335]: logfile turned over
> Nov  1 03:05:42 wikis dma[46d60][90243]: new mail from user=root uid=26 envelope_from=<root@wikis.[redacted]>
> Nov  1 03:05:42 wikis dma[dma][90258]: could not pick up queue file: `/var/spool/dma/Q46d60.432a50848050'/`/var/spool/dma/M46d60.432a50848050': No such file or directory
> Nov  1 03:05:42 wikis dma[46d60][90243]: mail to=<dan@example.org> queued as 46d60.432a50848050
> Nov  1 03:05:42 wikis dma[46d60.432a50848050][90243]: <dan@example.org> trying delivery
> Nov  1 03:05:42 wikis dma[46d60.432a50848050][90269]: using smarthost (tallboy.[redacted]:25)
> Nov  1 03:05:42 wikis dma[46d60.432a50848050][90269]: trying remote delivery to tallboy.[redacted] [10.0.0.1] pref 0
> Nov  1 03:05:42 wikis dma[46d60.432a50848050][90269]: <dan@example.org> delivery successful
> Nov  1 03:46:21 wikis dma[46d47][96425]: new mail from user=root uid=26 envelope_from=<root@wikis.[redacted]>

Look again.  The failure was PID 90258 which I assume is the daemon, not 
90243 which is the program sending the message.  This suggests it is 
indeed a harmless race condition.

In my experience, the initial delivery always succeeds and it never 
queues, so running the queue daemon once a day just in case should be 
plenty.

Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly