Re: exim system filter problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux