How to delete e-mails from deferred queue sent by a particular account

Revision as of 07:55, 11 July 2021 by GopalBhandari (talk | contribs)

How to delete e-mails from deferred queue sent by a particular account?


   KB 24324        Last updated on 2021-07-11  




0.00
(0 votes)

Problem

How to delete e-mails from deferred queue sent by a particular account?


Solution

1) This command will show the queue id of messages sent by "sender@domain.com". Check it is deleting correct queue id.

Run as root:

 # /opt/zimbra/common/sbin/postqueue -p | egrep -v '^ *\(|-Queue ID-' | awk 'BEGIN { RS = "" } { if ($7 == "sender@domain.com") print $1} '

2) Once it will confirm, delete email send by "sender@domain.com"

Run as root:

 # /opt/zimbra/common/sbin/postqueue -p |egrep -v '^ *\(|-Queue ID-' | awk 'BEGIN { RS = "" } { if ($7 == "sender@domain.com") print $1} '| tr -d '*!'| /opt/zimbra/common/sbin/postsuper -d -

Note: Replace "sender@domain.com" with actual sender e-mail address.

3) Delete ALL Messages From The deferred queue.

Run as root:

 # /opt/zimbra/common/sbin/postsuper -d ALL deferred
Jump to: navigation, search