command line

zimbra command line

--------------

To display trouble logs

#egrep '(reject|warning|error|fatal|panic):' /var/log/zimbra.log

To check if no smtp connection

#netstat -nplt | awk '{print $4 " " $6}' | egrep "[0-9]+.[0-9]+.[0-9]+.[0-9]+:25" | egrep "ESTABLISHED" | wc -l

To see the postfix queue (as zimbra user)

#sudo ~/libexec/zmqstat

#postqueue -p

or

#mailq

To view message postfix queue

#postcat -q C12E6246BC | more

Tunning postfix queue

To check and reconfigure queue lifetime

$postconf | grep maximal_queue_lifetime

maximal_queue_lifetime = 5d

$ postconf -e maximal_queue_lifetime=15m

To check and reconfigure deferred queue parameter

$postconf | egrep "queue_run_delay|minimal_backoff_time"

minimal_backoff_time = 300s

queue_run_delay = 300s

$ postconf -e queue_run_delay=2000s

$ postconf -e minimal_backoff_time=2000s

-----------