Zimbra Mail Commands 8.5

Created: July 23, 2018, 7:45 p.m.
Update: Sept. 26, 2021, 9:03 a.m.
Many tricks and tools for Admin a Zimbra Mail server


Ubuntu Linux - ubuntu.com
Zimbra 8.8.x - https://zimbra.org
$$ = zimbra user / sudo su - zimbra
$ = root user

Enable Notification when found a virus

$ zmprov mcf zimbraVirusWarnRecipient TRUE
$ zmprov mcf zimbraVirusWarnAdmin TRUE
$ zmamavisdctl restart
$ zmcontrol stop
$ zmcontrol start
Use FALSE to disable and restart.

Tools to check SPF and Dmark DNS verification


Gmail unDelist after incident. A user fill a fake form to re-validate account email.
Google Gmail problems. 


Blacklist check


Importants log to check


How to close a lot emails accounts. List all email accounts of server. Export for a file and select accounts that will be closed.

$$ zmprov -l gaa > /tmp/accounts


gente@domain.com	active      07/11/12 11:12   07/18/12 11:46
baffa@domain.com active 11/12/11 13:02 never
tatiane@domain.com lockout 02/10/12 09:19 03/02/16 16:03
thales@domain.com active 01/20/16 10:20 01/04/17 09:58
thiago@domain.com active 05/11/15 10:26 06/07/17 10:31
santos@domain.com locked 11/12/11 13:02 12/17/15 12:56
many@domain.com lockout 10/09/15 10:10 10/21/15 23:13

Commad to close each account, bash!

$$ IFS=$'\n'
$$ for X in `cat /tmp/accounts`;
do AC=$(echo $X| cut -d '@' -f1);
zmprov ma $AC zimbraAccountStatus closed;
echo $AC;
How to delete LOT of messages in queue from a email address?
A email account using a weak password was used to spam and I had a big problem per 2 full days, 350 thousand emails come back to account SPAM. How to fix this?! A simple line command! :)

CBPolicy - Easy Install

After a hacked account, the STUPID sent 80 thousand emails by 24 hours. The best way to avoid this is a diary limit to send email.

Install http://imanudin.net/20

Set Rules 

limit to send
limit to receive
log to check quota=2.71/2 (135.5%)

Tiago de Souza Moraes - teago.futuria.com.br - 2021 // CSS by UIKIT CSS