How to Block spam using Gmail for Dreamhost users (Or anybody else) Part 1: Desktop Mail Clients

I use DreamHost to host this website as well as a few others. One of the biggest problems I’ve had while at Dreamhost is the terrible spam filtering they offer. Their version of SpamAssassain is both out of date and “hands-off”. Unless you go through hoops to install your own version on their servers, you are out of luck. I’ve spent so much time filtering my junk mail to make sure the real mail didn’t get caught, that I probably shouldn’t have bothered filtering at all.

In searching, I came across a really good idea on Justin Blanton’s site… use Gmail as a spam filter. I was really hoping that this would work, because I’ve never seen a spam message hit my Gmail inbox.

I use PocoMail as my desktop mail client, so the first version of this HowTo is going to be about configuring a Desktop Mail client ( Outlook, PocoMail, etc) How to go about it?

Using a Desktop Mail Client ( Outlook, Thunderbird, Pocomail )

This is my preferred way of accessing my email. I don’t particularly travel around much, and I use a laptop for everything, so it’s rarely a problem. It’s useful to be able to check your email from remote locations, but it’s not a regular thing for me. Seriously, stop the email addiction already!

This method turned out to be the easiest to implement… nearly a no-brainer. First, you need to create a throwaway Gmail account. I’ll leave that part up to you. Next, you need to go into Dreamhost’s control panel and turn off the spam filtering if you already have it on. Navigate to Mail \ Junk Filter and make sure your setting looks like this:

If you don’t turn off the DreamHost spam filtering, it will continue to block legit mail…. and our goal is to never check it again.

Next, you’ll want to navigate to Mail \ Manage Email and click the “Edit” link on your email address in the list. Here’s where you get to forward a copy of your mail over to Gmail for spam filtering. The screen should look something like this when you are through:

You can choose whether or not to make this a forwarding-only account or not. If you do make this a forwarding account, then you will have to send outbound email via Gmail’s SMTP server. It’s really up to you if that’s what you feel like doing.

Alright, now that we have that set up, emails will start flowing into your Gmail account from your normal email address, and the spam will magically be filtered. Life is definitely improving! But we still need to get our email from Gmail…. so head on over to your Gmail account, and go into the settings panel. Click either of the “Enable POP…” links, and hit Save Changes:

Now, our spam filtering is nearly finished. The only problem is that our desktop mail client is downloading from the old Spam-filled Dreamhost email servers, instead of our shiny new inbox free of junk mail. Good thing this will be a minor change! All we need to do is change our Incoming mail server to these settings:

Incoming Server: pop.gmail.com

Username: yourgmailaddress@gmail.com

Password: duh?

SSL / TLS / Enable Secure Connection: Yes!

Port: 995

All of these settings are available on Google’s POP Access page in their Help Center.… You could just read those, but I’ve got screenshots!

For PocoMail:

For Outlook Mail:

This is for Outlook 2003. If you are using anything older than that, then you are already wasting your time and you deserve junk mail. You can leave now.

For the rest of you, go into Tools \ Accounts, click your POP email account, and hit the Change button. You’ll see this screen, where you can enter in your Gmail information:

One thing that you will need to change, and this is important… Click the More Settings button, and click the checkbox for SSL on the advanced tab. The port should default to 995, which is the right port.

I still use the Dreamhost servers for sending email outbound, so I didn’t change my outbound server. You can also use the Gmail SMTP server if you feel like it.

So there you are. You are now free of spam. In 2 days of having this setup, I’ve seen 200 emails end up in the Gmail spam filter, without a single false-positive. I am feeling a little bit of sadness, though, because I really enjoyed bitching about all the spam. Now I have to go and find something legitimate to bitch about….

Note: I’ve been asked by a few of the people that I work with to help them setup Gmail spam filtering for their webmail client, so check back for Part 2 of the series soon, where I’ll laugh at SquirrelMail’s name.

11 Responses to “How to Block spam using Gmail for Dreamhost users (Or anybody else) Part 1: Desktop Mail Clients”

  1. Josh Says:

    I’ll test this out in a moment to see, but what would happen if instead of checking the Gmail account through a POP client you just set it to forward to a different email address on your domain?

    It probably just adds an unnecessary step to the whole process, but if you’d really prefer to use IMAP over POP and/or to have your email on your Dreamhost server it would seem to fit the bill.

  2. Johnny Says:

    Josh,

    To get that working, you’d forward your mail from your real dreamhost address to the gmail server, and then forward it back to a fake dreamhost account.

    In the squirrelmail settings, you can set the reply-to address on the fake account to the one for the real account. You’d just login to the fake account from then on.

    On another note, you might want to try the Gmail Hosted model… google.com/hosted

    I switched over to that on another account, and I’m really loving it.

  3. Brian Says:

    I’ve been using the same solution Johnny is talking about for a year now. Works great. Only catch is that you have to export your contact list (of email addresses) to Gmail so that they can use that as a White List.

    Instead of creating POP accounts on Dreamhost, it’s simply a forwarding machine for me now.

  4. stacy Says:

    hello. I surfed in and am eagerly awaiting part 2! dreamhost’s spam situation is making me insane.

  5. paul Says:

    What a great idea! I’m also looking forward to your part 2 because Dreamhost’s spam situation is making me insane as well.

  6. Dustin Says:

    Hey Johnny

    I was wondering if you knew if GMail posted their APIs somewhere. I thought it would a cool extension to mail servers to add GMail filtering.

  7. Henrik N Says:

    Thanks for this.

    In the squirrelmail settings, you can set the reply-to address on the fake account to the one for the real account. You’d just login to the fake account from then on.

    Seems if you set the “E-mail Address” at Options: Personal Information in SquirrelMail, that will be displayed as the sending address, and will be what you reply to. Setting the reply-to would still have your mails appear to come from me.filtered@example.com, though replies would go to me@example.com.

  8. mucha Says:

    I don’t really consider this a solution, all you are doing is forwarding spam to another gmail address, it’s not blocking at all,

  9. xcbs Says:

    “World out of print” Zhangjiajie is Qingli build China is the world’s Convention and Exhibition Centre and the world tourist destination. http://www.laizjj.cn/

  10. Liam Says:

    By setting it up like this in Microsoft Outlook, will this display the @gmail address and not your actual @domainname.com email address when you send out an email?

    The spam I get through Dreamhost is incredible, however I would like to still display to the recipient that I am using my @domainname.com and not @gmail.com when I send an email out. (By not using a ‘reply-to’)

    Any help appreciated.

    Liam

  11. Ryan Says:

    as was previously mentioned… dreamhost supports useing gmail for all your domains e-mail by default.. I HIGHLY recommend this… as it allows much more customizability.. you could recieve e-mail in multiple locations or recieve it in a e-mail client at home and then go out some palce and really need to check a message… well YOU CAN cause its all saved online even if your e-mail client “deleted” it :p

Leave a Reply