Gmail rules and filters: how to create them, the filters most teams use, and why one stops working

A Gmail filter watches new mail for the conditions you set and labels, archives, stars, forwards or deletes what matches. This guide gives the steps on a computer, the conditions and actions in the form, the filters most teams end up with, how to export a set, and the reasons a filter does nothing.

Gmail rules and filters: how to create them, the filters most teams use, and why one stops working

Gmail's rules are called filters. A filter watches every new message for the conditions you set, such as the sender, a word in the subject or an attachment. It applies actions to the ones that match: a label, skipping the inbox, a star, forwarding, deletion or a category. You create one from the search box on a computer and manage all of them under Settings, See all settings, Filters and Blocked Addresses. This guide covers the steps, the conditions and actions available, the filters most teams set up, and the reasons a filter does nothing.

Short answer

On a computer, select the search options icon at the right of the Gmail search box, enter the conditions, select Create filter, tick the actions and select Create filter again. To base one on a message you already have, tick the message, open More and select Filter messages like these. Filters act on new mail, and on existing mail only when you tick Also apply filter to matching conversations. Edit, export or delete them under Settings, See all settings, Filters and Blocked Addresses.

Sektra in brief

Sektra works on top of the Gmail or Google Workspace mailbox you already have. Connect it with Google sign-in and every conversation gets an owner, a status and internal notes, while labels and read state stay in step with Gmail.

Start freeSee the Gmail integration7 days of Team free, no card

How to create a rule in Gmail

  • Open Gmail on a computer and select the search options icon, the sliders at the right end of the search box.
  • Enter the conditions: a sender in From, an address in To, words in Subject, words the message has or does not have, a size, or whether it has an attachment.
  • Select Search first to see which existing messages match, which is the quickest check that the conditions are right.
  • Open the search options again and select Create filter at the bottom of the window.
  • Tick the actions the filter should take, then select Create filter.

Google's help page on filters, as read in November 2026, is the source for these steps. Filters are created and edited on a computer, and the Gmail app on a phone applies them but cannot create or change them.

How to create a filter from an existing email

  • Tick the checkbox beside the message in the list.
  • Select More, the three dots above the list, then Filter messages like these.
  • Gmail fills in the sender's address. Adjust the conditions, select Create filter, choose the actions and select Create filter again.

The conditions and actions a filter can use

The form offers eight conditions: From, To, which also matches addresses in Cc, Subject, Has the words, Doesn't have, Size, Has attachment, and Don't include chats. The Has the words box accepts the same operators as search, and a minus sign excludes a term. That means from:(@client.com OR @agency.com), subject:(invoice OR receipt), has:attachment, filename:pdf, larger:5M and list: for mailing lists all work.

The actions are Skip the Inbox, which archives the message, Mark as read, Star it, Apply the label, Forward it and Delete it. The rest are Never send it to Spam, Always mark it as important, Never mark it as important, and Categorize as. Forward it needs a forwarding address that has already been added and confirmed under the Forwarding and POP/IMAP tab, which how to forward emails in Gmail covers.

Seven filters most teams set up

Common Gmail filters, with the condition and the actions each uses, as the filter form names them in November 2026.
PurposeConditionActions
Newsletters out of the inboxHas the words: unsubscribeSkip the Inbox, apply a Newsletters label, never mark it as important
One client in one placeFrom: @client.comApply the label Clients/Acme, star it
Invoices to the bookkeeperSubject: invoice OR receipt, has attachmentForward it to the bookkeeping address, apply the label Invoices
Notifications from toolsFrom: notifications@ OR noreply@Skip the Inbox, mark as read, apply the label Notifications
Shared address mail labeledTo: support@yourcompany.comApply the label Support, never send it to Spam
Large attachments flaggedSize greater than 10 MBApply the label Large files
A sender always in the inboxFrom: a client's or manager's addressNever send it to Spam, always mark it as important
Common Gmail filters, with the condition and the actions each uses, as the filter form names them in November 2026.

The newsletter filter catches any message with the word unsubscribe, which includes some client mail sent through marketing tools. Run the search first and add a Doesn't have condition for the senders that should stay in the inbox.

How to edit, export and import Gmail filters

  • Select Settings, See all settings, then the Filters and Blocked Addresses tab.
  • Select edit beside a filter to change its conditions, then Continue, adjust the actions and select Update filter. Select delete to remove one.
  • To export, tick the filters, select Export, and Gmail downloads an .xml file.
  • To import, select Import filters, choose the file, select Open file, review the list and select Create filters. A new account or a new teammate gets the whole set in one step.

Why a Gmail filter is not working

  • It only applies to new mail. Existing messages are untouched unless you ticked Also apply filter to matching conversations when creating it, and forwarding never applies to old mail.
  • The condition is too exact. From matches the address, so a display name typed in the From box matches nothing, and Subject matches the words in that order unless you use OR.
  • Two filters disagree. Every matching filter runs, so a message one filter archives and another stars gets both, and a message one filter deletes still gets the other filter's label, in the trash.
  • The forwarding address is not confirmed, or a Google Workspace administrator has turned forwarding off for the organization.
  • Gmail marked the message as spam. Gmail does not forward a message it has put in spam, and the only filter action that keeps a message out of spam is Never send it to Spam.
  • The filter is in another account. A delegate cannot create or change filters in the mailbox owner's account, so the owner sets them up.

Filters on a shared Gmail address

A team that answers a shared Gmail address usually runs it as a Google Group set to collaborative inbox, as a delegated account, or through a shared inbox tool. Filters behave differently in each. In a Group, routing is done with the Group's own settings. In a delegated mailbox, filters belong to the owner, and every teammate sees the same labels, which is useful for sorting and useless for assignment, since a label cannot say who is answering. Shared inbox in Google Workspace compares the three setups.

Where Sektra fits

Sektra connects the Gmail mailbox through Google sign-in and syncs labels both ways, so a filter that labels mail in Gmail shows the same label in Sektra. Sektra's own rules work on the shared conversation rather than the mailbox. A rule can assign a conversation, tag it, snooze it, set its priority, apply a service level policy or send a template reply, and the whole team sees the result. Starter includes 10 rules and Team and Business have no limit. Gmail filters stay the right tool for noise, such as archiving notifications before they reach the inbox, and Sektra's rules decide who answers what remains.

Setting up filters that last

Start from a search, so you can see what the filter will catch before it exists. Prefer labels to deletion, since a wrongly deleted message is gone after 30 days and a wrongly labeled one is a click away. Export the set once it works, so a new teammate or a new account inherits it in one import. Review the list every few months, because the filters that suited last year's tools are still running.

Related guides: how to find archived emails in Gmail, Outlook rules, Gmail delegate access, Gmail templates and AI email automation.

Common questions

How do I create a rule in Gmail?

Gmail calls rules filters. On a computer, select the search options icon at the right of the search box, enter the conditions, select Create filter, tick the actions and select Create filter again. To start from a message, tick it, open More and select Filter messages like these.

Can a Gmail filter apply to old emails?

Yes, if you tick Also apply filter to matching conversations when you create it. Labels, stars, archiving and deletion then apply to the existing messages that match. Forwarding applies to new mail only.

Can I create Gmail filters on my phone?

No. Filters are created and edited in Gmail on a computer, under the search options or under Settings, See all settings, Filters and Blocked Addresses. The Gmail app applies the filters that exist.

Why is my Gmail filter not working?

The usual reasons are that the filter applies to new mail only, that a condition is too exact, or that the forwarding address is not confirmed. Gmail may also have marked the message as spam before the filter ran. Run the filter's conditions as a search to see what it matches.

Can a Gmail filter forward emails to another address?

Yes. Add and confirm the address under Settings, See all settings, Forwarding and POP/IMAP, then create a filter with the action Forward it. The filter forwards new matching messages only, and never messages Gmail has put in spam.

Run the shared address from one inbox

Sektra gives a support@ or sales@ address an owner, a status and a record of what was promised, on Gmail, Outlook, IMAP and WhatsApp. 7 days of Team free, no card.

Start freeSee the team inbox
7 days of Team freeNo credit cardSet up in minutes