How to Create Rules in Apple Mail
If you are constantly bombarded with emails, you can stay on top of your inbox by creating rules in Apple Mail. These rules will automatically sort messages into different folders.
For instance, you can mark emails as spam or as read in Apple Mail.
This way, you can quickly navigate through your inbox and find the emails that matter without having to sift through the clutter and search Apple Mail.
Setting up rules on MacOS (desktop)
⚠️ Important: Apple Mail rules on macOS run only when the Mail app is running. If your Mac is turned off, asleep, logged out, or Mail is closed, those rules do not execute.
If Mail is set to launch at login and your Mac is awake, rules will run in the background. If the Mac sleeps, shuts down, or loses connectivity, they stop.
Here's how to set up Mac Mail rules:
- Open Apple Mail and go to the Mail menu at the top of your screen.
- Select Settings... from the drop-down menu.
- In the window that appears, click on the Rules tab.
- Click on the Add Rule button at the right pane. A pop-up window will appear where you can name your rule in the Description field.
- Specify the conditions for your rule by selecting options from the drop-down menus under If any of the following conditions are met: or If all of the following conditions are met:
- Once you have specified the conditions, choose the desired action for your rule under Perform the following actions:
- You can add more conditions and actions by clicking the + button next to each field.
- Click on the OK button to save your rule.






Creating Apple Mail rules on iOS (mobile)
You can set up rules in Apple Mail on your iPhone only by opening iCloud.com in Safari, requesting the desktop site, and going to Settings (gear icon) → Rules. This process can be a pain, and options can be limited.
Luckily, you can be creative with your rules and filters using the Clean Email app for iOS.
Clean Email is an email management tool that allows you to easily filter, organize, and clean up your inbox with just a few clicks.
With the app's customizable features, you can easily create rules to categorize and prioritize your emails—the entire process is automated.


You can also pause and restart the rules as you see fit.
Filter All Emails Automatically with Clean Email
While rules in Apple Mail help organize emails, it can still be a tedious task to create and manage them.
The Clean Email app is available on macOS, mobile, and the web, and works seamlessly with popular email providers like iCloud, Gmail, Outlook, Yahoo! Mail, and more.
You can set up regular automatic cleanups to keep your inbox clutter-free. Its features enable you to create automated rules for existing and incoming messages.
Senders
In Clean Email, you can create rules for each sender.
Pick a folder where you want this sender's messages to go (for instance, "client" or "marketing team"). Decide if you want their messages to go to Trash after a certain period automatically.
You can also let Clean Email star this sender's future messages if you expect urgent or high-priority items from them.
Auto Clean
The Auto Clean feature lets you set automations for managing incoming emails.


Want all marketing messages to go straight to the trash? What about that newsletter you subscribed to a year ago and haven't had the chance to read?
You can use Auto Clean to direct these messages to a certain folder.
For instance, you can create rules for Clean Email to direct industry newsletters to the Read Later folder automatically. Or promotional messages you received from a certain brand 2-3 years ago straight to Trash.
You can also build automation to star or flag responses to your messages, allowing you to prioritize replies from important senders.
Smart Folders
The app's Smart Folders feature uses 33 pre-set filters to categorize your emails by the similarities they share.


Create rules by selecting email groups within these folders, and set them to be automatically sent to any designated folder upon their arrival in the future. This way, there's no need to organize your messages individually and manually.


Let Clean Email find important emails from specific categories or eliminate unwanted bulk messages for you.
Cleaning Suggestions
Cleaning Suggestions tool manages items in your main inbox based on your past actions (and data from how others have dealt with similar emails). You can use this feature to create rules by going to the Suggestions tab and specifying the actions you want it to take automatically.


For instance, the app can auto-delete messages from a specific sender that hasn't been opened within a certain number of days.
How to Create Rules in iCloud Mail
iCloud Mail rules provide the same functions and features as Apple Mail. You can create rules to manage your inbox and keep it organized.
⚠️ Important: iCloud Mail rules are server-side and affect mail as it arrives even if no device is active. This is fundamentally different from Apple Mail (macOS) rules, which are evaluated only after the Mail app downloads messages locally.
How to Apply Rules for iCloud Mail on Desktop
To set up Mac Mail rules in iCloud Mail, follow these steps:
- Open iCloud Mail and click on Settings (blue gear icon) at the left-hand pane of your screen.
- Select Rules from the left-hand menu.
- Click on Add New Rule.
- In the pop-up window, give your rule a name and specify the conditions for your rule. Select from the options for the Message and Action using the drop-down menus.
- Choose a folder by selecting it from the pop-up window. You can also create a new folder in iCloud Mail first if the folders you want don't exist yet.
- Click Add.








Can I create iCloud mail rules on iOS devices?
No, you cannot create iCloud email rules using the iOS Mail app. But you can create and manage iCloud Mail rules on an iPhone or iPad by using iCloud.com in a web browser.
However, if you want to create them in Apple Mail using your mobile device (or if Mac Mail rules are not working on your iPhone), you can filter your email with the Clean Email app.
Which Rules Should Live Where? (Apple Mail vs iCloud Mail vs Clean Email)
Not all rules should be created in the same place. Where a rule runs determines when it fires, which devices it affects, and how reliable it is.
Use the framework below to decide where each type of rule belongs:
| Use case / requirement | Apple Mail rules (macOS) | iCloud Mail rules (web) | Clean Email automations |
|---|---|---|---|
| Runs when your Mac is closed | ❌ No | ✅ Yes | ✅ Yes |
| Applies across all devices automatically | ⚠️ Mac-dependent | ✅ Yes | ✅ Yes |
| Works with non-iCloud providers | ❌ No | ❌ Mostly iCloud only | ✅ Yes (Gmail, Outlook, Yahoo, etc.) |
| Supports AppleScript / advanced local actions | ✅ Yes | ❌ No | ❌ No |
| Good for “must-not-miss” emails | ⚠️ Only if Mac is open | ✅ Yes | ✅ Yes |
| Age-based cleanup (e.g. delete after 30 days) | ❌ No | ❌ No | ✅ Yes |
| Bulk cleanup of existing messages | ⚠️ Limited | ⚠️ Limited | ✅ Yes |
| Best use case | Power-user, local logic | Core, always-on sorting | Long-term automation & cleanup |
A Few Common Rules to Organize Emails
Here are a few best practices that can help you manage your emails and keep your inbox organized:
- Move emails from specific senders to designated folders (i.e., newsletters, promotions, work-related messages) to declutter your primary inbox.
- Automatically delete or archive old and irrelevant emails.
- Flag urgent or important emails for quick reference.
- Categorize emails based on keywords in the subject line or message content.
- Direct emails with attachments to specific folders for easy access.
- Apply a certain action (i.e., mark as read, flag, delete) to emails from certain domains or addresses.
- Automatically forward emails to another account for backup or delegation purposes.
- Use colors and highlight messages from important senders so they stand out in your inbox. You can also add a flag.
- Highlight messages containing your name or certain keywords to ensure you can see them. You can set up a rule to specify these and choose a color to highlight.
Conclusion
Creating rules in Apple Mail and iCloud Mail can help you streamline your inbox and save time sorting through emails. Say goodbye to manually searching through and missing important emails in the chaos of your inbox!
However, managing rules can take time and effort. If you're on the go, setting them up using your iPhone or iPad can be limiting.
Clean Email helps you set up rules for both web and mobile devices. This mobile app is easy to use, and all features work on any device, including rule creation. And with its customizable features, you can easily create an organized and clutter-free email experience.
Try Clean Email today and discover how to create and customize rules to suit your unique preferences!