Posts

Showing posts with the label Zimbra Mail Server

Log file zimbra script: Management with Custom Scripts

Introduction Log files play a crucial role in monitoring and troubleshooting the Zimbra email system. By analyzing log files, administrators can identify issues, track system performance, and ensure the smooth operation of their email infrastructure.  In this article, we will guide you through creating and using scripts to manage Zimbra log files effectively, helping you maintain a robust and reliable email system. The function read /var/log/zimbra.log use bash script. To input FILE1 =/var/log/zimbra.log FOLDER =/tmp/test NUMBER =/tmp/test/number.txt file To output TEMP_LOG=$FOLDER/tmp_zimbra.log Function f_check_folder to check folder existing yes or no. f_check_folder () {         if [[ -d $FOLDER ]]; then                 if [[ ! -s $NUMBER ]]; then                         touch $NUMBER                         echo 0 > $NUMBER                 fi         else                 mkdir -p $FOLDER                 touch $NUMBER                 echo 0 > $NUMBER      

How to Manage Mailbox Folder using zmmailbox command in Zimbra

Introduction The zmmailbox command in Zimbra is a powerful tool that allows administrators to manage mailboxes efficiently through the command line. This command offers a wide range of functionalities, from managing emails and folders to performing administrative tasks like account management and mailbox configuration. In this article, we will explore the various uses of the zmmailbox command, providing you with the knowledge to enhance your Zimbra email system management. How to Manage Mailbox Folder using zmmailbox command in Zimbra . zmmailbox command for mailbox manager. It's useful for admin. in this post will brief how to get all folder, empty, delete subfolder/folder in zimbra. Using zmmailbox command in Zimbra How to get all folder using zmmailbox command. [zimbra@mail ~]$ zmmailbox -z -m  huupv@mail.huuphan.local gaf The output:         Id  View      Unread   Msg Count  Path ----------  ----  ----------  ----------  ----------          1  unkn           0          

How to check zimbra account status

Introduction Monitoring the status of Zimbra accounts is crucial for maintaining a secure and efficient email system. Regularly checking account status helps administrators detect issues such as inactive or compromised accounts, ensuring the integrity of the organization's communication. In this article, we will guide you through the steps to check the status of Zimbra accounts, providing you with the necessary tools to manage your email system effectively. How to check zimbra account status? How to know zimbra account status pending. How to know zimbra account status active, closed, locked, maintenance. In my post, one bash script get all zimbra account status and zmaccts commands another. Links to below you maybe likes: zimbra custom spamassassin rules How to create auto Bcc for Recipient mails for Zimbra 8.6 How to add spam filters on zimbra 8.6 How to create auto Bcc for sender mails for Zimbra 8.6 list accounts that has not logged in for the last x days in zimbra Metho

How to edit Undelivered Mail Returned to Sender on zimbra

Introduction Handling undelivered emails effectively is vital for maintaining smooth communication within an organization. When emails are returned to the sender as undeliverable, it can cause confusion and disrupt workflows. Zimbra allows administrators to edit the "Undelivered Mail Returned to Sender" message, providing a more informative and customized response to the sender. In this article, we will guide you through the process of editing these undelivered mail messages in Zimbra to enhance your email system's efficiency and user experience. How to edit  The failure template is used when mail is returned to the sender, How to edit Undelivered Mail Returned to Sender. Links to below you maybe likes: zimbra custom spamassassin rules How to create auto Bcc for Recipient mails for Zimbra 8.6 How to add spam filters on zimbra 8.6 How to create auto Bcc for sender mails for Zimbra 8.6 list accounts that has not logged in for the last x days in zimbra The below command

How To Install CBPolicyd on Zimbra 8.6

Image
Step 1: To active cbpolicyd on zimbra 8.6 $su - zimbra $zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd Step 2: To acctive cbpolicyd webui cd /opt/zimbra/httpd/htdocs/ && ln -s ../../cbpolicyd/share/webui vim /opt/zimbra/cbpolicyd/share/webui/includes/config.php To add " $DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb ";" in config.php file. The ouput: #$DB_DSN="mysql:host=localhost;dbname=cluebringer"; $DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb"; $DB_USER="root"; #$DB_PASS=""; $DB_TABLE_PREFIX=""; Step 3: To restart services su - zimbra -c "zmcontrol restart" su - zimbra -c "zmapachectl restart" Step 4: To access cbpolicyd webui. http://IP-OF-Zimbra:7780/webui/index.php

How to install and configure zimbra proxy HA

Image
When you create multi server, and you want to deploy zimbra proxy in DMZ. To use zimbra proxy HA, then you use keepalived use VIP. Many other solution. Lab environment Server Mail Proxy 01 IP:  192.168.10.10 VIP:  192.168.30.30 DNS Name: proxy01.huuphan.com zimbra_server_hostname: mail.huuphan.com Server Mail Proxy 02 IP:  192.168.20.20 VIP:  192.168.30.30 DNS Name: proxy02.huuphan.com zimbra_server_hostname: mail.huuphan.com Step 1: To instal keepalived #yum update -y #yum install -y keepalived Step 2: To configure keepalived  To refer install and configure keepalived  Zimbra proxy01 Master Server global_defs {   notification_email {     admin@huuphan.com   }   notification_email_from vrrp_proxy01@huuphan.com     smtp_server mbx.huuphan.com # mbx.huuphan.com mailstore     smtp_connect_timeout 30 } vrrp_script chk_nginx_service {     script "killall -0 nginx"     interval 3 } vrrp_instance VI_1 {     interface eth0     state MA

Script to prepare necessary package for install zimbra 8.6

Image
Script to prepare necessary package for install zimbra 8.6 #!/bin/bash #Author: Phan Van Huu #Blog: huuphan.com RED='\033[0;31m' BLUE='\033[0;34m' NC='\033[0m' #No color ############## Prepair for install Zimbra(OS: Centos 6).################# ifconfig | grep "inet addr" && route | grep default #echo -e "$BLUE ############## Prepair for Zimbra(OS: Centos 6).################# $NC" #echo -e "" echo -e "$BLUE 1.Input IP address for server. $NC" read IP1 #echo -e "" #echo -e "$BLUE 2.Input netmask for server. $NC" #read NETMASK1 #echo -e "" #echo -e "$BLUE 3.Input gateway for server. $NC" #read GATEWAY1 #echo -e "$BLUE Input interface (Ex: eth0) : $NC" #read INTERFACES1 #echo "" #echo -e "$BLUE 4.Input DNS2 (Ex: 8.8.4.4). $NC" #read DNS2 #echo -e "" echo -e "" echo -e "$BLUE 2.Input DNS1 (Ex: 8.8.8.8

How to Restrict Sending to Distribution list in zimbra mail

Image
Introduction Managing email distribution lists efficiently is crucial for maintaining effective communication within an organization. Zimbra provides various features to help administrators control who can send messages to specific distribution lists, ensuring that only authorized users can use this function.  In this article, we will guide you through the process of restricting sending permissions to distribution lists in Zimbra , helping you maintain a streamlined and secure email system. How to Restrict Sending to Distribution list in zimbra mail. in my post, i'm use to zimbra 8.6 open source edit. Links to below you maybe likes: zimbra custom spamassassin rules How to create auto Bcc for Recipient mails for Zimbra 8.6 How to add spam filters on zimbra 8.6 How to create auto Bcc for sender mails for Zimbra 8.6 list accounts that has not logged in for the last x days in zimbra Step 1:  if you have not distribution list, you can create distribution list as bellow. $zmprov c

How to Install and Configure Zimbra 8.6 Multi master ldap

Image
How to Install and Configure Zimbra 8.6 Multi master ldap, my post install multi master ldap, the script for zimbra 8.6 multi-master ldap. Zimbra ldap01 Hostname: ldap01.huuphan.local ip address: 192.168.131.15 Zimbra ldap02 Hostname: ldap02.huuphan.local ip address: 192.168.131.16 you can how to install and configure zimbra multi server Enabling Multi-Master Replication on zimbra ldap01 #su zimbra $ cd /opt/zimbra/ $./libexec/zmldapenable-mmr -s 1 -m ldap://ldap02.huuphan.local:389/ $zmlocalconfig -e ldap_master_url="ldap://ldap01.huuphan.local:389 ldap://ldap02.huuphan.local:389" $zmlocalconfig -e ldap_url="ldap://ldap01.huuphan.local:389 ldap://ldap02.huuphan.local:389" Installing a secondary Master ldap02 server The first, Two ldap01 and ldap02 the same password. From ldap01 $zmlocalconfig -s | grep passw | grep ldap Let's go install ldap02. ./install.sh The ouput [root@ldap02 zcs]# ./install.sh Operations logged to /tmp/in

How to install zimbra proxy

Image
in this post, to use zimbra 8.6."How to install zimbra proxy". To prepare the package for install zimbra proxy via to  how to install and configure zimbra multi server .  To step by step as the below: Zimbra proxy install two package: zimbra-proxy and zimbra-memcached Download and install the zimbra open source #wget -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz -O zimbra-8.6.0_GA.tgz #tar zxvf zimbra-8.6.0_GA.tgz #cd zimbra-8.6.0_GA # ./install.sh The output: Operations logged to /tmp/install.log.1225 Checking for existing installation...     zimbra-ldap...NOT FOUND     zimbra-logger...NOT FOUND     zimbra-mta...NOT FOUND     zimbra-dnscache...NOT FOUND     zimbra-snmp...NOT FOUND     zimbra-store...NOT FOUND     zimbra-apache...NOT FOUND     zimbra-spell...NOT FOUND     zimbra-convertd...NOT FOUND     zimbra-memcached...NOT FOUND     zimbra-proxy...NOT FOUND     zimbra-archiving...NOT FOUND