Is there a way to create a Gmail filter that sends the filtered items to the spam folder? There is an option to send it to a label, or to "Never send it to Spam" (which is ironic considering what I want to do).

I need this because I'm getting spam emails from a domain called libero.it, and Gmail's spam filter consistently fails to mark them as spam, even though I click "Report Spam" for each of them, so I want to create a filter to mark all messages from that domain as spam.


I don't believe gmail offers this exact request. Reason being, email marked as spam is used to identify spam globally (not just your account).

Instead you can just create a label called "myspam" or anything really.

  1. Create Filter
  2. From: libero.it
  3. Check [x] Apply the label enter image description here
  4. Click Choose label...
  5. Select New label
  6. Input myspam new label
  7. Click Create
  • 5
    While that gets the unwanted messages out of your face, as it were, it does nothing to train Gmail about spam messages. If you do this, you should occasionally open this label, mark all of the messages, and then report them as spam. – ale Sep 12 '13 at 12:40

It doesn't look like this is currently possible.

You could always just create another, separate label and have it sent to there. Something like a Spam 2 label. Once the spam builds up in this label, you can select all and click Report Spam to send it all away at once.



Sorry I'm late to the party, I found this old question when searching the same issue. Since you can't do it from filters, I wound up creating a Google App Script which does allow marking an email as spam automatically.

The basic gist of what you want to put into a function and schedule using a time driven trigger is:

var threads = GmailApp.search("[your search criteria] -is:spam");
for (var iThread = 0; iThread < threads.length; iThread++) {
   var threadId = threads[iThread].getId();
  • This worked great for me. Just have to go to script.google.com/home, create an Apps Script, and set a trigger. – Timothy Zorn Dec 20 '19 at 4:41
  • You now need to do GmailApp.moveThreadToSpam(threads[iThread]); No more need for an intermediate variable. – RJVB May 6 '20 at 14:02

It's possible to block a specific address, but not a whole domain. Here's how it can be done:

  1. Choose "Block ..." from the menu:

enter image description here

  1. Confirm to block:

enter image description here

  1. First create a search for your spam messages: I am spam you and can do nothing to stop me ruining your life on gmail

  2. Next, hit Create Filter: I am spam you and can do nothing to stop me ruining your life on gmail

  3. Now check Mark as read and Delete it, then hit Create Filter for the last time: I am spam you and can do nothing to stop me ruining your life on gmail

You will never see these emails anymore. They will just fill up your deleted email box for the next 30 days, until gmail clean them up.


You can select the delete option, creating a label.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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