Re: [exim] Spamassassin and pipe

Inizio della pagina
Delete this message
Reply to this message
Autore: Paul Jolly
Data:  
To: Stian Jordet
CC: exim-users
Oggetto: Re: [exim] Spamassassin and pipe
>> So I imagine I need to pipe the results of spamassassin back into
>> exim
>> for redelivery. How do I achieve this?
>
> I don't really remember why I did it this way, but this works for me.
> I'm using it this way because I first check the mail for spam in an
> ACL.
> If it is SPAM, I want to run it through SA again (yeah, I have to many
> CPU-cycles to burn :P) to create the report. Anyway, this is how I do
> it:
>
> transport_filter = /bin/sh -c '${if eq{$acl_m2}{spam}{/usr/bin/spamc
> -U /var/run/spamd.sock -u $acl_m1}{/bin/cat}}'


Thanks for your reply.

If I have understood your answer correctly it applies to a site-wide
configuration of exim. I, however, am trying to pass the message to
spamassassin from within a .forward filter file and then pass the
results back into exim for redelivery.

Any thoughts?


Paul