Spam from a well-known organization that sells large lots of knockoffs of everything from drones to roombas
uses random domains in the From:, Message-ID:, and Reply-To: fields,
all different, without even a common trailing xyz.com.
(Nonspam mail tends to share domain names for at least Message-ID: and Reply-To:.)
Can a recipe in ~/.procmailrc detect such spam, to then forward it to a spam folder?
Fancy regexes with named capturing groups?
Something about chaining actions with 'A' or 'a'?
Call procmail recursively, as suggested by its manpage?
A 'filter' to pass the mail's header to a script written in a language with better string processing?
An example: namebrandwigs.com, mysuburbankitchen.com, aliyun.com.
From soumedyfenkoa@namebrandwigs.com Wed Mar 17 09:27:54 2021
Return-Path: <soumedyfenkoa@namebrandwigs.com>
X-Original-To: ---
Delivered-To: ---
Received: from mysuburbankitchen.com (unknown [5.253.84.113])
by --- (Postfix) with ESMTP id 332025E236
for <--->; Wed, 17 Mar 2021 09:27:53 -0500 (CDT)
To: ---
Subject: drone with new features
Message-ID: <75d167a6b7be6548dcb16af2cf729811@sweetwater.com>
Date: Wed, 17 Mar 2021 08:13:03 +0100
From: "Jake Allen" <soumeayfenkoa@namebrandwigs.com>
Reply-To: teogingsilklo@aliyun.com
MIME-Version: 1.0
X-Mailer-Sent-By: 1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Status: RO
<html>
<head>
</head>
<body>
<span style="display: block; text-align: left;"><span style="display:
block; text-align: left;">Hi,<br /><br /><span>Hope all is well.</span><br
/>We are contacting you today to let you know that we have got the
following new drone, ready to ship to worldwide customers.<span><span><br
/><br /></span></span></span></span><span style="display: block;
text-align: left;"><span style="display: block; text-align:
left;"></span></span><span style="display: block; text-align: left;"><span
style="display: block; text-align: left;"><span style="display: block;
text-align: left;"></span></span></span><span style="display: block;
text-align: left;">Explore new places and amp up your videography skills
with the our F9 4K HD camera drone.
...
Other examples, similarly formatted, but lacking flaggable text in the message body:
- a leather massage chair from momentumwatch.com / musicalley.com
- a roomba from mtndewkid.com / myhondafitev.com / constructiongear.com
- a video projector from hairrehablondon.com / hairocean.com / hotmail.com