Posts

Showing posts from February, 2017

How to running cron job every 5 minutes,seconds,hours,days

Image
How to running cron job every 5 minutes,seconds,hours,days. How to running a script a specific interval using cronjob in linux.  To execute a cronjob every 5 minutes */5 * * * * /home/huupv/script.sh To execute a cronjob every 5 hours 0 */5 * * * /home/huupv/script.sh How to running a job every 5 seconds $ cat every-5-seconds.sh #!/bin/bash while true do  /home/huupv/script.sh  sleep 5 done $ nohup ./every-5-seconds.sh & To execute a cronjob every 5th weekday 0 0 * * 5 /home/huupv/script.sh or 0 0 * * Fri /home/huupv/script.sh 0=Sun 1=Mon 2=Tue 3=Wed 4=Thu 5=Fri 6=Sat

How to edit Undelivered Mail Returned to Sender on zimbra

Image
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 to login as zimbra user. To check bounce_template_file. $postconf |grep bounce_template_file To copy bounce.cf.default to bounce.cf $cd /opt/zimbra/postfix-2.11.1.2z/conf $cp bounce.cf.default bounce.cf To configure bounce.cf file $postconf -e bounce_template_file="/opt/zimbra/postfix-2.11.1.2z/conf/bounce.cf" $postconf |grep bounce_template_file To check bounce.cf file $postconf -b bounce.cf The content of bounce.cf file $cat bounce.cf To edit message red highlighted as below # # Do not edit this file. This file shows the default

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 {     [email protected]   }   notification_email_from [email protected]     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