Re: [exim] Exiscan-ACL, SpamAssassin, Subject header

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Oliver Egginger
Date:  
À: Jeremy Beaty
CC: exim-users
Sujet: Re: [exim] Exiscan-ACL, SpamAssassin, Subject header
> Is there a way to re-write the Subject header in the ACL or would I
> need to do it in a router or transport?


You will need a transport filter for doing this.

> Would I be better off configuring SpamAssassin to rewrite the Subject
> header or would that interfere with the ACL?


In this case set up spamassassin to run _after_ the message is accepted.
Exiscan is useful if you like to reject spam messages during smtp time.

> so that I can scan messages for viruses and spam in the data ACL so
> that the bad messages can be rejected


Fine, but if you have rejected a message it would be completly useless
to change additionally the content of this message. This would not have
any effect.

> it is only adding another Subject header.


Yes, "warn message = ..." adds a header line. Use transport filters to
change the content of a message.

- oliver


Am Fr, den 21.01.2005 schrieb Jeremy Beaty um 6:37:
> I have recently upgraded Exim to version 4.43 and with that installed the Exiscan-ACL patch
> so that I can scan messages for viruses and spam in the data ACL so that the bad messages can
> be rejected rather than accepted and then trashed. Everything seems to be working fine except
> that where I thought I was rewriting the Subject header, it is only adding another Subject header.
> I followed the examples provided in the Exiscan-ACL documentation by putting the following in the data ACL:
>
>     warn  message = Subject: *****SPAM***** $h_Subject
>             spam = nobody

>
> Is there a way to re-write the Subject header in the ACL or would I need to do it in a router or transport?
> Would I be better off configuring SpamAssassin to rewrite the Subject header or would that interfere with the ACL?
>
> BTW, I'm using SpamAssassin 3.0.1. It works great.