You probably have heard that you can use Gmail to filter spam for all your email addresses. You might have gone so far as to look up how to do it and end up a little frustrated because your not a server whiz and rely on cpanel to set up filters. The reason your having problems is because Cpanel is a bit different than a vanilla Linux install.
Quick OverviewGmail has very effective spam filters that we can utilize to filter our non Gmail email. There are many ways to set up filtering with Gmail with Cpanel. One way to do this is to A second way to do this is to forward all email to Gmail and allow Gmail to send email as your original domain. Allowing another server to email on your domains behalf is called “relaying” and done wrong can be a source of spam. Smartly Google requires a special server setup that tells them they have permission to send email on your domains behalf. The setup is calledshell access then this option might be best for you. I chose not to use this though because don’t want to be set up a series of rules at Gmail and on your server to filter your email. The first rule is set on your server and forwards your email to your Gmail account if its not been filtered yet. The second rule is setup at Gmail to forward email to your email server if its for your domain. The last rule is on your server that checks if the emails been to Gmail yet and then routes it to the appropriate mail box. This option works great but requires here. Then I added the rule at Gmail to forward my mail back to my server.
Here is an example of my setup:
In the file “/etc/vfilters/web-professor.net”:
In my Gmail account I went to the Settings page and then to the Filters tab. I set a filter that causes Gmail to forward all email addressed to a the domain “web-professor.net”, and keep a copy in Gmail's inbox. To do it yourself just go to the advanced filters and enter your domain in the “to” field (no need for wildcards). Then select forward for the action and fill in the email address.
The ResultsFor the first couple of hours Gmail let through most spam but after marking the bad stuff off and on it catches most of it. For me that means it stopped ~2000 spam mails and let ~5 through this morning. To contrast these results with my previous spam filtering I was receiving ~80 spams messages a day. With some more training I am confident that those numbers will get even better.
PostscriptI hope this helps you set up Gmail filtering for yourself. I am sure there are other ways to do this this is just how I solved it. Also not that the solution I posted sends all the email back to one email address. That might not work for you if not then take a peek at the
Found an error or have a suggestion? Let us know and we'll review it.
Suggest a Correction





No comments yet. Be the first to comment!