Re: [exim] Subject rewrite Spamassassin

Pàgina inicial
Delete this message
Reply to this message
Autor: Werner Amon
Data:  
A: exim-users
Assumpte: Re: [exim] Subject rewrite Spamassassin
Patrick von der Hagen wrote:

> Werner Amon wrote:
>
>> Hi,
>>
>> How can i make it possible, that exim4 rewrites my subject if
>> spamassassin has tagged my message?
>> The tagging itself works fine, but i have it only in the headers, the
>> local.cf of spamassassin is ok, but the subject of the tagged mails is
>> not rewritten.
>>
>> I need this systemwide.
>> Can anybody help me with this?
>
> How do you run spamassassin? Using exiscan? sa-exim? .forward-files
> for your users?
> Personally I'd prefer exiscan, which has a very good documentation.
>
> <Quote>
> For the subject tag, we prepare a new subject header in the ACL, then
> swap it with the original Subject in the system filter.
>
> In the DATA ACL, put this:
>
> warn message = X-New-Subject: *SPAM* $h_subject:
>      spam = nobody

>
> In the system filter, put this:
>
> if "${if def:header_X-New-Subject: {there}}" is there
> then
>    headers remove Subject
>    headers add "Subject: $h_X-New-Subject:"
>    headers remove X-New-Subject
> endif
> </Quote>

>
> Please provide more information abour your setup, if you don't use
> exiscan.


Ok thanks, but where to put the system filter?

Werner