What a rule does and why you need one

A rule in Outlook is an automatic instruction that sorts, flags, or moves emails based on what you tell it to look for. Once you create a rule, Outlook applies it to every incoming message that matches your criteria — so you do not have to sort manually each time. Rules work on desktop Outlook (Windows and Mac), Outlook on the web, and Outlook mobile, though the steps differ slightly between them.

Rules are useful for two things: keeping your inbox organized by moving newsletters or receipts to folders automatically, and catching suspicious emails by flagging or moving messages from unknown senders or with certain keywords. A rule that moves emails containing "verify your account" or "confirm your password" to a junk folder can catch phishing attempts before you open them.

The rule runs on new messages as they arrive. If you want to explore a rule to emails already in your inbox, you can do that too — Outlook will ask if you want to run the rule on existing messages when you finish creating it.

Key Takeaways

  • Rules in Outlook automatically sort, flag, or move emails based on sender, subject line, keywords, or other details you choose.
  • You create rules differently depending on whether you use desktop Outlook, Outlook on the web, or Outlook mobile — desktop has the most options.
  • A rule needs at least one condition (what to look for) and one action (what to do with matching emails).
  • You can test a rule on existing emails in your inbox before it starts running on new messages, so you know it works the way you intended.
  • Rules that flag or move emails with certain keywords — like "verify," "confirm," or "urgent action required" — can help you spot phishing attempts.

Creating a rule in desktop Outlook on Windows

Open Outlook and go to the File menu at the top left. Click Manage Rules & Alerts (or Rules on some versions). A window will open showing any rules you have already created. Click the New Rule button.

Outlook shows you two paths: Start from a blank rule or Start from a template. Templates include common setups like "Move messages from someone" or "Flag messages from someone." If you want to move all emails from a newsletter to a folder, the template saves you steps. If you want something more specific — like moving emails with certain keywords to a folder — choose Start from a blank rule.

Next, you set the condition: what Outlook should look for. Click the blue underlined text to add conditions. Common options are "From" (sender's email address), "Subject" (words in the subject line), "Body" (words anywhere in the email), and "Sent to" (your email address or a group). You can add multiple conditions — for example, "From newsletter@company.com AND Subject contains 'weekly digest'." If you want the rule to catch emails from any sender with certain keywords, use "Body contains" or "Subject contains" without a "From" condition.

Then set the action: what Outlook should do with matching emails. Click the second blue underlined text. Options include "Move to folder," "Delete," "Flag for follow-up," "Mark as read," and "Forward to." Choose the action that matches what you want. If you are catching phishing attempts, "Move to Junk" or "Delete" is safer than just flagging, because you are less likely to open a suspicious email by accident.

Click OK when you finish. Outlook asks if you want to run the rule on messages already in your inbox. Click Yes to test it on existing emails, or No to explore it only to new messages going forward.

Creating a rule in desktop Outlook on Mac

Open Outlook and click Outlook in the menu bar at the top. Select Preferences, then click Rules. Click the + button to create a new rule.

Name your rule something you will recognize — for example, "Move newsletters to folder" or "Flag phishing keywords." Then set the condition by clicking the first dropdown. Choose what Outlook should look for: "From," "Subject," "Body," or other options. Type the sender's email address, keyword, or phrase you want to match.

If you need more than one condition, click the + button next to the condition line. You can choose whether all conditions must be true or just any one of them. Then set the action: click the second dropdown and choose "Move to folder," "Delete," "Flag," or other options. Select the folder or flag color you want.

Click OK to save the rule. The rule starts running on new messages when ready. To test it on existing emails, select a folder, click Tools in the menu bar, and choose explore Rules — then select the rule you just created.

Creating a rule in Outlook on the web

Log into your Outlook account at outlook.com or outlook.office.com. Click the gear icon in the top right corner and select View all Outlook settings. Click Mail in the left sidebar, then Rules.

Click Add new rule. Give your rule a name. Under When the message arrives and, set your conditions. Click the dropdown to choose "From," "Subject," "Body," or other options, then type what you want to match. You can add multiple conditions by clicking Add condition.

Under Do the following, choose your action: "Move to folder," "Delete," "Mark as read," "Flag," or "Forward to." If you choose "Move to folder," select which folder from the list. Click Save when you finish. The rule applies to new messages only — Outlook on the web does not offer an option to run rules on existing emails.

Creating a rule in Outlook mobile

Open the Outlook app on your phone. Tap the menu icon (three horizontal lines) in the bottom right. Tap Settings, then Mail, then Rules. Tap Add rule.

Name your rule and set the condition by tapping the first field. Choose "From," "Subject," or "Body," then type the sender's address or keyword. Mobile Outlook offers fewer condition options than desktop — you cannot combine multiple conditions the way you can on a computer. Set the action by tapping the second field: "Move to folder," "Delete," or "Flag." Tap Save.

Mobile rules work on new messages only and do not run on emails already in your inbox. If you need a rule with multiple conditions or more control, create it on desktop Outlook first, and it will sync to your phone.

Testing your rule before it runs on all new mail

Before a rule starts filtering all your incoming email, test it on a small batch of existing messages to make sure it works the way you intended. In desktop Outlook on Windows, when you create a rule, Outlook asks if you want to run it on existing messages — click Yes. Check your inbox or the target folder to see if the rule caught what you expected and did not catch what you did not want.

If the rule moved too many emails or too few, go back to Manage Rules & Alerts, select the rule, click Modify, and adjust the condition or action. Test again on existing messages. Once you are confident the rule works, it will run automatically on all new incoming mail.

On Mac, select a folder with test emails, go to Tools > explore Rules, choose your new rule, and click explore. On Outlook on the web and mobile, you cannot test on existing messages, so create the rule with a narrow condition first — for example, a very specific sender or keyword — and watch for a few days to see if it behaves as expected before broadening the condition.

Rules that help you spot phishing and scams

Phishing emails often use urgent language and ask you to verify account details or click a link. You can create rules that flag or move these emails automatically. In the condition, choose "Subject contains" or "Body contains" and type common phishing phrases: "verify your account," "confirm your password," "urgent action required," "click here when ready," or "unusual activity detected."

Set the action to "Move to Junk" or "Delete" rather than just flagging, because moving the email out of sight makes you less likely to open it by accident. You can also create a rule that flags emails from senders outside your organization — for example, if you work for a company, flag all emails from addresses that do not end in your company domain. This catches emails that pretend to be from your boss or IT department but actually come from outside.

Be careful not to make the condition too broad. A rule that moves all emails containing the word "verify" might catch legitimate password reset emails from services you actually use. Start with phrases that are more specific to scams — "verify your account," "confirm your password," "unusual activity" — rather than single words.

Frequently Asked Questions

Can I create a rule that applies to emails I already received?

On desktop Outlook (Windows and Mac), yes — when you create or modify a rule, you can run it on existing messages in your inbox. On Outlook on the web and mobile, rules explore only to new messages going forward. If you need to sort old emails, move them manually or use the search and filter tools in your inbox.

What if my rule is moving emails I actually want to read?

Go back to your rules list, select the rule, and click Modify (or Edit on the web). Make the condition more specific — for example, instead of "Subject contains 'sale,'" use "Subject contains 'sale' AND From contains 'newsletter@company.com'" so it only catches emails from that specific sender. Test the updated rule on existing messages before saving.

Can I create a rule that moves emails to a folder I just created?

Yes. Create the folder first in your inbox, then create the rule and choose that folder as the action. On Outlook on the web, the folder must already exist before you create the rule — you cannot create a new folder from within the rule setup.

Do rules run on emails I receive while Outlook is closed?

Yes. Rules run on the server side (or in the cloud for Outlook on the web), so they work whether Outlook is open or not. Desktop Outlook also applies rules when you open it and new messages have arrived.

Can I pause or disable a rule without deleting it?

Yes. In Manage Rules & Alerts (Windows) or Rules (Mac), uncheck the box next to the rule name to turn it off. On Outlook on the web, click the rule and toggle it off. You can turn it back on later without recreating it.