Re: [Exim] saving spam

Top Page
Delete this message
Reply to this message
Author: Daniel O'Neill
Date:  
To: Chris Knipe
CC: exim-users
Subject: Re: [Exim] saving spam
--
this is an idea, i don't know how your setup is or if this is a viable
option, but..

in your filter's director section, you can put "unseen = yes" in, so
exim doesn't stop processing it right there, thus it can make it to the
director which plops the mail into the spam folder

hope that helps!

On Fri, 2002-11-08 at 23:06, Chris Knipe wrote:
> Lo all,
>
> I'm trying to store each individual user's spam into a separate mailbox that
> only that have access to. Using spamassissin, I've setup a basic filter to
> catch the messages using the subject prefix...
>
> system.filter:
> # Mail flagged as spam by spam assasin.
> if first_delivery and
>    $h_X-Spam-Flag: contains "YES"
> then
>    logfile /var/log/exim/spam.log
>    logwrite "$tod_log From: $h_From: Subject: $h_Subject: \n \t
> X-Spam-Status: $h_X-Spam-Status: Sender: $sender_address"
>    save /var/spool/mail/$domain/$local_part-spam/
> #   if $h_From: is not ""
> #   then
> #      mail to $h_From: subject "Re: Your last message to me"
> #           expand file /usr/local/etc/exim/spamreply.txt
> #           once /var/log/exim/spamcount
> #           once_repeat 5d
> #   endif
>    seen finish
> endif

>
> This, does not work :-(
>
> I've also tried in exim.conf:
> message_filter_directory_transport = spam_delivery
>
> And the transport:
> spam_delivery:
> driver = appendfile
> no_from_hack
> prefix = ""
> suffix = ""
> maildir_format
> create_directory
> directory = "/var/spool/mail/${lc:$domain}/${lc:$local_part}-spam/"
> user = exim
> group = exim
> mode = 0660
>
>
> But that too, doesn't work...
>
> Does anyone have some ideas for me how to get this working?
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>

--
Cheers!

Daniel F. O'Neill
IT Manager

The Lodging Company / SkiBC.com
p. 250 979 3939 x.227
f. 250 868 6752

#100 - 1465 Ellis St.
Kelowna, BC, CA

--
Content-Description: This is a digitally signed message part

[ signature.asc of type application/pgp-signature deleted ]
--