Difference between revisions of "How to delete e-mails from deferred queue sent by a particular account"

 
Line 17: Line 17:
 
   # /opt/zimbra/common/sbin/postqueue -p | egrep -v '^ *\(|-Queue ID-' | awk 'BEGIN { RS = "" } { if ($7 == "sender@domain.com") print $1} '
 
   # /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"
+
'''2)''' Once it will confirm, delete email sent by "sender@domain.com"
  
 
Run as root:
 
Run as root:

Latest revision as of 07:56, 11 July 2021

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 sent 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