Gmail search top level domain but not search in sender id

gmailgmail-filters

I'm being spammed a lot lately from *@*.in domains
I know how to create a filter so I can auto-delete those messages.
But I need a search that only searches in the mail address.

for example, if I use from:*.in I do get all the *@*.in emails but I also get emails where the sender name contains in.

How do I exclude the sender name from the search?
Or search only in the email address?

Best Answer

This is a result of Gmail ignoring periods (".") in email addresses, a function. You may need to build a filter targeting all the email addresses from whom you receive the offending messages:

from:spam@linked.in OR spam@registry.in OR ...

A pain, I know, but given Google is unlikely to change how the period is interpreted, it may be your only option.