Zimbra delete e-mails from deferred queue

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.

Read more

Share