[SOLVED] Procmail recipe to delete spam

Kernels & Hardware, configuring network, installing services

[SOLVED] Procmail recipe to delete spam

Postby arzgi » 2018-04-13 05:54

My network service provider marks spam mail by adding *SPAM* to front of header. I have found it to be very reliable, so I want procmail to delete those.

Code: Select all
* H ?? \*SPAM\* /dev/null

This was the recipe I used after reading a lot of procmail docs, but it does not work.

What is wrong?

Debian 9.4

Edit: Bit more searching revealed ISP does use spamassasin, and those messages classified as spam have X-bogosity flag on, so better and working recipe is:

Code: Select all
* ^X-Spam-Flag: YES     /dev/null
Posts: 392
Joined: 2008-02-21 17:03
Location: Finland

Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests