Gmail Wildcard Filters: How to Filter Emails by Domain
Most people filter Gmail one address at a time. That works until a single company is sending from marketing@, noreply@, billing@, support@, and alerts@ — all at the same domain. Creating individual filters for each one is tedious and incomplete, because there’s always another address you haven’t accounted for.
Gmail’s wildcard filters solve this. One rule catches every address at a domain, regardless of how many there are or how often new ones appear.
The Wildcard Syntax
Gmail supports the * wildcard character in filter criteria. To filter all emails from a domain, use this in the From field:
*@example.com
That’s it. This matches noreply@example.com, support@example.com, john.smith@example.com, and any other address at that domain. One filter, total coverage.
You can create this filter a few ways:
- Type
from:*@example.comin the Gmail search bar, then click Create filter - Go to Settings > Filters and Blocked Addresses > Create a new filter and enter
*@example.comin the From field - Right-click any email from that domain and create a filter from it, then edit the From field to use the wildcard
Watch Out for Subdomains
Here’s the most common mistake: *@example.com does not match subdomains like user@mail.example.com or user@news.example.com. These are technically different domains, and Gmail treats them that way.
If a company sends from subdomains, you have three options.
Option 1: Use OR to Match Multiple Domains
Combine several patterns in a single filter’s From field:
*@example.com OR *@mail.example.com OR *@news.example.com
This works well when you know which subdomains a company uses. The downside is that you need to know them in advance.
Option 2: Use a Broader Match in “Has the Words”
Instead of the From field, put this in the Has the words field:
from:example.com
Without the *@ prefix, Gmail performs a broader match that often catches subdomains. It’s less precise — it could theoretically match unrelated addresses if the domain name appears elsewhere in message headers — but false positives are rare in practice.
Option 3: Use the list: Operator for Mailing Lists
If the emails come from a mailing list, try:
list:example.com
This matches the List-ID header rather than the From address, which is more reliable for mailing lists and often covers subdomains automatically.
Combining Wildcards With Other Criteria
Wildcard filters become even more useful when you combine them with other filter options.
Filter a Domain but Keep Important Emails
Want to archive most emails from a vendor but keep billing-related ones in your inbox? Create a filter with:
- From:
*@vendor.com - Doesn’t have:
invoice OR payment OR receipt
This catches everything from the domain except emails containing those financial keywords.
Filter Multiple Domains at Once
If a parent company sends from several brand domains, combine them in one filter:
from:*@brand-a.com OR from:*@brand-b.com OR from:*@brand-c.com
One filter handles all of them.
Use Plus Addressing for Inbound Sorting
If you use Gmail’s plus addressing feature (like you+newsletters@gmail.com for signups), you can filter on the To field instead:
to:you+newsletters@gmail.com
This catches everything sent to that plus address regardless of the sender.
Practical Use Cases
Here are some of the most useful domain-level filters you can set up right now.
Block all email from a company. Create a filter for *@company.com and set the action to Delete it. Check Also apply filter to matching conversations to clean up existing messages too.
Auto-label client emails. Filter *@client.com and apply a label like Clients/ClientName. Optionally star them so they stand out.
Consolidate social media notifications. One filter, multiple platforms:
from:*@facebookmail.com OR from:*@x.com OR from:*@linkedin.com OR from:*@instagram.com
Skip the inbox, apply a “Social” label, and check it when you have time.
Archive automated reports. If your company’s internal tools send from a subdomain like reports.yourcompany.com:
from:*@reports.yourcompany.com
Skip inbox, apply a “Reports” label, mark as read.
A Note on Third-Party Senders
Some companies use services like Mailchimp, SendGrid, or Constant Contact to send their emails. The visible “From” address usually still shows the company’s domain (like newsletter@company.com), and Gmail filters match on that visible address — so *@company.com typically works fine.
If a filter doesn’t seem to catch everything, open one of the missed emails, click the three-dot menu, and select Show original. The full headers will reveal the actual sending domain, which you can add to your filter.
Also worth noting: be careful with domain filters for large shared platforms. Filtering *@gmail.com would catch every Gmail user on the planet, which is almost certainly not what you want. Domain filters work best for company-owned domains where you want to sort or block all mail from that organization.
Verifying Your Filters
After creating a wildcard filter, make sure it’s working:
- Go to Settings > Filters and Blocked Addresses and confirm the criteria look right
- Search for
from:*@domain.comin the Gmail search bar to see which existing emails match - If you applied the filter to existing conversations, verify those messages were moved, labeled, or deleted as expected
If something isn’t matching, double-check for subdomain issues — that’s the most common culprit.
Need Help With Google Workspace?
At 2Fifteen Tech, we help businesses get more out of Google Workspace — from inbox management and filtering rules to security settings and admin configurations. If your team is spending too much time managing email instead of doing actual work, we can help.