Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #36415

seeking a script or tool for a specific anti-spam use case

From Robert Riches <spamtrap42@jacob21819.net>
Newsgroups comp.os.linux.misc
Subject seeking a script or tool for a specific anti-spam use case
Date 2022-12-09 04:42 +0000
Organization none-at-all
Message-ID <slrntp5f6b.o9c.spamtrap42@one.localnet> (permalink)

Show all headers | View raw


I'm seeking a script or tool for a specific anti-spam use case:

  - read incoming mail in /var/mail/$USER (mbox format, of course)

  - if header Message-ID: line ends in ".amazonses.com and the
    address in the From: is from a domain that is not registered,
    then put the message in $HOME/mail/spam (mbox format)

  - else retain the message in /var/mail/$USER (mbox format)

Apparently a really nasty spammer got hold of my real (not
spamtrap42) email address and has been sending a few messages per
day, some of the with subject lines I consider offensive.
Unfortunately, some legitimate businesses still use Amazon SES
(despite their lousy reputation for coddling spammers), so I
can't filter just on Message-ID being from amazonses.com

More details:

I use MX Route as my email service provider (after the previous
provider closed down), with fetchmail periodically pulling from
MX Route and sending to procmail to archive and deliver.  I don't
want to change the fetchmail->procmail setup, so I need to filter
after delivery to /var/mail/$USER.  There are some Python
libraries that support mbox format, so I'll plan to write my own
script if a lower-cost solution isn't available.

Thanks.

-- 
Robert Riches
spamtrap42@jacob21819.net
(Yes, that is one of my email addresses.)

Back to comp.os.linux.misc | Previous | NextNext in thread | Find similar


Thread

seeking a script or tool for a specific anti-spam use case Robert Riches <spamtrap42@jacob21819.net> - 2022-12-09 04:42 +0000
  Re: seeking a script or tool for a specific anti-spam use case "Carlos E.R." <robin_listas@es.invalid> - 2022-12-09 15:14 +0100
    Re: seeking a script or tool for a specific anti-spam use case Robert Riches <spamtrap42@jacob21819.net> - 2022-12-10 03:37 +0000
  Re: seeking a script or tool for a specific anti-spam use case Fritz Wuehler <fritz@spamexpire-202212.rodent.frell.theremailer.net> - 2022-12-10 04:47 +0100

csiph-web