Posts

Showing posts from March, 2017

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      

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 /etc/httpd/ssl/owncloud.key     DocumentRoot /var/www/html/owncloud/     <Directory /var/www/html/owncloud>         Options FollowSymLinks MultiViews    

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