Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a domain that has its email hosted by Google Apps. This domain is similar (it's the .com while the real ISP is a .net) to an old major ISP and the count in "Spam" folder for the catch-all account is constantly almost a million emails per 30 days. Not only does the domain receive misaddressed emails, it receives all of the misaddressed Spam too. It receives so much Spam that Google sometimes get overwhelmed (or they decided to punish us) and will sometimes bounce legitimate emails as well as Spam.

So, what I'd like to do is have a Ubuntu VPN running Postfix filter out as much spam as possible. A small number of addresses and variations receive a huge proportion of the bad email, so it will be easy to filter a lot of this out.

Here is what I'd like to do:

  1. Emails that get sent to go to my VPS at
  2. Postfix on deletes a huge percentage of the Spam
  3. takes the email that is left, and sends it over to Google.
  4. Google routes the email to the correct email box.

Is this possible? And, if so, can anyone give me a walkthough on how I can implement this?


share|improve this question
up vote 2 down vote accepted

Sure that is possible. I don't know the exact details you would need for Postfix, but Google describes this basic setup on this page.

share|improve this answer
I actually spent a lot of time searching for this earlier. I guess I needed to specify "inbound" in my queries. – messick Oct 11 '09 at 19:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.