[Exim] Autoforwarding to spamcop

Top Page
Delete this message
Reply to this message
Author: Greg Webster
Date:  
To: exim-users
Subject: [Exim] Autoforwarding to spamcop
From the archives:

Paul Slootman paul at murphy.nl
Thu, 17 Jan 2002 16:52:40 +0100
wrote the following:
> This is the relevant begin of my .forward:
> # Exim filter
>
> if $h_subject: begins "*****SPAM*****"
> then
>     pipe "/home/paul/bin/spamtospamcop $sender_address $h_from
>     $h_subject " save Mail/SPAM
> endif

>
> spamtospamcop is a simple script to send the spam to spamcop with a
> suitable subject line (so that I can see from spamcop's reply subject
> whether it possibly may be non-spam):
>
> #!/bin/sh
> sender="$1"; shift
> h_from="$1"; shift
> subject="`expr \"$1\" : '...............\(.*\)'`"
> exec spamassassin -d | mailx -s "SPAM [$sender: $h_from: $subject]"
> submit.youruniqueaddress@???


I gave this a shot (obviously changing paths, spamcop address, etc.) with
no success...it keeps the mail in the incoming queue while this is in
place, only allowing it through when I rename .forward and run "exim -bp".
Does anyone know why?

Thanks,

GregW