How to Remove Queues Email Zimbra from CLI

How to Remove Queues Email Zimbra from CLI ( Command Line Interface ) – Tutorial on how to easily delete Zimbra Spam queues that are indicated via CLI. Queue email with a large number is one of the issues on the mail server, this queue can be caused by emails that are stuck on MTA servers. Among the causes of retained email is over quota, mistyped email addresses, our outgoing IP is blacklisted by the recipient server.

In addition, the cause of the large number of blocked emails is that there are users who send a large number of emails or send spam emails. For this reason it is necessary to delete the email queues in Zimbra that are indicate as spam, as will ScienceZimbra explain in this article “Tutorial Zimbra Erase Queue Spam“.

Okay let’s see we can do, Tutorial on how to Delete the Quera Email Spam Indicated Spam from CLI:

  1. First, open your Command Line Interface, To check the email queue the type command : root@maillifedigital/home/admmail# /opt/zimbra/libexec/zmqstat

result is … :

hold=0
corrupt=0
deferred=100
active=0
incoming=0
  1. Second, To find out which user is doing an indication of spam, we can do by entering the following command. But first we have to log in as a email zimbra user that is with the command : root@mailblogtembem:/home/admmail# su – zimbra

and then we enter the following command to see the details of all e-mails being processed :

  1. To see log being process zimbra@blogtembem:~$ tail -f /var/log/zimbra.log
  2. After knowing the user is indicated as spam, enter the following command using user to clear the email queue : root@maillifedigital:/home/admmail# /opt/zimbra/postfix/sbin/postqueue -p | egrep -v ‘^ (|-Queue ID-‘ | awk ‘BEGIN { RS = “” } { if ($7 == “user1@zimbra.com”) print $1} ‘ | tr -d ‘!’ | /opt/zimbra/postfix/sbin/postsuper -d –
zimbra@blogtembem:~$ mailq  

Okay easy right, this How to Remove Queues Email Zimbra from CLI ( Command Line Interface ) thanks for visiting and see u next read guys…. ^_^

source: masterganteng

News Reporter