How to Whitelist a Domain in Mac OS X Mail

Write a rule to set up a domain-wide whitelist

Businesswoman working on project in startup office
Thomas Barwick / Getty Images

In Mac OS X and macOS, the Mail application's spam filter is effective and doesn't catch mail from known senders, but it only protects mail from individual senders (""), not mail from entire domains where every address ends in "" Mail doesn't make it simple to whitelist all the emails from all senders from a specific domain. For that, you have to set up a rule in the Mail preferences.

How to Whitelist a Domain in Mac OS X Mail

To whitelist all email from a specific domain in the Mail app in Mac OS X  or macOS:

  1. Select Mail | Preferences from the menu bar in Mac OS X Mail.
  2. Click the Rules tab.
  3. Click Add Rule.
  4. Type a name in the Description field, such as "Whitelist:" to identify the new rule.
  5. Make sure the criteria reads If any of the following conditions are met and that the From field is followed by Ends with.
  6. Enter the domain name you want to whitelist in the field next to the Ends with field. Add an @ sign before the domain name to make the filter specific. For example, to whitelist all mail from the domain ("") but not from its subdomains (""), type "" into the field.
  7. Click the plus sign next to the last condition to add another domain with the same criteria if you want to whitelist several domains.
  1. In the Perform the following actions section set the three fields to Move Message, to the mailbox, and Inbox or a different target folder.
  2. Click OK to save the rule.
  3. Close the Rules window.

To make sure the rule is executed before other rules that might act on the same message for other reasons, drag it near the top of the rules list.

If you have a filter that color-codes certain messages based on keywords in the subject, for example, make sure the domain whitelist rule is above that labeling rule.

Was this page helpful?