Possible to block unwanted email from my inbox in Mojave, or is that only available post-Mojave?

I've had a lot of trouble trying to block spam and unwanted email from reaching my Mac viaEarthlink webmail, but I discovered an Apple Mail procedure for doing the same thing in MacOS daily. As I tried to follow the instructions it quickly became clear that none of the details matched what I was dealing with on my Mac, running Mojave. I have to stick with Mojave, so is there a procedure for blocking unwanted email in Mojave, or am I out of luck?

Mac Pro, macOS 10.13

Posted on Jan 5, 2021 8:40 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 5, 2021 11:48 AM

You can only effect inbound email with a Mail rule. The spammers may use one or more email servers to send you different From header content that varies by email address that has nothing to do with the originating server. Trying to write a rule to address this type of spamming nonsense will exhaust and anger you. What I have had success with is an email header field that is not on the Mail header menu by default. This is Return-Path, which points at the originating mail server, regardless of the gibberish that may be in the From header field.


I was receiving around 30 spams a day from what looked like a variety of sources in the From header. When I started looking at the Return-Path for these emails, I noticed a pattern that in many cases on varied by a single character. When I set up rules to handle emails from certain partial Return-Path servers, I was able to handle all of the spam from those servers. Here is what I created in Mail Preferences : Rules : Junk_2:



The actual Return-Path header strings are quite long and end in the actual server name. The similar patterns control several SPAM messages from a single organzation, and you can see there are four shown here. Does not matter what game they play in the From header field, I move all of their matching emails to Trash with these rules.


In Mail, select a single email that you know is SPAM. Then visit Mail Preferences : Rules and Add Rule, and then edit it.


By default, Return-Path is not a default header field selection in Apple Mail, and you would ordinarily see From instead. Click on that From entry and you see a long menu of selectables with the Last item on the menu being Edit header list… . Select that, and enter a new Header item name spelled exactly as Return-Path, and then add it.


Remember, your SPAM email message is still selected. In your Mail rule, change the default From header to the newly added Return-Path, set the middle selection to contains, and the Return-Path address of the orginating server will automatically populate on the right. Now, onto the Perform the following actions section. I have [ Move Message ] to mailbox: [ All Trash ]. When you click OK, it will offer to apply the rule and when it does, your selected message gets whacked into Trash.


Select the next SPAM email, and then repeat editing your Mail rule, adding + another Return-Path header entry, and clicking OK to apply it and impact that specific SPAM message. It shouldn't be too long before you see a pattern and a drop in SPAM coming to your Inbox.

4 replies
Question marked as Top-ranking reply

Jan 5, 2021 11:48 AM in response to Birck Cox

You can only effect inbound email with a Mail rule. The spammers may use one or more email servers to send you different From header content that varies by email address that has nothing to do with the originating server. Trying to write a rule to address this type of spamming nonsense will exhaust and anger you. What I have had success with is an email header field that is not on the Mail header menu by default. This is Return-Path, which points at the originating mail server, regardless of the gibberish that may be in the From header field.


I was receiving around 30 spams a day from what looked like a variety of sources in the From header. When I started looking at the Return-Path for these emails, I noticed a pattern that in many cases on varied by a single character. When I set up rules to handle emails from certain partial Return-Path servers, I was able to handle all of the spam from those servers. Here is what I created in Mail Preferences : Rules : Junk_2:



The actual Return-Path header strings are quite long and end in the actual server name. The similar patterns control several SPAM messages from a single organzation, and you can see there are four shown here. Does not matter what game they play in the From header field, I move all of their matching emails to Trash with these rules.


In Mail, select a single email that you know is SPAM. Then visit Mail Preferences : Rules and Add Rule, and then edit it.


By default, Return-Path is not a default header field selection in Apple Mail, and you would ordinarily see From instead. Click on that From entry and you see a long menu of selectables with the Last item on the menu being Edit header list… . Select that, and enter a new Header item name spelled exactly as Return-Path, and then add it.


Remember, your SPAM email message is still selected. In your Mail rule, change the default From header to the newly added Return-Path, set the middle selection to contains, and the Return-Path address of the orginating server will automatically populate on the right. Now, onto the Perform the following actions section. I have [ Move Message ] to mailbox: [ All Trash ]. When you click OK, it will offer to apply the rule and when it does, your selected message gets whacked into Trash.


Select the next SPAM email, and then repeat editing your Mail rule, adding + another Return-Path header entry, and clicking OK to apply it and impact that specific SPAM message. It shouldn't be too long before you see a pattern and a drop in SPAM coming to your Inbox.

Jan 6, 2021 4:50 AM in response to tbirdvet

That is the real problem. I've used Earthlink's ""blocked sender list" for about two years, and it seems to create as many problems-for the people and organizations I actually want to hear from-as it does filter out the unwanted ones. It's a mess. I have to check Earthlink Webmail every day multiple times in search of email I'm expecting (such as new password requests) , but which, for some reason, I have not received. Earthlink has blocked it, in spite of the fact that the "offending" email address bears no resemblance to anything on my Blocked Sender List. Then I have to apologize to the sender and supply a different email address (my iCloud address) for them.

Jan 10, 2021 9:09 AM in response to VikingOSX

OK, I'll bite. I did a bit of digging into my email system, and from the standpoint of knowing absolutely nothing about it, I came up with two examples of what I think you are talking about, and "Return -path" crops up twice in each view of the Header:

I have no problem accessing the Rules pages, but I'm stumped over the identity of "Return-path". Which is it? "1axb5/1axcke2"?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Possible to block unwanted email from my inbox in Mojave, or is that only available post-Mojave?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.