Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Procmail recipe to delete spam

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

[SOLVED] Procmail recipe to delete spam

#1 Post by arzgi »

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

:0
* 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

Post Reply