Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

zimbra command line

zimbra command line

zimbra command lines (CLI) , my post focus command lines for zimbra ldap, zimbra mta, zimbra mailbox, zimbra proxy.






For zimbra ldap

To get all artibute information of uid in base DN:

#ldapsearch -LLL -D "uid=zimbra,cn=admins,cn=zimbra" -x -H ldap://ldap.huuphan.local -w password -b dc=huuphan,dc=local "(&(uid=huupv))"

For zimbra MTA

Starting zmconfigd...failed
Host mta.huuphan.local
        Starting zmconfigd...Failed.
Starting zmconfigd...failed.

To solve problem
#vim /etc/hosts
comment out, to fixed Starting zmconfigd...Failed.
127.0.0.1   localhost.localdomain localhost

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
How to delete all MAILER-DAEMON emails in Postfix queue ( To run root user)
for i in `/opt/zimbra/postfix/sbin/postqueue -p|grep 'MAILER-DAEMON' |awk {'print $1'}|grep -v 'MAILER-DAEMON'`; do /opt/zimbra/postfix/sbin/postsuper -d $i ; done

To view message postfix queue
#postcat -q C12E6246BC | more

 

Tunning postfix queue in zimbra

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

Thanks for reading zimbra command line My blog Zimbra Mail Server,linux,bash script,centos,linux command I hope this is useful.

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com