--On 3 December 2010 17:00:20 +0100 Sandro Tosi <sandro.tosi@???>
wrote:
> Hello,
> we are setting up a quite complex architecture with exim, and we wanted
> to implement this workflow:
>
> 1. for each delivery, scan the message (with clamav and spamassassin)
> and add (for each) a header with the result of the scan
> 2. for each message routing, check if teh user has defined a filter to
> handle spam (and virus) messages, and in that case "do the action"
> specified (that's usually add a string in front of the Subject, but can
> be also mail discard or so) [the filters are read from a db, and each
> user can have their own set of filters, different from the others]
>
> Sadly, the 2. point fails because of
>
> == <recipient> R=filters defer (-17): error in filter data: header
> addition and removal is available only in system filters: near line 2 of
> filter file
>
> Is there a way for a user filter to change message headers? If yes, how?
> :) if not, how would you do that?
We can, and do, store individual 'system filters' in each user's ldap
entry. They're system filters in two senses:
1) they can do anything a system filter can do, and
2) we don't let users edit them.
However, we do have a web application that permits users to edit their user
filters. It presents a simple interface to forwarding and vacation
messages. You could do something similar for a system filter.
>
> Thanks in advance,
> --
> Sandro Tosi
> Product Engineer
> Linux based Solutions
> Hosting Products
> R&D | Dada.pro
> sandro.tosi@???
--
Ian Eiloart
IT Services, University of Sussex
01273-873148 x3148
For new support requests, see
http://www.sussex.ac.uk/its/help/