How to : Exim Remove All messages From the Mail Queue

Exim is a mail transfer agent (MTA) used on Unix-like operating systems. It aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail. For more information you can see Exim documentation. In this article Hostripples will show some commands to removing all messages from the Mail Queue. Please Follow the […]

Server Monitoring Scripts and commands

Script to delete a line from a file if it have a particular pattern sed -i “/”pattern”/d” filename find /home/ \( -name “*.php” -o -name “*.html” -o -iname “*.htm” \) -exec grep -l “nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn” {} \; -exec sed -i “/”nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn”/d” {} \; To find the connections to HTTP netstat -pan | sort +4 | grep […]

How to Clear cPanel Server logs ?

You can empty cPanel servers logs by using following commands Login into server as root root@server[#]vi logs echo > /usr/local/apache/logs/error_log echo > /usr/local/apache/logs/access_log echo > /usr/local/apache/logs/access_log echo > /usr/local/apache/logs/error_log echo > /usr/local/cpanel/logs/access_log echo > /usr/local/cpanel/logs/error_log echo > /var/log/exim_mainlog echo > /var/log/exim_rejectlog echo > /var/log/maillog echo > /var/log/messages echo > /var/log/messages.1 echo > /var/log/maillog.1 :wq! root@server[#]chmod […]