Posts

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

zimbra 451 4.3.5 Server configuration problem [solved problem]

You getting this error " zimbra 451 4.3.5 Server configuration problem" in zimbra.log. How to this is solved problem. 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 451 4.3.5 Server configuration problem The log error as below: Jan 22 11:31:36 mta postfix/smtpd[9984]: NOQUEUE: reject: RCPT from unknown[198.54.114.232]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<HuuPV> How I do it.... The first To increase RAM, CPU for your zimbra system. For example, if your zimbra system  size medium and larger. To increase >= 16GB RAM and >= 8 CPU for zimbra MTA system. The second To configure cbpolicyd.conf.in file with parameter min_servers, min_spare_servers, max_spare_servers, max_servers, max_requests the appropriate for your zimbra system configu

zimbra create multiple accounts csv file

I will writing the script for create multiple accounts from csv file. To create Accounts.csv file To use bash script create multiple accounts in zimbra To execute zimbra_account.sh bash script I'm created Accounts.csv file # cat Accounts.csv  The content Accounts.csv file as below: [email protected],123456789,Huu1,Phan Van,Phan Van Huu1 (IT),mail.huuphan.local [email protected],123456789,Huu2,Phan Van,Phan Van Huu2 (IT),mail.huuphan.local zimbra create multiple accounts csv file full script zimbra create multiple accounts with zimbra_account.sh name #!/bin/bash # File Accounts.csv as below: # [email protected],123456789,Huu1,Phan Van,Phan Van Huu1 (IT),mail.huuphan.local # [email protected],123456789,Huu2,Phan Van,Phan Van Huu2 (IT),mail.huuphan.local DATE=$(date) OLDIFS=$IFS IFS=',' File_Name="/opt/Account/Accounts.csv" Out_log='/tmp/outfile.log'         echo "$DATE - To create account Email" | te

zimbra create multiple accounts

Image
# In this tutorial, we will cover how to create multiple accounts in Zimbra using a file containing a list of commands for creating email accounts. To automate the account creation process, we will use a script.  For this purpose, we will create a commands.zmp file that contains the necessary commands for creating the accounts." How to do it....? Step 1: To create commands.zmp file with the content as top The content commands.zmp file you changed the appropriate attributes of your account Account: [email protected] Password: 123456789 SN: huupv1 displayName: 'Huu1, Phan Van (IT)' zimbraMailHost: mail.huuphan.local you can ref to zmprov command create accounts Step 2: To use zimbra account su - zimbra Step 3: To use zmprov command to create multiple accounts zmprov -f commands.zmp The conclusion zimbra create multiple accounts atop very simple. However, I recommend use script to create multiple accounts for file .csv. I will writing the scri

How to uninstall zimbra

Image
In this tutorial, How to uninstall zimbra on centos or ubuntu. To uninstall zimbra Collaboration Suite as below: To use zmcontrol stop  To uninstall zimbra To remove zimbra folder  To reboot server  To check zimbra services Step 1 : To stop zimbra use zmcontrol stop Step 2 : To run script uninstall zimbra on server Step 3 : To remove zimbra folder Step 4 : To reboot server

How to install zimbra 8.8 on centos 6 step by step

Image
In this tutorial, How to install zimbra 8.8 on centos 6 step by step. To install zimbra mail server on single-server. Link to below you maybe likes: How to install and configure zimbra multi server zimbra some services are not running [Solve problem] How to Restrict Sending to Distribution list in zimbra mail Zimbra 8.6 restrict to user sending mail to certain domain To prepare for zimbra 8.8 To configrue ip address static. To configrue /etc/resolv.conf file. To configrue /etc/sysconfig/network file. To configure /etc/hosts file. To install the dependency. # yum -y update # yum -y install perl perl-core wget screen w3m elinks openssh-clients openssh-server unzip nmap sed nc sysstat libaio rsync telnet aspell ntp openssh-clients Disable service sendmail, postfix or SELINUX. # sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux # setenforce 0 # service iptables stop # service ip6tables stop # chkconfig iptables off # chkcon

awk useful commands examples

awk useful comand examples. How to Output Field Separator Variable, Number of Fields in a record, To print Non-system users and ignoring "nobody" etc.  You may reading link below : How to reset root password on centos 7 CentOS/RHEL Use yum Command To Downgrade Upgrade or Rollback Updates Generate and Verify Files with MD5 Checksum in Linux use inotify-tools on centos For example, the output passwd file use awk command $ cat /etc/passwd | awk -F':' 'BEGIN{ print "Name\tUID,GID\tHomeDirectory" }{print $1"\t"$3,$4"\t"$6}' The output as below: Name UID,GID HomeDirectory root 0 0 /root bin 1 1 /bin daemon 2 2 /sbin adm 3 4 /var/adm lp 4 7 /var/spool/lpd sync 5 0 /sbin shutdown 6 0 /sbin halt 7 0 /sbin mail 8 12 /var/spool/mail operator 11 0 /root games 12 100 /usr/games ftp 14 50 /var/ftp nobody 99 99 / systemd-bus-proxy 999 998 / systemd-network 192 192 / dbus 81 81 / polkitd 998 997 / tss 59 59 /dev/null s

zimbra enforce SPF checking for incomming email

Image
In this tutorial, I'm enable and configure spf to check for incommning email with cbpolicyd. By default, the SPF checking module is not enable and there are no SPF policies. zimbra logs with "Sender address rejected: Failed SPF check". How to zimbra enforce spf checking for incomming email as below. I'm running commands as zimbra account ( su - zimbra ) Links to below you maybe likes: zimbra 8.6 cbpolicyd example How to install and configure zimbra multi server. How to restrict to user sending mail on zimbra 8.6. How to Restrict Sending to Distribution list in zimbra mail. How to change last login time for all accounts in zimbra ldap. How to zimbra reject authenticated sender login mismatch. To check zimbra policyd spf $ zmprov gs `zmhostname` zimbraCBPolicydCheckSPFEnabled If zimbra spf checking not enable then, to enable policyd checkspf $ zmprov ms `zmhostname` zimbraCBPolicydCheckSPFEnabled TRUE To restart policyd service $ zmcbpolicydctl resta

Zimbra 8.8 releases beta

Zimbra 8.8 the best for mail server. It's useful the feature new! I like it. What is zimbra 8.8 new New Realtime backup : I like it! Now, your backup no data loss and saving on storage space New Mobile Sync New HSM & Volume Management : reduce your current zimbra storage Improved, easy-to-use Delegated Admin Zimbra Drive Zimbra Chat (BETA) Decoupled IMAP Service (BETA) Ephemeral Data Store The waiting zimbra 8.8 offical! Yeah to ready zimbra GA link download zimbra 8.8 How to install zimbra 8.8 on centos 6 step by step !