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

Revision as of 07:54, 11 July 2021 by GopalBhandari (talk | contribs) (Created page with "__FORCETOC__ <div class="col-md-12 ibox-content"> =How to delete e-mails from deferred queue sent by a particular account?= <hr> {{KB|{{WIP}}|{{ZCS 8.8}}|{{ZCS 9.0}}}} <hr> =...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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