Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Enable Junk Mail Filtering in Apple Mail

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Apple Mail can automatically move suspected spam into a Junk folder, keeping your inbox clean. This guide shows you how to turn on and configure junk mail filtering on macOS and iOS/iPadOS, and how to fine-tune it so legitimate emails don't get caught. You'll need your Mac, iPhone, or iPad with Apple Mail set up with at least one email account.

What You'll Need

  • A Mac running macOS (any recent version) or an iPhone/iPad running iOS/iPadOS.
  • An email account already configured in the Mail app (iCloud, Gmail, Yahoo, Exchange, or other IMAP/POP accounts).
  • Administrator access on your Mac (to change Mail settings, though usually not required).

Step-by-Step

On Mac (macOS)

  1. Open Mail – Click the Mail icon in the Dock or find it in Applications.
  2. Open Preferences – From the menu bar at the top of the screen, click Mail > Settings (or Preferences in older versions).
  3. Go to Junk Mail – In the settings window, click the Junk Mail tab (looks like a trash can icon).
  4. Enable filtering – Under “Junk Mail Behavior,” select one of the following:
    • No filtering – disables junk mail filtering entirely.
    • Move it to the Junk mailbox – (recommended) automatically moves suspected spam to the Junk folder.
    • Mark it as junk mail, but leave it in my Inbox – highlights suspected spam but keeps it in your inbox.
    Choose Move it to the Junk mailbox for automatic filtering.
  5. Set trust rules – Check or uncheck these options based on your preference:
    • Sender of message is in my Contacts – Mail will never mark emails from your contacts as junk.
    • Sender of message is in my Previous Recipients – similar, for people you've emailed before.
    • Message is addressed using my full name – helps avoid false positives.
    It's safe to leave all three checked.
  6. Advanced filtering (optional) – Click the Advanced button (bottom right) to set custom rules, like ignoring junk filtering for specific accounts or applying custom actions. You can usually skip this.
  7. Close settings – Click the red close button. Your changes are saved automatically.

On iPhone/iPad (iOS/iPadOS)

  1. Open Settings – Tap the gear icon on your home screen.
  2. Scroll to Mail – Tap Mail (not the Mail app itself, but the settings entry).
  3. Find Junk Mail section – Scroll down to the Junk Mail section (usually under “Message List” or “Composing”).
  4. Enable filtering – Toggle on Filter Unknown Senders (this is the main junk filter on iOS). This moves emails from unknown senders to the Junk folder if they don't match your contacts or previous recipients.
  5. Adjust sender rules – Under the same section, you can set Sender options: choose Contacts & Previous Recipients to allow emails from those to bypass junk filtering, or Contacts to only allow contacts.
  6. Exit settings – Press the home button or swipe up. Changes are saved.

Note: Menu labels may differ slightly depending on your macOS or iOS version, but the core options are the same.

Common Mistakes

  • Turning on filtering but not checking the Junk folder – Legitimate emails can end up there. Regularly review your Junk folder and mark false positives as “Not Junk.”
  • Disabling filtering entirely – If you turn it off, spam will pile up in your inbox. Keep it on, even if you occasionally need to rescue a good email.
  • Not whitelisting contacts – If you don't have the “Sender is in my Contacts” option checked, emails from friends may get filtered. Make sure that's enabled.
  • Forgetting to train the filter – Apple Mail learns from your actions. If you never mark emails as Junk or Not Junk, the filter stays less accurate.
  • Expecting it to work perfectly on POP accounts – Junk filtering works best with IMAP accounts (like iCloud, Gmail, Yahoo). POP accounts may have limited junk filtering capabilities.

Tips

  • Train the filter manually – When you see a spam email in your inbox, select it and click the Junk button in the toolbar (or right-click > Mark as Junk). Conversely, if a good email lands in Junk, select it and click Not Junk. This improves accuracy over time.
  • Use the “Previous Recipients” option – This is useful for people you email regularly but haven't added to Contacts.
  • Check the Junk folder periodically – Even with good filtering, false positives happen. Set a reminder to skim the Junk folder weekly.
  • For iCloud accounts – You can also manage junk mail settings at iCloud.com > Mail > Settings > Junk Mail, which syncs with your Mac and iOS devices.
  • If you use Gmail, Yahoo, or Outlook – Those services have their own spam filters that work independently. Apple Mail's filter is an additional layer. Make sure your account's server-side spam settings are also configured (e.g., Gmail's Spam folder).

Troubleshooting

If junk mail filtering isn't working as expected, try these steps in order:

  1. Check the Junk folder – Sometimes emails are filtered but you're not seeing them because the Junk folder is hidden. In Mail on Mac, go to View > Show Junk Mailbox (or look in the sidebar under “Mailboxes”).
  2. Restart Mail – Quit and reopen Mail (Cmd+Q on Mac, or swipe up on the app switcher on iPhone). This can refresh the filter.
  3. Update your device – Ensure your Mac or iPhone is running the latest OS version. Apple often improves junk filtering in updates.
  4. Sign out and back into your email account – In Mail settings, remove the account and re-add it. This resets the connection and can fix sync issues.
  5. Reset Mail's learning – On Mac, go to Mail > Settings > Junk Mail and click Reset (if available). This clears the filter's learned data. You'll need to retrain it by marking emails manually.
  6. Check server-side filters – If you use Gmail, log into Gmail's web interface and check if spam is being sent to the Spam folder there. If so, adjust Gmail's settings. Apple Mail can't override server-side rules.
  7. If nothing works – Delete the account from Mail and re-add it. This is a last resort but often fixes persistent issues. You won't lose any emails, but you may need to re-enter passwords.

Frequently Asked Questions

Does Apple Mail's junk filter work with all email providers?

It works with any IMAP or POP account, but it's most effective with iCloud, Gmail, Yahoo, and other major providers. Some providers have their own strong spam filters that may override or complement Apple's.

Will enabling junk mail filtering delete my emails?

No. It only moves suspected spam to the Junk folder. Emails are not permanently deleted unless you manually empty the Junk folder. The Junk folder is typically emptied automatically after 30 days (you can change this in Mail settings).

How do I mark an email as “Not Junk” if it's in the Junk folder?

Select the email in the Junk folder, then click the Not Junk button in the toolbar (or right-click > Mark as Not Junk). On iPhone, open the email and tap the Not Junk button at the bottom.

Why did a legitimate email go to Junk?

This happens when the sender isn't in your Contacts or Previous Recipients, or when the email's content triggers spam filters. You can prevent it by adding the sender to Contacts or checking the “Sender is in my Contacts” option in settings.

Can I turn off junk filtering for a specific account?

On Mac, you can go to Mail > Settings > Junk Mail > Advanced and uncheck the account(s) you want to exclude. On iPhone, there's no per-account toggle; you'd need to disable the filter entirely.

Does Apple Mail filter junk on the server or on my device?

It filters locally on your device, but for iCloud accounts, Apple also does server-side filtering. For other accounts, it's purely local. This means the filter may behave differently across devices if you use multiple.