Home > mail > postfix > | How to remove mail from postfix's mail queue | About

1. Spot the mail's queue ID with mailq

root@messagerie-secours[10.10.10.20] ~ # mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
C633A1E923E3     5045 Sat Feb 28 10:51:44  MAILER-DAEMON
(host mx.bindisergardi.it[62.149.128.160] refused to talk to me: 554 mxcmd02.ad.aruba.it bizsmtp y9wp1p00b14k9SV01 
Connection refused from 197.201.1.50. See http://www.spamhaus.org/query/bl?ip=197.201.1.50 for more information.)
                                         c.saletti@XXX

1E3491E923C7     2167 Sun Mar  1 11:25:32  a.chaouche@XXX
(temporary failure. Command output: /usr/bin/maildrop: Unable to create a dot-lock at /var/vmail/algerian-radio.dz/m.boulkaboul/13324.0.messagerie.algerian-radio.dz.)
                                         m.boulkaboul@XXX

-- 7 Kbytes in 2 Requests.
root@messagerie-secours[10.10.10.20] ~ # 

2. Remove it with postsuper -d queueid

root@messagerie-secours[10.10.10.20] ~ # postsuper -d C633A1E923E3
postsuper: C633A1E923E3: removed
postsuper: Deleted: 1 message
root@messagerie-secours[10.10.10.20] ~ # 

3. You can make sure it's gone by calling mailq again

root@messagerie-secours[10.10.10.20] ~ # mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1E3491E923C7     2167 Sun Mar  1 11:25:32  a.chaouche@XXX
(temporary failure. Command output: /usr/bin/maildrop: Unable to create a dot-lock at /var/vmail/algerian-radio.dz/m.boulkaboul/13324.0.messagerie.algerian-radio.dz.)
                                         m.boulkaboul@XXX

-- 2 Kbytes in 1 Request.
root@messagerie-secours[10.10.10.20] ~ # 

contact : @ychaouche yacinechaouche at yahoocom


QR Code
QR Code removemail (generated for current page)