Posts

Showing posts from February, 2018

How to zimbra add account to distribution list

Image
In this tutorial, How do I use zimbra add account to distribution list by bash script. I’m written bash script for add account to distribution list. You may reading link as below: zimbra some service are not running How to install and configure zimbra multi server How to Restrict Sending to Distribution list in zimbra mail Zimbra add account to distribution list The syntax, create distribution lists command line from root account su - zimbra -c "zmprov adlm [email protected] [email protected]" My bash script for zimbra add account to distribution list as below: #!/bin/bash #Author: HuuPV #Add member to DL echo -n "Input distribute name, pls (Ex: [email protected]): " read DL echo -n "Input account add to distribute name, pls (Ex: [email protected]): " read AC Check_Member_DL=$(su - zimbra -c "zmprov gdl $DL | grep '\b$AC'") if [ $? == 0 ] then        echo "$AC membe

How to zimbra auto create distribution lists

Image
In this tutorial, How to zimbra auto create distribution list by bash script. I’m written bash script for create distribution list. Step 1: To check distribution lists name exists or not! Step 2: To create distribution lists from file. Step 3: Running zimbra auto create distribution lists bash script from root account. You may reading link as below: zimbra some service are not running How to install and configure zimbra multi server How to Restrict Sending to Distribution list in zimbra mail zimbra auto create distribution lists The syntax create distribution lists command line from root account su - zimbra -c "zmprov cdl [email protected]" To create distribution lists from file. For example, I’m created list_distribute.txt in /tmp folder as below: Zimbra auto create distribution lists full script. Bash script for distribution lists name as below: [root@mail opt]# cat zimbra_Distribute.sh The content zimbra_Distribute.sh as below: #!/bin/bash # Auth