How to Set Up iCloud Mail Rules (Server-Side Filtering)

The short answer
iCloud Mail rules are server-side filters that run on Apple's infrastructure, not on your Mac or iPhone. Create them at icloud.com in any browser, or at Settings > Apps > Mail > iCloud Mail Rules on iOS 17 and iPadOS 17 and later. Once active, they apply to every incoming message at your @icloud.com address whether every device you own is switched off.
iCloud Mail rules run on Apple's servers and apply everywhere, even when your Mac and iPhone are off. Create them at icloud.com or in iOS 17+ Settings.
On this page
- 01The short answer: iCloud rules run on Apple's servers, not on your devices
- 02Before you start
- 03How to set up iCloud Mail rules at icloud.com
- 04How to set up iCloud Mail rules on iPhone or iPad (iOS 17 and later)
- 05Which platforms let you create and manage iCloud Mail rules
- 06Why isn't my iCloud Mail rule working?
- 07A faster way: continuous filtering across every account
Learning how to set up iCloud Mail rules is different from setting up any other email rule you may have used, because iCloud rules do not live on any device. They run on Apple's servers, which means they apply every time a message arrives at your @icloud.com address — whether your Mac, iPhone, and iPad are all switched off at the same time.
That server-versus-client distinction is the piece most guides on this topic skip, and it matters for understanding what you actually get. A rule created in Apple Mail on your Mac is a local, client-side rule: it runs inside the app on that computer and stops the moment you close the lid. An iCloud Mail rule is a server-side filter: it runs on Apple's infrastructure and fires on every incoming message regardless of what any device is doing.
This guide covers where to create iCloud Mail rules — at icloud.com in any browser, and from iPhone and iPad Settings on iOS 17 and later — the conditions and actions available, step-by-step setup on each platform, and what to do when a rule is not firing.
The short answer: iCloud rules run on Apple's servers, not on your devices#
iCloud Mail rules are processed by Apple's infrastructure after a message arrives at your @icloud.com address, before any client downloads it. A rule that moves messages from a particular sender into a folder fires whether that sender emails you at midnight, while you are travelling without your laptop, or before you have opened any app for the first time that day.
There are two places to create them. You can use icloud.com in any web browser — this is the original interface and works on any operating system. Since iOS 17 and iPadOS 17, you can also manage them from Settings on iPhone or iPad. Both paths create identical server-side rules; only the entry point differs.
New rules take up to 15 minutes to activate
Before you start#
You need an Apple ID with iCloud Mail enabled, meaning you have an @icloud.com address. If your Apple ID has only a third-party address — Gmail, Outlook, or another provider — linked to it, the iCloud Mail rules in this guide do not filter that mail. iCloud rules only apply to mail arriving at an @icloud.com address.
The second point to confirm before you start: iCloud Mail rules and Apple Mail rules on a Mac are two entirely separate systems. Rules you create in Apple Mail (Mail menu > Settings > Rules on a Mac) are stored locally on that computer and only run inside the app. They have no connection to iCloud's server-side rules, and changes in one system do not appear in the other.
Two rule systems that do not sync
How to set up iCloud Mail rules at icloud.com#
The icloud.com path works from any browser on any platform — Mac, Windows, Linux, Chromebook. Sign in with your Apple ID at icloud.com, open Mail, and follow the steps below. Apple allows up to 500 iCloud Mail rules per account, and each rule takes up to 15 minutes to activate after saving.
- 1
Open Mail at icloud.com
Sign in to icloud.com with your Apple ID and click the Mail icon in the app grid.
- 2
Open Mail Settings
Click the gear icon at the bottom of the left sidebar, then choose Settings from the menu that appears.
- 3
Select Rules
In the Settings panel, click the Rules tab. Your existing rules are listed here.
- 4
Add a Rule
Click Add a Rule (shown as a plus button in some browsers). A dialog box opens.
- 5
Name the rule
Type a specific name so you can identify the rule when auditing your list later. 'Move newsletters from Brand X' is more useful than 'Rule 3'.
- 6
Set the condition
Under Message, choose a condition from the dropdown: From, To or Cc, Subject, or List-ID. Then type the matching text. For filtering an entire sending domain, choose From and enter @example.com — this matches any address at that domain, not just a single address.
- 7
Choose an action
Under Action, select what happens when the condition is met: Move to Folder, Move to Trash, Forward to (an email address), or Mark as Read. You can also combine: Move to Folder plus Mark as Read, or Forward plus Mark as Read.
- 8
Save and wait
Click Done. The rule is saved to your iCloud account. Allow up to 15 minutes for it to activate on Apple's servers, then send a test message to confirm it fires.
How to set up iCloud Mail rules on iPhone or iPad (iOS 17 and later)#
Apple added a device-side entry point for managing iCloud Mail rules in iOS 17 and iPadOS 17. The path is in the Settings app, not inside the Mail app itself — the Mail app on iPhone does not have a rules panel. The same 500-rule limit, the same conditions, and the same actions apply. You are creating identical server-side rules; only the starting point differs.
The exact path varies by iOS version. On iOS 18 and later: Settings > Apps > Mail > iCloud Mail Rules. On iOS 17: Settings > your name > iCloud, then under Saved to iCloud tap Mail > iCloud Mail Rules. On iOS 16 and earlier, no device path exists — use icloud.com in a browser instead.
- 1
Open Settings
Tap the Settings app on your iPhone or iPad.
- 2
Navigate to Mail settings
On iOS 18 and later: tap Apps, then Mail. On iOS 17: tap your name at the top of Settings, then iCloud, then scroll to Mail under Saved to iCloud and tap it.
- 3
Tap iCloud Mail Rules
Find and tap iCloud Mail Rules. Your existing rules appear here — the same list you see at icloud.com, because these are the same server-side rules.
- 4
Add a Rule
Tap the plus button or Add Rule at the top right of the screen.
- 5
Name the rule, set the condition, set the action
Enter a name, then use the pop-up menus to choose a condition (From, To or Cc, Subject, or List-ID) and an action (Move to Folder, Move to Trash, Forward, or Mark as Read). Type the matching text and, for Move to Folder, select the destination folder from your mailbox.
- 6
Save
Tap Add or Done. The rule is saved to your iCloud account and activates server-side within 15 minutes. If you have multiple rules that could match the same message, drag them into priority order — iCloud applies rules top to bottom.
Which platforms let you create and manage iCloud Mail rules#
The same set of iCloud Mail rules is accessible from multiple starting points, but not every platform exposes an editing interface. The table below shows where you can create and manage rules and what caveats apply on each.
| Platform | Access to iCloud Mail rules | Notes |
|---|---|---|
| icloud.com (any browser) | Yes — full rules interface | Works on Mac, Windows, Linux, any device. Mail > gear icon > Settings > Rules. |
| iPhone (iOS 18 and later) | Yes — Settings > Apps > Mail > iCloud Mail Rules | Same 500-rule limit and same conditions and actions as the web interface. |
| iPhone (iOS 17) | Yes — Settings > your name > iCloud > Mail > iCloud Mail Rules | Feature added in iOS 17. Use icloud.com on iOS 16 and earlier. |
| iPad (iPadOS 17 and later) | Yes — same path as iPhone for the matching iPadOS version | Available from iPadOS 17. Use icloud.com on iPadOS 16 and earlier. |
| Mac (Apple Mail app) | No — Apple Mail's rules panel is client-side only | To manage iCloud server-side rules from a Mac, open icloud.com in any browser. |
| Third-party IMAP clients | No direct editing interface | Rules still run. iCloud applies them server-side before IMAP delivery. The client receives filtered mail but cannot view or edit the rules. |
Why isn't my iCloud Mail rule working?#
Most iCloud Mail rule failures come down to one of five causes. Work through this list before assuming something is broken on Apple's end.
- The rule is too new. New and modified rules take up to 15 minutes to activate on Apple's servers. Testing immediately after saving is the most common reason a rule appears not to fire. Set a 15-minute timer, then send a test message that should match the condition.
- The condition does not match the message as expected. iCloud Mail conditions match on the text you enter as a substring. 'From contains @example.com' matches any From address where those characters appear. Open a message that should have been caught and compare its actual From address or Subject field character-for-character against your rule condition. A typo or extra space is enough to break the match.
- The target folder was renamed or deleted. A rule that moves messages to a folder stops working silently if that folder is renamed or removed after the rule was created. Open the rule in icloud.com or iOS Settings, check whether the action still points to a valid folder, and update it if needed.
- You have reached the 500-rule limit. Apple allows up to 500 iCloud Mail rules per account. If you have hit that ceiling, new rules will not save. Open your rules list at icloud.com and remove stale rules — ones for senders you no longer receive mail from — to free up capacity.
- The rule order is wrong. iCloud Mail applies rules in the order they appear in your list, from top to bottom. If an earlier rule catches a message and moves it, a later rule targeting the same message may never run. Drag rules into the right priority order from the list at icloud.com or in iOS Settings.
A faster way: continuous filtering across every account#
iCloud Mail rules handle your @icloud.com address well, but they stop at the provider boundary. If your inbox is also split across Gmail, Outlook, or another provider, you are building separate rule sets in separate interfaces — and auditing separate lists when something breaks.
AI Emaily connects Gmail, Outlook, Microsoft 365, iCloud, and any IMAP account in a unified inbox, and applies rules described in plain language across all of them at once. The Rules and Context Brain lets you say what you want — 'move newsletters from any account to a review folder' or 'flag anything from my top clients' — and that logic runs across every connected account without a per-provider setup step. When a new sender pattern appears, you describe it once rather than updating a separate list in each provider.
We build AI Emaily. If your mail lives in more than one inbox, the rules brain is worth a look.
Frequently asked
See it in AI Emaily
Sources

Written by
Nafiul HasanNafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.