• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Create rules that apply to an entire domain

Slipstick Systems

› Outlook › Rules, Filters & Views › Create rules that apply to an entire domain

Last reviewed on March 16, 2017     44 Comments

Applies to: Outlook (classic), Outlook 2010

Is there a way to set up a rule so that all emails from a specific server (example microsoft.com) go into a specific folder? I can do it individually each time someone from work emails me but want to set it up so that people from microsoft.com who have never emailed me would automatically go into my MS folder?

The finished ruleYes. You need to enter just the email domain and cancel the Check Names dialog when it appears. The finished rule will look like the image on the right in Rules Wizard.

While this rule trick works in Microsoft Outlook 2010 and up, it's not necessary as Outlook 2010 includes a rule for "specific words in the senders address" which you can use instead. A similar rule exists for 'words in the recipients address'.

To apply a rule only to internal Exchange email, create a rule that applies to all mail and add an exception for messages with @ in the sender's address. Internal Exchange email does not use a SMTP address and therefore, does not contain an @ sign. If you don't want to use Exceptions, you can look for /ou in the address instead.
Rules for mail from Exchange server

Outlook 2010 and up "words in the address" method

If you are using Outlook 2010 and up, you can create a rule "with specific words in the sender's address", highlighted in the red box in the screenshot.
Create a rule with specific words in the sender's address

Select the condition, click on the underlined words in the lower part of the dialog box then type the domain name you want the rule to apply to.

Note: The two items marked with arrows provide alternate ways to do this and are also available in older versions of Outlook.

If you want to apply a rule to all mail originating outside of Exchange Server (including Office 365 Exchange Online), use @ in place of the domain name in this rule.

Outlook 2003 and up "from people or group" method

Step 1: Begin creating the rule, using the condition "from people or public group".
Select address in Outlook's Rules Wizard dialog

Click in the underlined people or public group at the bottom of the dialog box to open the Rule Address dialog.

Type the domain portion of the address in the Address field at the bottom of the dialog.

To apply this rule to all email from Internet addresses, enter just an @ sign in the From field. Mail originating on your Exchange server will be skipped.

Step 2: Click Ok after entering the domain in the address field, then Cancel the Check Names dialog when it appears.
Cancel the choose address dialog

Create rules that apply to an entire domain was last modified: March 16th, 2017 by Diane Poremsky
Post Views: 21

Related Posts:

  • Apply Conditional Formatting to Internal Email
  • To create a rule with wildcards
  • Microsoft Outlook contains a rule condition you can use to sort mail r
    Create rules to sort messages by email account
  • Filter Internal Mail from External Mail

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
44 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Stef Joosten
August 14, 2023 1:08 am

I have the same problem on Outlook for Mac, vs. 16.75.1. I can find no way to do this. Can anybody help?

0
0
Reply
Diane Poremsky
Author
Reply to  Stef Joosten
August 15, 2023 7:49 am

Are you using New Outlook or Legacy Outlook?

What is not working?

0
0
Reply
Camille
Reply to  Stef Joosten
September 15, 2023 7:27 am

@stef, check in the Keywords section of the dropdown, and select 'Sender address includes' - Worked for me!

2
0
Reply
Kevin
January 8, 2023 9:08 pm

Thank you!

0
0
Reply
Chris Notley
December 17, 2020 2:58 am

Fantastic, just what I needed Diane!

0
0
Reply
Maggie Hedrick
September 25, 2020 9:30 am

I created a rule for student emails (specific domain) and it is an auto-reply but it is only sending the first time a student emails, rather than each time if they email more than once. Why is the rule not applying each time if the address should still be included in the rule?

0
0
Reply
Diane Poremsky
Author
Reply to  Maggie Hedrick
December 17, 2020 8:46 am

That is how autoreplies work in outlook. You will need to use a 'run a script' rule to replay to every message. https://www.slipstick.com/developer/run-a-script-rule-autoreply-using-a-template/

0
0
Reply
Jerry Peres
June 2, 2020 1:59 am

Thank you for sharing good knowledge and information. It's very helpful and understanding as we are looking for this information for a long time.

0
0
Reply
SAL
September 26, 2019 4:54 pm

Please add instructions for OWA too.

1
0
Reply
Nate Olsen
January 24, 2018 6:49 pm

NOTE: the "words in address" rule block seems to create a client-only rule.

If *@domain.com or @domain.com work perfectly fine in the "from sender" rule block, I'd say that's a preferred method since it's a server-side rule.

1
-2
Reply
JASIM PERINGATTUTHODI
Reply to  Nate Olsen
June 16, 2019 1:11 am

*@domain.com or @domain.com rules not working

2
0
Reply
Diane Poremsky
Author
Reply to  JASIM PERINGATTUTHODI
June 16, 2019 1:17 am

Are you using words in the header or words in the message header rules? Are the message being picked up by the junk mail filter first?

1
0
Reply
Richard
October 15, 2017 7:13 pm

Thanks for pointing out the usefulness of the "with specific words in the sender's address" or "recipient's address". Voila! Problem solved.

2
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 3

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Reset the New Outlook Profile
  • Disable "Always ask before opening" Dialog
  • This operation has been cancelled due to restrictions
  • How to Hide or Delete Outlook's Default Folders
  • Adjusting Outlook's Zoom Setting in Email
  • Mail Templates in Outlook for Windows (and Web)
  • Removing Suggested Accounts in New Outlook
  • Remove a password from an Outlook *.pst File
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

:wpds_smile::wpds_grin::wpds_wink::wpds_mrgreen::wpds_neutral::wpds_twisted::wpds_arrow::wpds_shock::wpds_unamused::wpds_cool::wpds_evil::wpds_oops::wpds_razz::wpds_roll::wpds_cry::wpds_eek::wpds_lol::wpds_mad::wpds_sad::wpds_exclamation::wpds_question::wpds_idea::wpds_hmm::wpds_beg::wpds_whew::wpds_chuckle::wpds_silly::wpds_envy::wpds_shutmouth:
wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment