Archive for January, 2013

Qouta issue in Cpanel and Server

Different qouta sizes shown in Cpanel and Server An example for the issue is : Cpanel Disk usage: User: test Disk Space Usage 222.21 Megabytes In Server root@server[/home]# du -shc test/ 59M test/ 59M total Solution ====== 1)Login to the server: root@server [~]# 2)Run the following scripts: /scripts/resetquotas /scripts/fixquotas 3)If its not successful i.e if […]

Leave a comment

DDos attacks or Dos attacks

To see the number of connections : netstat -lpna |grep :80 |wc -l To see the number of connections and IP addresses : netstat -lpna |grep :80|awk ‘{print $5}’ |cut -d: -f1 |sort |uniq -c |sort -n If huge number of connections are coming from a particular IP, i.e greater than 50 connections , we […]

Leave a comment

Spamming

Incoming spam attack can be reduced by setting the “catch-all” parameter as fail. ==================== WHM >>Main >> Server Configuration >> Tweak Settings:(Under “Mail” section) Under WHM >> Main >> Exim Configuration, we can enable RBL and spamassasin to reduce the attack Spams sent from the server (outgoing attack) ps -C exim -fH ewww |grep home […]

Leave a comment

To point MX record to an IP

MX record cannot be directly pointed to an IP For example example.com. 14400 IN MX 0 10.10.2.55 is wrong. Steps follows : An A record must be difned for the IP 10.10.2.55 first. test.example.com. 14400 IN A 10.10.2.55 After that we must point MX record to that IP example.com. 14400 IN MX 30 test.example.com.

Leave a comment

Automatically delete old emails using CPanel

1. Click on the Cron jobs icon in your cpanel 2. Open the cron manager. 3. To delete all the emails under your default account that are older than 10 days, We acan setup a cron that runs during a particular time everday To do this enter the following information in the following fields: Minute: […]

Leave a comment

Check history with timestamp

In order check the history with the time stamps, you need to run the following command in the console. ===== export HISTTIMEFORMAT=”%F%T” ===== After that, check the history using the history command. Enjoy.. 🙂

Leave a comment

Install chkrootkit

Determine whether the system is infected with a rootkit chkrootkit   examines   certain  elements  of  the  target  system  and determines whether they have  been  tampered  with.  Some  tools  which  chkrootkit  applies while analyzing binaries and log files can be found at /usr/lib/chkrootkit. What is ROOTKIT:- A rootkit is a stealthy type of software, often malicious, designed […]

Leave a comment