Clean up mailqueue

Hello ladies and gentlements,

how do i clean up the mailq correctly? There are two mails in my queue

ID      : 182eeb.1d1b7b0
From    :
To      : recipient@domain.tld
--
ID      : 182eed.1d1b7b0
From    :
To      : recipient@domain.tld

Thx for solution.

take a look at /var/spool/mqueue dir, maybe you can remove files.

/var/spool/mqueue does not exist but within /var/spool/dma are

-rw-r----- 1 mail   mail      0 Oct 27 13:00 flush
-rw-rw---- 1 nobody mail 777542 Oct 25 05:01 M182eeb.1d1b7b0
-rw-rw---- 1 nobody mail 777536 Oct 25 05:01 M182eed.1d1b7b0
-rw-rw---- 1 nobody mail     65 Oct 25 05:01 Q182eeb.1d1b7b0
-rw-rw---- 1 nobody mail     65 Oct 25 05:01 Q182eed.1d1b7b0

corresponding to my mailq post above

I’m not sure if deleting files is the correct way to clean up the queue. Is there no parameter for mailq to force clean up the queue?

Thx

fcrontab -l shows that every week, it clears the dma queue

Cleanup the mail spool directory
%weekly * * /usr/sbin/dma-cleanup-spool