exim system filter problem
Nigel Wade
nmw at ion.le.ac.uk
Wed Jun 2 09:02:54 UTC 2004
Zeremski Boris wrote:
> Hello,
>
> I use exim 4.30, spamassassin and amavis.
> I try to use system filter to take a copy of SPAM mark message an to deliver same
> message to original recipient.
>
> When I test filter, everything seems to work normal
> When I look log files, it seems that message deliver to original recipient, but
> never get to mailbox. There is no message in queue.
>
> What I'm doing wrong?
>
> Here is my system filter
>
> # Exim filter
>
> if not first_delivery
> then
> finish
> endif
>
> if first_delivery and $h_X-Spam-Status: contains "YES"
> then
> logfile /var/log/exim/spamlog
> 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/SPAMMAILS
> # mail to "$local_part@$domain" # try this with no success
> finish
> # mail to $recipients # try this with no success
> # seen finish # blackhole
> finish
> endif
>
> Any good tutorial about exim filter ?
>
> Thanks
>
> Boris
>
>
save is a 'significant action' which means that no other delivery will be
attempted for this message.
You need to preceed it with 'unseen' to get it to continue to normal
delivery i.e.
unseen save /var/spool/mail/SPAMMAIL
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw at ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
More information about the users
mailing list