Email, Messaging, & Video Calls > Email 53 53 people found this article helpful How to Filter Spam With Apple Mail Keep junk mail out of sight and out of your inbox By Tom Nelson Tom Nelson Facebook Twitter Writer Tom Nelson is an engineer, programmer, network manager, and computer network and systems designer who has written for Other World Computing,and others. Tom is also president of Coyote Moon, Inc., a Macintosh and Windows consulting firm. lifewire's editorial guidelines Updated on July 17, 2020 Tweet Share Email Tweet Share Email Email Yahoo! Mail Gmail What to Know Go to Mail > Preferences and click the Junk Mail icon. Ensure Enable junk mail filtering is checked and then set your preferences.To set custom junk mail rules: Preferences > Junk Mail > Perform custom actions > Advanced. Set your conditions. To mark an incoming message as junk, select it and click the Junk icon. This marks the message as junk mail and moves it. This article explains how to use Apple Mail's built-in spam filter and fine-tune it to meet your needs by customizing the settings. Turn On Junk Mail Filtering You'll find the Junk Mail settings in Mail's Preferences menu. To view or edit the junk mail filter, select Preferences from the Mail menu. The keyboard shortcut to open Preferences is Command+, (comma). Click the Junk Mail icon. Confirm that the box next to Enable junk mail filtering has a check mark in it. If not, click it. Choose from three basic options for how Mail can handle junk: Mark as junk mail, but leave in my inbox. This setting lets you check the messages Mail marks as junk without having to leave your inbox. It's a good setting to use when you first start filtering junk so that you can easily see which messages Mail is applying its rules to.Move it to the Junk mailbox. Mail can move suspected junk mail to the Junk mailbox. If you're new to using Mail, you might choose this option until you feel comfortable about its accuracy.Perform custom actions and click Advanced to configure. You can set up additional filters to perform custom actions on junk mail. Select any of the exempt messages options to exempt messages from the junk filter. They are: Sender of message is in your Address Book or Contacts app. This option stops the filter from grabbing messages from people you know.Sender of message is in your Previous Recipients. The spam filter won't mark messages from people you've emailed before.Message was addressed using your full name. Most spammers don't know your full name and are more likely to send messages using just the first part of your email address hoping it's your first or last name. It's generally safe to check all three categories, but you can deselect any or all of them if you prefer. You have two more options to consider at this level. Trust junk mail headers in messages. Many ISPs or spam mail services you may be using add a junk mail header to the email message before sending it along to you. This setting tells Mail to assume the header is correct and assign it as junk. Filter junk mail before applying rules. If you're using Mail rules, a method to automate everyday routine mail tasks, you can have Mail keep the junk from passing through your Mail rules. Custom Junk Mail Filtering Options Aside from the default options, you can also apply extra rules that decide when the junk filter grabs a message. On the Junk Mail tab in Preferences, click the Perform custom actions radio button and then select Advanced. Setting up custom filtering options is similar to creating rules for other mail. You tell Mail what it should do with messages that meet the conditions you set. First, specify whether any or all of the conditions you specify must be met. Your options are all or any. Click the drop-down menus to decide how you want to filter your mail. Add more conditions by clicking the plus (+) button on the right side of the window, or click the minus (-) button to remove ones you've set. Use the pop-up menus under the Perform the following actions section to tell Mail how it should handle messages that meet the conditions you specified. This line also has plus and minus buttons that tell Mail to perform multiple actions with messages that meet the conditions. When you're satisfied with the settings, click OK. How to Mark Mail as Junk or Not Junk The filters don't always work correctly, and you may have to mark messages as spam manually. Apple Mail can also mistakenly flag messages you want to read. Here's how to fix those mistakes. In your inbox, click on a junk message to select it. Click the Junk icon to mark it as junk mail. Mail highlights junk mail in brown, so it's easy to spot. Conversely, if you look in the Junk mailbox and see that Mail tagged a legitimate email message as junk mail by mistake, click once on the message, click the Not Junk icon to re-tag it and then move it to the mailbox of your choice. The Not Junk Mail button is in the same place as the Mark as Junk button. It's worth scanning the Junk mailbox before you empty it to make sure you don't miss anything important. The easiest way to do this is to sort messages in the Junk mailbox by subject. So many spam messages have similar subject lines that this speeds up the process of checking them. You can also sort by the sender because many spam messages have names in the From field that are obviously bogus. But there are enough legitimate-sounding names to require double-checking the subject line, which takes more time than just checking by subject in the first place. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit