Apple Mail Rules Not Running When Mail Is Closed
Apple Mail rules only run while Mail is open and your Mac is on. Move rules to iCloud.com or Gmail filters so they run on arrival, and see Mailloft's limit.
GuideUpdated 6 min read
On this page
You set up a rule in Mail, closed the app (or shut the lid), and the message sat unsorted in the Inbox. You searched for "apple mail rules not running when mail is closed server side" and want to know whether a server-side rule can do the job. It can, with some trade-offs.
We make Mailloft, so here is our limit up front. Mailloft rules are local too. They run on new Inbox mail only while Mailloft is running, and the optional background helper does not run them. Server-side rules still belong on your provider's website.
Why Mail rules stop when Mail is closed
Your provider (iCloud, Gmail and so on) stores and delivers messages. Mail's rules are a feature of the app. The app downloads a new message, checks it against your rules, then moves, flags or deletes it. If the app isn't running, nothing checks the message, and it stays in the Inbox on the server.
Three things follow:
- With the Mac off or Mail closed, no client rule runs.
- Your iPhone, iPad and webmail show the message unsorted until the Mac's app has processed it.
- A client rule moves the message after it has already arrived, so notifications on other devices can fire before any sorting happens.
A server-side rule is applied by the provider when the message arrives, whether or not any of your devices are on. We can't tell you whether Mail catches up on mail that arrived while it was closed, so test that with your own account.
Where each kind of rule should live
| You want to... | Put it here | Why |
|---|---|---|
| Sort or archive mail while your Mac is off | Server (iCloud.com rule or Gmail filter) | The server runs it on arrival |
| Same sorting on iPhone, iPad and every Mac | Server | The result is stored on the server, so every app sees it |
| Forward mail automatically | Server | It must happen with no app running. Mailloft has no forward action |
| A condition the web editor doesn't offer | Client (Mail or Mailloft) | Web editors can offer fewer conditions, so check each rule |
Fix 1: Move the rule to iCloud Mail on the web
Use this for an iCloud address, whichever app you read it in. Apple's own steps are in Set up rules to filter email in Mail on iCloud.com.
- Go to
icloud.com/mailand sign in to your Apple Account. - Open the Mail settings from the Settings button at the top of the Mailboxes list.
- Select Rules in the sidebar, then use the Add button.
- Enter a name, set the type of message to match, then set the action.
- Select Add.
- With Mail closed on your Mac, send yourself a test message from another address and check where it lands.
Apple's page also covers rule order and limits, so read it if you have many rules. Give a new rule a few minutes before deciding it is broken.
Fix 2: Move the rule to a Gmail filter
Gmail filters run on Google's servers, so they work in any app that reads the account. Google's page is Create rules to filter your emails.
- Open Gmail in a browser.
- In the search box at the top, click the Show search options button.
- Enter your criteria. Click Search to check which emails match.
- At the bottom of the search window, click Create filter.
- Choose what the filter should do, then click Create filter again.
To edit or delete filters later, go to Settings > See all settings > Filters and Blocked Addresses. Google notes that a filter created to forward messages affects only new messages, so it won't touch mail already in the account.
For Fastmail, Yahoo and other providers, look for filters or rules in that provider's webmail settings.
Fix 3: Keep a client rule where it is, and accept the limit
Some conditions can't be expressed in a web editor. If you keep those as client rules, they only run while the app is open on a Mac that is awake and online. Treat them as a convenience for when you're at the Mac, and put anything time-critical on the server.
What Mailloft rules can and can't do
Mailloft has no server-side filters. Its rules are a local alternative to Mail's, with the same limit.
- When they run: on new Inbox mail, on this Mac, while Mailloft is running. The editor says so: "Runs on new Inbox mail while Mailloft is open."
- What they match: From, To, Cc, Subject, Body, Sender Domain, Mailing List, Attachment and Account, matching all or any conditions. Body matches only the fetched preview text.
- What they do: Move to Folder, Archive, Move to Trash, Mark as Read, Star, Move to Tab, Notify and Don't Notify. There is no forward action.
- The helper: the optional helper (Settings ▸ Writing ▸ Sending ▸ Send scheduled mail even when Mailloft is closed) sends due scheduled mail, brings back snoozed mail and checks follow-up reminders. It does not run rules.
- Sync: rules stay on the Mac where you made them.
To make a rule in Mailloft:
- Open Mailloft's Settings and choose Rules.
- Click Add Rule…, or right-click a message and choose Create Rule from Selection… to prefill the condition.
- Pick conditions and actions, then save.
- To run the rule once on mail already in your Inbox, choose Apply to Inbox….
We don't promise Mailloft runs rules on mail that arrived while it was closed. After a stretch with the app closed, use Apply to Inbox… to catch up, and check Recent Activity in Rules to see what ran. Details are in Rules, folders, Junk, archive and delete.
If a rule doesn't run even with the app open
| Cause | Symptom | Fix |
|---|---|---|
| Rule is switched off | Nothing happens | Open the app's rules settings and make sure the rule is enabled |
| Earlier rule got there first | Mail is moved elsewhere | Reorder the rules and check for actions that stop later rules |
| Mail is already there | Old messages untouched | Rules act on new mail. In Mailloft, use Apply to Inbox…. In Mail, look for an option to apply rules to selected messages |
| Mail isn't in the Inbox (Mailloft) | Rule skips it | Mailloft rules run on new Inbox mail only |
| Body condition (Mailloft) | Phrase in a long message not matched | Use Subject or From instead |
| Locked license or offline (Mailloft) | No new mail arrives | Enter a license, or reconnect. A locked license means no sync |
Checklist before you rely on a server rule
- The rule is saved on iCloud.com or in Gmail settings, not only in Mail.
- You waited a few minutes after saving.
- You tested with Mail closed, using a message from another address.
- The matching client rule is turned off or deleted, so the two don't conflict.
- Any destination folder or label still exists.
If nothing works
Contact Apple Support for iCloud rules, or Google's Gmail help for filters. Include the provider, the rule's conditions and action, when you sent the test message and what happened. Say which app you read the mail in.
My iCloud Mail rule (name: "Receipts") should move mail from a given sender into a folder. It is saved at icloud.com/mail > Settings > Rules. I sent a test message at 14:05 from another address with Mail closed on my Mac, and it stayed in the Inbox after 30 minutes. The folder exists. Steps tried: reordered rules, recreated the rule. What else can I check?Common questions
Will rules catch up when I reopen the app?
We haven't verified this for Apple Mail, so test it with your own account. For Mailloft, the editor only covers new Inbox mail while the app runs, so use Apply to Inbox… after you launch it.
Can I run rules on my iPhone?
Not client rules. The iPhone shows what the server has done, which is why server rules give the same result on every device.
Should I delete my Mail rules after making server rules?
Only the ones that duplicate a server rule. Keep client rules for anything the server editor can't express.
Does Mailloft's helper run rules while the app is closed?
No. The helper sends scheduled mail, wakes snoozes and checks follow-ups only.