Keyword Filter for forwarded emails


#1

I have problems applying filters to emails forwarded from an external server (such as Gmail).

Let’s say I have 2 “forward-only” emails set up in DreamHost:
a@domain.com -> email@domain.com
b@domain.com -> email@domain.com

I can successfully apply filters on these, so that any emails coming in through "a@domain.com" will go to a folder named “A”, and any emails through "b@domain.com" will go to a folder named “B”.

However, I have another “forward-only” email set up:
c@domain.com -> email@domain.com

Now, I don’t directly receive emails to this address, but I’ve set it up to catch forwardings from Gmail. So, it’s like this:
email@gmail.com -> c@domain.com -> email@domain.com

The problem is that I can’t find a way to filter these emails, so that they will be moved to a folder “C”.

I have tried setting up a “To” filter for both "c@domain.com" and "email@gmail.com", but to no effect.

Could someone give me some tips on how to set this up?

Thank you.