Sometimes, we need the mail logs to find out the reason why the mails has been bounced back. The following script will help you to find the same. Actually, this type of script needed for the server which is used for email marketing application.   As most of the email… Continue Reading Script to identify the reason for bounced back emails

Introduction ConfigServer eXploit Scanner (CXS) is a commercial malware and exploit scanning tool commonly used on cPanel/WHM servers. It helps identify malicious files, suspicious scripts, and potential security threats within hosting accounts. This article explains how to create a simple shell script that performs a CXS scan of all cPanel… Continue Reading Scan the Server Using CXS and Email the Report

Introduction Regular database backups are essential for protecting your data and ensuring quick recovery in the event of data loss. If you maintain an FTP server for offsite backups, you can automate the process of backing up all MySQL databases and uploading them daily. This guide demonstrates a simple shell… Continue Reading FTP Backup Script for All MySQL Databases

Introduction When working with configuration files, scripts, log files, or text documents, you may encounter unwanted leading spaces before specific words. These extra spaces can affect formatting, cause parsing issues, or result in errors in scripts and configuration files. Linux provides several command-line utilities, such as sed, awk, and perl,… Continue Reading How to Remove a space in front of a word in a file

Introduction Renaming multiple files one by one can be a time-consuming and error-prone task, especially when working with a large number of files. A for loop in a shell script allows you to automate this process by iterating through every file in a directory and applying a consistent naming pattern.… Continue Reading Using For Loop to Rename All Files in a Folder

Introduction This script uses ClamAV (clamscan) to scan all cPanel user directories for malware and sends an email alert if infections are found. It can be scheduled via cron for regular automated scanning. Prerequisites Before using this script, ensure: Script How to Schedule via Cron Daily Scan Add: Runs daily… Continue Reading Automated ClamAV Virus Scan Script with Cron (cPanel Server)