Dear Maintainer,
The current queue unit file (/usr/lib/systemd/system/dma.service) command goes into the background and is killed by systemd before it completes. It needs the -D option to prevent that.
It should read:
[Unit]
Description=Flush the dma mail transfer agent's queue
Documentation=man:dma(8)
[Service]
Type=oneshot
ExecStart=/usr/sbin/dma -Dq
ubuntu@srv-dyc64:~$ lsb_release -rd
Description: Ubuntu 26.04.1 LTS
Release: 26.04
ubuntu@srv-dyc64:~$ apt-cache policy dma
dma:
Installed: 0.14-1
Candidate: 0.14-1
Version table:
*** 0.14-1 500
500 http://gb1-b.clouds.archive.ubuntu.com/ubuntu resolute/universe amd64 Packages
100 /var/lib/dpkg/status