Forwarded Emails (From Hostgator) Are not Delivered to Gmail

BACKGROUND:
We have recently advised one of our client to buy VPS hosting from Hostgator, as many of our previous clients have used the hostgator successfully for VPS hosting. The client bought the hosting but faced many issues. But the biggest problem was not getting the response to tickets. Anyway, let’s get to the specific issue quickly.
 

WHAT WAS THE PROBLEM:
The client had set up the emails forwards (on hostgator hosted emails) to the gmail email account. So the issues was:
 
Not all forwarded emails  (email hosted on hostgator for hosted domains) were getting delivered to the forwarded gmail email address. Mainly automatic emails from websites and many other emails were not forwarded (although they were received in the hostgator hosted email address.).
 

TROUBLESHOOTING
It was found that the email address were being forwarded to the gmail but gmail was rejecting the emails thinking they were spam.
 

SOLUTION
Instead of forwarding the email address, we advised the client to configure email account import in gmail, which solved the problem.
 

For more details you can view this page:
https://support.google.com/mail/answer/21289?hl=en

Why Inodes On My Server Are Running Out So Fast?

We have encounterd this situation many a times on our servers, when all the inodes are used and websites stop working. Even the WHM panel stops working. This is really bewildering situation to be in.

Why It Takes Place:
In 90% of the cases, we have found that the reason is SPAM. One of the domains hosted on your server was generating spam. That spam mesages were not delivered to the supposed email address so were being stored on the server. The volume of messages was so much that the server choked!

How to enter the server when WHM panel is not working:
You can enter the server through SSH login on command line or through parallel plesk panel (hostgator provides it with VPS hosting).

How to find the folder with excessive number of files on server:
You have to have access to the SSH console to follow the below given steps.
Also these steps apply if you are using exim4 as your mail server:

Execute the following shell commands on your server remote console.
$ cd /
$ for i in *; do echo -e “$(find $i | wc -l)\t$i”; done | sort -n

It will take sometime to display results so wait for results. It will list all the main folder along with their file counts. You can go into the folder (cd to the folder) that is found to have too many files & execute the same command again. In this way, you can narrow down on the required folder.

You will find large number of files in “input” and “msglog” folder as described here:
http://forums.cpanel.net/f43/large-number-small-files-filling-out-var-spool-exim-input-directory-405811.html

How to fix it?
Delete all the files inside the input folder and msglog folder:

Follow this article to know how to delete all the files from directory including sub-directories
http://www.cyberciti.biz/faq/delete-all-files-folder-linux/

Thats all, you will find that a large number of inodes are freed up. But be aware to block or stop the spam from the suspect website.