To create a rule in Outlook on the web, open Settings, go to Mail > Rules, choose Add new rule, select the conditions and actions, then save. A rule can automatically sort incoming messages—for example, move newsletters into a folder or flag mail from a particular sender—so you spend less time organizing your inbox. You’ll need access to the mailbox and, if you want to move messages to a folder, that folder should already exist.
What You’ll Need
- A web browser and access to Outlook on the web at Outlook.com or your organization’s Microsoft 365 Outlook site.
- The mailbox where you want the rule to run. Sign in to the correct account before changing its settings.
- A clear idea of what messages the rule should match and what should happen to them. For a move rule, create the destination folder first if it does not exist.
- If you use a work or school account, be aware that your organization may restrict forwarding or other rule actions.
Step-by-Step
- Open your mailbox and settings. Sign in to Outlook on the web and select the gear-shaped Settings icon near the upper-right corner. In the Settings pane, select Mail, then Rules. If the pane is narrow or the options are collapsed, use View all Outlook settings to open the full settings window, then choose Mail > Rules. Outlook’s labels can shift slightly as the interface changes, but Rules is in the Mail settings.
- Start a new rule. Select Add new rule. Enter a short, descriptive name in the rule-name field, such as “Move receipts” or “Flag messages from Dana.” Names help you distinguish rules later, especially when several rules affect the same messages. Avoid vague names such as “Rule 1,” which make troubleshooting harder.
- Choose the condition or conditions. Select Add a condition, then choose a field that identifies the messages you want. Common choices include the sender, recipient, subject, words in the message, or whether you are the only recipient. Fill in the value requested by the condition—for example, enter a sender’s email address or a phrase that appears in the subject. Add another condition if the rule should match only messages that meet more than one criterion. Be precise: a short or common phrase may match far more mail than you expect.
- Choose what the rule should do. Select Add an action and choose an action such as moving the message to a folder, deleting it, marking it as read, flagging it, categorizing it, or forwarding it, if that action is available for your account. Complete any extra field that appears. For a move action, choose the destination folder from the list. For a category action, select the category. For forwarding, enter the intended address and check that forwarding is permitted by your organization.
- Add exceptions if needed. Use Add an exception to exclude messages that would otherwise match the rule. For instance, a rule that moves mail containing “invoice” could exclude messages from your manager or messages marked as high importance. Exceptions are optional; leave them out if there is no clear case the rule should skip. A well-chosen exception can prevent an otherwise useful rule from hiding an important message.
- Review rule order and processing. If other rules could match the same mail, check where this rule sits in the rules list. Rules are evaluated in order, and an earlier action can affect what a later rule sees. If the editor offers Stop processing more rules, enable it when this rule should be the final rule applied to messages it matches. For example, if a message is moved into a dedicated folder and should not then be moved elsewhere by another rule, stopping later rules may be appropriate. Do not enable it automatically: it can prevent other useful rules from running.
- Save the rule. Review its name, conditions, actions, and exceptions, then select Save. Return to the Rules list and confirm that the new rule appears and is enabled. If Outlook displays a warning or refuses to save, read the message carefully; a missing action value, invalid address, or policy restriction may need attention.
- Test the result. Send yourself a new message that meets the condition, or ask a colleague to send a suitable test message. Check the Inbox and the destination folder, and confirm that the intended action occurred. A rule usually applies automatically to messages arriving after it is created; do not assume it has reorganized older mail. If the rule editor offers a Run rule now option, use it only when you deliberately want to apply the rule to existing messages too. That option may not be available for every account or rule.
- Edit, disable, or remove a rule when your needs change. Go back to Settings > Mail > Rules. Select the rule to edit its settings, or use the control beside it to turn it off or delete it. Disabling is a good temporary test if mail is being moved unexpectedly; deleting removes the rule itself. After changing a rule, send another test message so you know which version is active.
Common Mistakes
Using a condition that is too broad. A condition such as “subject includes update” may catch routine notices as well as important messages. Use a distinctive phrase, a specific sender, or more than one condition when appropriate. If a rule is meant for one person, matching the exact address is generally safer than matching a display name that could be shared.
Forgetting that rules can overlap. If two rules match the same message, the first rule’s action and the setting for stopping further processing can change what happens next. Review the list whenever a message is moved to an unexpected folder. Avoid creating multiple rules that perform conflicting actions on the same type of mail.
Choosing the wrong destination or action. Check the selected folder before saving, especially if similarly named folders exist. Delete and move actions can make messages seem to disappear from the Inbox even though they may still be available elsewhere. When testing, use a low-risk example rather than a message you cannot afford to lose track of.
Expecting a new rule to sort old mail automatically. Rules generally handle incoming messages, not every message already in the mailbox. Check whether your version offers a run-now option if you want to process existing mail, or move older messages manually using Outlook’s search and folder tools.
Using forwarding without checking restrictions. Work and school administrators can block automatic forwarding, particularly to external addresses. A rule may fail to save or may not forward as expected. Follow your organization’s policy and use an approved method to share mail.
Tips
- Keep names action-focused. “Move vendor receipts to Finance” tells you both what a rule catches and what it does. Consistent names make the list easier to scan later.
- Build and test one rule at a time. If you add several rules before checking the result, it becomes harder to identify which condition or action caused an unexpected change.
- Start with a reversible action. Moving a test message to a folder is easier to inspect than deleting or forwarding it. Once you know the condition is accurate, decide whether a stronger action is appropriate.
- Use rules for stable patterns. A sender, recurring subject phrase, or regular notification type is a better fit than a temporary topic that will soon be irrelevant. Periodically review rules you no longer need.
- Check folders and Junk Email before widening a condition. A message that appears to have vanished may have been moved by a rule or filtered elsewhere. Verify where the mail went before changing a rule to catch more messages.
- Keep important alerts visible. Avoid automatically marking every message as read or routing critical mail out of sight unless you have another reliable way to notice it. Consider using a category or flag when you want to organize without hiding the message.
Troubleshooting
The rule is not listed or will not save: Confirm that you are in the right mailbox and that you filled in every required value, including the sender, phrase, destination folder, or forwarding address. Reopen the full settings page if the compact pane does not show all rule options. If a work account reports that an action is blocked, contact your Microsoft 365 administrator rather than trying to bypass the restriction.
A matching message stays in the Inbox: Check that the rule is enabled and that the message arrived after the rule was saved. Compare the message carefully with every condition; a different sender address, extra words in the subject, or a message sent to multiple recipients may mean it does not match. Also check whether an earlier rule changes the outcome or stops later rules. Use a new test message that clearly meets the criteria.
The wrong messages are being moved or changed: Turn the rule off temporarily, then inspect its conditions and exceptions. Replace broad terms with a distinctive phrase or exact sender address, and add an exception for important messages that should stay in the Inbox. Re-enable the rule and test it with a few representative messages before relying on it.
The message seems to have disappeared: Search Outlook for the sender or a distinctive subject word, then check the destination folder, Deleted Items, and Junk Email. Another rule may have moved or deleted it. If you find it, adjust or disable the responsible rule. A rule does not necessarily erase a message permanently, but you should check promptly if a delete action is involved.
Forwarding or a special action does not work: Verify that the action is available for your account and that the address or category is correct. Organization policy can limit forwarding, and some options may vary by account type. If the rule appears correct but the action remains unavailable, ask your administrator or consult your organization’s Outlook support.
Frequently Asked Questions
Do Outlook on the web rules apply to new messages automatically?
Usually, yes. After you save and enable a rule, it processes incoming messages that match its conditions. Existing messages are not necessarily changed unless the editor provides a run-now option and you choose to use it.
Can one rule have more than one condition?
Yes. Add conditions in the rule editor to make the match more specific, then add exceptions for messages that should be excluded. Review the description or fields shown in the editor so you understand how the selected conditions combine.
Can I create a rule to move mail into a folder?
Yes. Add a move action and select the destination folder. Create the folder first if it is not in the list, and send a test message to confirm the rule moves mail where you expect.
Can I apply a rule to messages already in my mailbox?
Some Outlook on the web rule editors provide a Run rule now option, but availability can vary. If you do not see it, the saved rule may only handle incoming messages; use search and move older messages manually when needed.
Why did a message match one rule but not another?
Rules can be affected by their order, their conditions, and whether an earlier rule stops further processing. Review each relevant rule in the list, make sure the message satisfies every required condition, and test after changing the order or processing setting.
Do Outlook.com and work or school accounts have identical rule options?
Many common conditions and actions are similar, but available options and restrictions can differ by account type or organization policy. If a control is missing or forwarding is blocked, check your account settings or ask your administrator.
Related
- How to Clear Cache in Outlook for Windows
- How to Clear Cache in Outlook Calendar
- How to Clear the Cache in Outlook on Windows and Mac
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Text Usage Examples for Cleaning and FormattingExcel text examples often use TEXT to turn a number or date into a chosen display, such as…
- Google Sheets COUNTIF Wildcards: How to Match TextYes. Google Sheets COUNTIF supports the asterisk (*) wildcard to match any number of characters and the question…
- Out of Office in Outlook 365: Set It Up on Any DeviceTo set an out-of-office message in Outlook 365, open Automatic replies, turn them on, write your message, and—if…
- How to Create a Survey Template in Microsoft Word EasilyTo create a reusable survey template in Microsoft Word, plan the questions, lay them out in a readable…
- Excel Find and Replace Preview: How to Check ChangesExcel for Microsoft 365 on Windows does not provide a separate preview screen for Replace All. To review…
- How to Remove Split Screen in Excel: Steps and FixesTo get rid of split screen in Excel for Microsoft 365 on Windows, select View > Split once…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.