Gmail – How to Filter by a Catch-All Address

gmailgmail-filters

Does anyone fathom how to setup a Gmail/Google Apps Mail filter that catches ALL destinations to a particular domain?

I've tried

deliveredto:*@mydomain.com

and

deliveredto:@mydomain.com

in the "Has the words" field but neither work.

Similar to this question except not specific to any complete address (only the domain is constant in my case, the user/account part before the @ is unpredictable):
Is it possible to create a Gmail filter that works on headers other than From, To, Subject?

I already have another filter setup to catch and forward *@mydomain.com in the To: field; that works fine.

Best Answer

deliveredto:"@mydomain.com"

Not sure why this works when the others don’t, but the quotes act as some kind of delimiter.