buy hypertropin

Archive for August, 2012


 Powered by Max Banner Ads 

check Inodes

Friday, August 31st, 2012

use this command for Inodes total
find * | wc -l

use this command to find which folder have max Inodes
for d in *; do echo -n “$d: “; find $d -type f | wc -l; done | sort -nk2 | tail -20

Comprase and Extract file in Linux

Sunday, August 19th, 2012

Comprase

tar -zcvf filename.tar.gz filename

Extract

tar -zxvf filename.tar.gz filename

Auto Delete Forwarded Emails in cPanel Web Host

Friday, August 10th, 2012

In web hosting account that are using cPanel web hosting control panel, users can create as many email accounts as they like with different aliases, and then forward the mails received to any address, inside or outside of domain. There are two ways to do email forwarding, that’s by Default Email Account which is not recommended as it acts as Catch All email account, where any email messages sent to an non-existence account on domain will automatically forward to this address, including all spam. Another way is by adding forwards for email address.

When a forwarder is added for a domain email address, all email received will be forwarded to the specified email address. However, if users have created an email account first before setting up a forwarder, the forwarder may not function properly and worse, the email account will still receive a copy of the email message, wasting precious storage space on the hosting server. The emails stored won’t be auto deleted or removed.

The workaround to this issue so that the emails as are ‘auto delete’ is to setup a forwarder without creating any email account. For example, if you want to forward all email messages that going to webmaster@domain.com to another email address, do not create an email account for webmaster@domain.com. When a forwarder is setup, it will handle the forwarding process properly, even though no email account for it exists.

How to add an email forwarder:

Click on Forwarders.
Click on Add Forwarder.
Then type the email address with the intended account name in the first column, and the destination forwarding email address that you want the mail forwarded to in the second field. The email address can be any, including external email address such as gmail, hotmail and etc. In the case the emails are been forwarded to another email on domain, care has to be taken so that the forwarding does not accidentally create an indefinite loop that can cause all email accounts to stop working on your domain.
Click on Add Forward button and the new forwarder will be activated immediately, without leaving any emails on the server, which is similar to auto deletion of mails from email accounts.