How to delete mail from postfix queue

Nov 23, 2012 00:00 · 89 words · 1 minute read Linux Postfix

I have found a few stuck emails in the queue of my mail server (I’m using postfix). My external MTA tried to deliver them to my home server, but my main home ISP had some issues and I was using a backup line. These emails are not important. So, time to clean them with postsuper ;)

~># mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
EBCF74421E3*     596 Fri Nov 23 20:00:10  michael@mydomain
                                          home@myhomedomain

-- 1 Kbytes in 1 Request.

~># postsuper -d EBCF74421E3
postsuper: EBCF74421E3: removed
postsuper: Deleted: 1 message