Gmail is failing to catch many spam messages a day from addresses like "[email protected]" All are .ml addresses and have the same sender "name". I've reported them as spam but they keep bypassing the spam "filtering" that Google does.

Is there a way to set a filter to send all .ml address email to spam? I have no-one who emails me from Mali and it's obviously spammers.

1 Answer 1


You can not filter by TLD in HTML Gmail.

However, while you are asking to filter by TLD, you indicate that "all... ...have the same sender name." If that is indeed the case, you can filter based on the sender name.

Create a Filter using the sender name

Per Gmail: Create rules to filter your emails

  1. Open Gmail.
  2. In the search box at the top, click Show search options image_1.
  3. Enter your search criteria.
    If you want to check that your search works correctly, test it by clicking Search.
  4. At the bottom of the search window, click Create filter
  5. Choose what you’d like the filter to do.
  6. Click Create filter.

Create filter

  • Doesn’t answer the question
    – roman
    Sep 30, 2022 at 23:45
  • 1
    It does answer the question Roman. The answer is No ("You cannot filter by TLD in HTML Gmail")
    – Blindspots
    Mar 7 at 19:14
  • 1
    @BlindSpots Thank you for your time you have spent enriching this answer with a screencast. It adds great value to it, but on the other hand it exploits your private message titles and Inbox content to the public (you can run this GIF in any player, browser or viewer that allows it to be stopped at first frame or you can convert it to any non-animated format and the first frames becomes very readable). For your own privacy and security reasons I'd consider reuploading this screen cast with a background blurred .
    – trejder
    Apr 13 at 8:04
  • 1
    @trejder I really appreciate the sound warning! In this case, the image is from the linked support page. I have updated the image in question to link back to the source support page in hopes of avoiding a similar concern in the future.
    – Blindspots
    Apr 14 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.