Re: [Exim] Trying to get SpamAssassin to reject mail

Pàgina inicial
Delete this message
Reply to this message
Autor: Paul
Data:  
A: Exim Users
Assumpte: Re: [Exim] Trying to get SpamAssassin to reject mail
----- Original Message -----
From: "Patrick Boutilier" <boutilpj@???>
To: "Exim Users" <exim-users@???>
Sent: Thursday, February 27, 2003 6:14 PM
Subject: [Exim] Trying to get SpamAssassin to reject mail


> Exim 4.12 and SpamAssassin 2.50
>
> I am trying to get Exim to reject mail that SpamAssassin determines to
> be spam. I use exiscan for virus scanning but I want spam scanning to be
> optional and a per user basis. All my users are stored in a MySQL
> database. I have the following router and transport working but I can't
> think of a way to get either Exim or SpamAssassin to reject the mail
> instead of delivering it to the user. Any ideas/thoughts? Thanks.


Patrick

I had a similar wish. In the end I created a new userpref called
Reject_Threshold (stored in MySQL) and modified a couple of modules in SA to
add a 'X-Reject-Flag' header if the score was above this value. It was then
simply a case of creating a router in Exim which called a transport if any
mail had this header. The transport was simply an appendfile with the file
specified as '/dev/null'. It works fine, and is particularly useful when
used with blacklists in SA as the very high score means it goes straight to
the bitbucket.

Paul