To set up rules in Outlook, right-click a message, choose Rules, then Create rule, and pick a folder or action for future mail from that sender. For more control, open the full rules settings and give the rule a name, a condition, an action and, if needed, an exception.
The exact menus depend on which Outlook you use. This guide covers new Outlook for Windows, classic Outlook for Windows, and Outlook on the web and Outlook.com, based on Microsoft's own documentation (as of November 2026). If you are not sure which version you have, see our beginner's guide to Outlook, which explains the difference between new and classic Outlook.
What an Outlook rule is
A rule is a stored instruction of the form "when a message matches this condition, do this action." Outlook applies rules automatically to mail as it arrives. Typical uses are moving newsletters into a folder, flagging messages from your manager, or forwarding invoices to a shared mailbox.
Every rule has three parts:
- Condition: what the message must match, such as the sender, a word in the subject, or the recipient.
- Action: what Outlook does when it matches, such as move to a folder, flag, or forward.
- Exception (optional): a case where the rule should not run even though the condition matches.
Set up a rule in new Outlook for Windows
The quickest route starts from a message:
- Right-click a message in your inbox and hover over Rules.
- Select Create rule. This creates a rule that moves future mail from that sender to a folder.
- Choose the destination folder and select OK.
For more options, select More options in that dialog to open the full rules settings:
- Type a name for the rule.
- Choose a condition. Select Add a condition to require more than one.
- Choose an action. Select Add an action to do more than one thing.
- Select Add an exception if there are cases the rule should skip.
- Optionally check Stop processing more rules.
- Select Save. Select Discard to cancel.
You can reach the same screen later through Settings > Mail > Rules.
Set up a rule in classic Outlook for Windows
From a message
- Right-click a message and select Rules > Create Rule.
- Choose a condition and the action to take.
- To apply the rule to mail already in the folder, check Run this new rule now on messages already in the current folder.
- Select OK.
From a template
- Select File > Manage Rules & Alerts > New Rule.
- Pick a template, edit its description if needed, and select Next.
- Choose the conditions, then select Next.
- Name the rule, set the options, and select Finish, then OK.
The template route is better when you want something the right-click shortcut does not offer, such as a rule based on keywords in the subject line.
Set up a rule in Outlook on the web and Outlook.com
Select Settings, then Mail, and under Mail select Rules. From there you add a rule and fill in the name, condition and action in the same way as in new Outlook. The same screen is where you reorder, disable or delete rules.
Rule order and "Stop processing more rules"
Rules run in the order they appear in the list. In new Outlook, Outlook on the web and Outlook.com, open Settings > Mail > Rules, select a rule, and use the up or down arrow to move it.
The Stop processing more rules check box decides whether later rules can act on the same message. Microsoft states that in Outlook on the web the option is on by default, so when a message matches more than one rule, only the first rule is applied. If you clear it, every rule the message matches is applied. Microsoft's page does not state a default for the other versions, so check the box state yourself when you create a rule.
A practical example: put a narrow rule first ("anything from my manager goes to Priority and is flagged") and a broad rule after it ("everything else from the company domain goes to Work"). With stop processing checked on the first, manager mail never falls through to the second.
Run a rule on existing messages
By default, rules apply only to new incoming mail. To clean up what is already in a folder:
- New Outlook: go to Settings > Mail > Rules and select the Run rule icon next to the rule.
- Classic Outlook: select File > Manage Rules & Alerts > E-mail Rules > Run Rules Now. Select the rules, choose the folder (optionally including its subfolders), set which messages to apply them to, and select Run Now.
- Outlook.com: Microsoft says rules cannot be run on existing messages there.
Edit, turn off or delete a rule
| Task | New Outlook and web | Classic Outlook |
|---|---|---|
| Edit | Settings > Mail > Rules, then More actions (three dots) > Edit rule, then Save | File > Manage Rules & Alerts, check the rule, select Change Rule |
| Turn off temporarily | Use the toggle next to the rule name | Clear the rule's check box |
| Delete | More actions (three dots) > Delete rule | Select the rule on the E-mail Rules tab, then Delete > OK |
Why a rule is not working
- A broken rule shows in red (classic Outlook). Open File > Manage Rules & Alerts, check the rule, edit the rule description to fix the problem (for example a folder that no longer exists), and select OK.
- It was migrated from classic Outlook. Microsoft notes that some classic rules are client-side and cannot be processed by new Outlook. Create a replacement rule in new Outlook instead.
- It needs Outlook to be open. Custom action rules come from third-party add-ins, run only on the computer where the add-in is installed, and only while Outlook is running.
- Another rule ran first. If an earlier rule has Stop processing more rules checked, your rule never sees the message. Move yours up the list or clear the option.
- Your account type is not supported. New Outlook does not support rules for Gmail, Yahoo or iCloud accounts, according to Microsoft.
If the rule is correct and matches, check that the condition is worded the way the mail actually arrives. A condition on the subject line only matches the subject, not the message body, so a rule that looks for an invoice number in the body needs a body condition instead.
Related guides
If you also want to stop mail from landing in the wrong place on a manual basis, rules pair well with a tidy folder structure. For general Outlook basics such as sending, replying and calendars, start with the beginner's guide to Outlook.
Frequently asked questions
- How do I make an Outlook rule run on mail that is already in my inbox?
- By default a rule only applies to new incoming mail. In new Outlook, go to Settings > Mail > Rules and select the Run rule icon next to the rule. In classic Outlook, use File > Manage Rules & Alerts > Run Rules Now, or tick 'Run this new rule now on messages already in the current folder' when you create the rule.
- What does 'Stop processing more rules' do?
- When it is checked, Outlook stops after that rule, so later rules do not touch the same message. Microsoft says that in Outlook on the web the option is on by default, so only the first matching rule is applied. Clear it if you want every matching rule to run.
- Can I set up Outlook rules for a Gmail, Yahoo or iCloud account?
- Not in new Outlook. Microsoft's documentation says Gmail, Yahoo and iCloud accounts are not supported for rules in new Outlook. Classic Outlook and the account's own web filters are the alternatives.
- How do I turn off a rule without deleting it?
- In new Outlook and Outlook on the web, use the toggle next to the rule name under Settings > Mail > Rules. In classic Outlook, open File > Manage Rules & Alerts and clear the rule's check box.