search=”123″ tar -tf one.tar | while read filename do if [ -f “${filename}” ] then mv “${filename}” “${filename}.sav” fi # tar -xf one.tar “${filename}” # found=`grep -l “${search}” “${filename}”` if [ ! “${found}””X” = “X” ] then echo “Found \”${search}\” in \”${found}\”” grep “${search}” “${filename}” echo “” fi # if… Continue Reading Script to grep a word inside a tar file

How to find roundcube version provided by the cPanel?The roundcube version provided by the cPanel is 0.5.4. === -bash-3.2# cat /var/cpanel/roundcube/version 0.5.4.cp11130.1-bash-3.2# ===cPanel dicument regarding the roundcube ==== http://docs.cpanel.net/twiki/bin/view/AllDocumentation/RoundcubeReadme ==== Upgrade rouncube version /usr/local/cpanel/bin/update-roundcube –force cd /usr/local/cpanel/base/3rdparty/ mv roundcube roundcube-backup wget http://softlayer.dl.sourceforge.net/project/roundcubemail/roundcubemail/0.6/roundcubemail-0.6.tar.gz tar -zxf roundcubemail-0.6.tar.gz mv roundcubemail-0.6 roundcube cp roundcube-backup/config/main.inc.php… Continue Reading Find roundcube version provided by the cPanel and upgrade the roundcube

http://www.dusanvuckovic.com/information-on-bounced-messages-ndr-codes/ These are the ASSP spam filtere bounce back mails code Please note, that each bounce message is different. Therefore, information relating to addresses, IP numbers, and domain names listed below will differ from what listed in your header information. If you have received a bounce message (NDR: Non-Delivery Report)… Continue Reading ASSP and other mail bounce back number

http://www.sorbs.net/mailsystems/exim4.shtmlExim 4.x is a lot more configurable and hence there is more detail to add… These entries are normally added to the acl_rcpt ACL in the exim.conf file. The default/example exim configuration should contain an example similar to these. To deny access, using a normal DNSBL with TXT records. deny… Continue Reading configure exim + sorbs RBL blacklist

Installation ========= wget http://www.rfxn.com/downloads/maldetect-current.tar.gz tar -xzvf maldetect-current.tar.gz cd maldetect-* sh install.sh After running the install script , the installation will complete with in seconds and you will be provided with successful installation output, in this information some of the main configuration and usage related information provided is   below :installation completed… Continue Reading Maldet scanner for cPanel

This Post will help you in setting Max Emails allowed per hour in various Levels: To set the Value Server Wide: You can set the value in the following file in the case of cPanel: ===== /var/cpanel/maxemailsperhour===== You can set this limit at the user level by editing the following… Continue Reading cPanel max emails per hour, max emails per domain

Prompt for Username and password when accessing the site in Plesk:============================================ Issue : We may get a pop-up prompting for username and password when we access a site in the browser. Cause : The permission for the User will be wrong. Resolution : Please check whether ‘Plesk Domain user, Plesk… Continue Reading Site prompting for username and password when accessing in browser

You can check with the following command to see the opened/closed ports of a server: ======# nmap -P0 -T4 -sV -p- Server_IP_AddressStarting Nmap 5.00 ( http://nmap.org ) at 2012-02-16 06:28 ISTConnect Scan Timing: About 90.53% done; ETC: 06:47 (0:01:47 remaining) Interesting ports on xxx.xxxx.xx (Server_IP_Address): Not shown: 65480 filtered ports,… Continue Reading Command to check the opened/closed ports in a server

Now a days we are getting more DDOS issues. In order to track down the actual site undergoing the attack, following commands will help you. Find the IP to which connections are established: # netstat -plan|grep :80|awk {‘print $4’}|cut -d: -f 1|sort|uniq -c|sort -nk 1 This will give you IP… Continue Reading To troubleshoot DDOS

Script to check the load of all VPS from the main node: # for i in `vzlist |egrep -v ‘(VEID|CTID)’ |awk ‘{print $1}’`; do echo “For VEID $i (`vzctl exec $i hostname`) —>” ; vzctl exec $i w ; echo; doneInstead of “w” replace with the COMMANDS you need to… Continue Reading Script to check Virt VPS load (and other commands)