Gmail forwarding

I have a few old Gmail and Google Apps mail accounts that I’m forwarding to a shiny new domain. This works great, and it forwards everything received at the old accounts to the new accounts, except for anything it flagged as spam. Unfortunately, Google’s spam filter has a fluctuating false-positive rate which is pretty high for me. What can you do to bypass the spam filter?

Gmail’s filtering system is fantastically powerful. It’s also the solution to this problem.

  1. Create a new filter: use the “doesn’t have” field and put the EICAR anti-virus test string in there X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
  2. Select these options for the filter: “Forward it to”, “Delete it”, “Never send it to Spam”
  3. Now that you’re done creating this filter, disable your account’s normal forwarding mechanism if you’ve already set it up

Gmail might complain that the filter will never match an incoming email. Ignore it. The cake is a lie. And because Google rejects viruses prior to delivery (actually, prior to its SMTP server closing a connection to an inbound email), this filter will match all mail that could possibly be delivered to your account. And it’ll tell Gmail that it’s not spam, and forward it to your new address. And then it’ll delete it for good measure.

This entry was posted in Pub. Bookmark the permalink.

Leave a Reply

Your email address will not be published.