Posts

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                  ...

curl: (35) SSL connect error

Image
How to solve problem " curl: (35) SSL connect error " For example, curl command to https://huuphan.com error and appear code 35 error as below [root@huupv httpdocs]# curl -v https://huuphan.com * About to connect() to huuphan.local port 443 (#0) *   Trying xxx.xxx.xxx.xxx... connected * Connected to huuphan.com (xxx.xxx.xxx.xxx) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb *   CAfile: /etc/pki/tls/certs/ca-bundle.crt   CApath: none * NSS error -5990 * Closing connection #0 * SSL connect error curl: (35) SSL connect error Solve problem: To update curl and nss package For centos: # yum update curl nss For ubuntu: #apt-get update curl nss

Mastering xdotool − command−line X11 automation tool

Introduction Discover how to automate tasks on Linux using xdotool , the powerful command-line tool for X11 automation. Learn how to install xdotool , create scripts, and explore practical use cases. Optimize your Linux workflow with expert insights in this comprehensive guide. In the Linux ecosystem, the ability to automate repetitive tasks can significantly enhance productivity and efficiency. One of the most versatile tools available for automating tasks within the X11 graphical environment is xdotool . Whether you're looking to simulate mouse and keyboard actions, move windows, or execute complex workflows, xdotool provides the flexibility you need to streamline your operations. This guide will walk you through the process of installing xdotool on popular Linux distributions, demonstrate how to create simple yet powerful scripts, and explore real-world applications of this tool. By the end of this article, you'll have a solid understanding of how to use xdotool to impro...

How to owncloud 9 install ssl certificate centos 7

Image
How to owncloud 9 install ssl certificate centos 7. in the previous, how to install owncloud 9 in centos 7 To install  mod SSL #yum install mod_ssl To create new certificate #mkdir /etc/httpd/ssl #openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/owncloud.key -out /etc/httpd/ssl/owncloud.pem Adjusting /etc/httpd/conf.d/owncloud.conf file <VirtualHost *:80>     DocumentRoot /var/www/html/owncloud/     Redirect permanent / https://172.16.235.145/     <Directory /var/www/html/owncloud>         Options FollowSymLinks MultiViews         AllowOverride ALL         Order allow,deny         allow from all     </Directory> </VirtualHost> <VirtualHost *:443>     SSLEngine on     SSLCertificateFile /etc/httpd/ssl/owncloud.pem     SSLCertificateKeyFile...

How to install owncloud 9 on centos 7

Image
In this guide, we'll walk you through the steps to install OwnCloud 9 on a CentOS 7 server using a bash script. OwnCloud is a powerful open-source platform for file sharing and data synchronization that allows you to manage your files securely. Prerequisites Before we start, make sure you have the following: A CentOS 7 server with root access. Basic knowledge of using the command line. Steps to Install OwnCloud 9 on CentOS 7 Here's how you can set up OwnCloud 9 on your CentOS 7 server: 1. Update CentOS 7 The first step is to ensure your system is up to date. Run the following commands: Copy code #!/bin/bash # Update CentOS 7 echo -e "Updating packages for CentOS 7\n" yum install -y vim wget yum -y update This will install essential packages like vim and wget , and update your system to the latest package versions. 2. Install MariaDB Server MariaDB is a popular database server that OwnCloud will use to store data. Install and configure MariaDB with the following ...

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 --------...

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 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

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