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 an existing Linux server that already processes incoming email using some custom email handling scripts (in Perl) that do somewhat complex processing such as routing certain special addresses to a list of external email addresses that are looked up in a mySql database. In the end all email processed on this server ends up being forwarded off the site... no users access the site itself to read their email.

I would like to add Google as a spam filtering layer to this system. The problem is that if I specify Google as an MX handler for my domain, it is not clear how I would get Google to send the mail (after spam filtering) to my server to process, and how I would get Google to retain all the "To:" addresses unchanged so that the existing scripts on my server can work with as little change as possible.

If there are any online resources that address this situation, I would appreciate some pointers.

share|improve this question

migrated from Oct 3 '11 at 16:24

This question came from our site for power users of web applications.

Your Answer


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

Browse other questions tagged or ask your own question.