Re: [exim] Run filter from ACL

Top Page
Delete this message
Reply to this message
Author: David Ward
Date:  
To: W B Hacker
CC: exim users
Subject: Re: [exim] Run filter from ACL
The message should not be removed until the end of the data acl
(according to the docs) and it works that way for me.

Maybe try just echoing a message from your script to a log file to see
if it is running, although I would think exim would log a message if
it didn't (such as not executable).


Dave
--

On 11/1/06, W B Hacker <wbh@???> wrote:
> Marlon wrote:
> > Hi David,
> >
> >
> >> I think you might need to separate the block after the malware = *
> >> line since if there is no virus then that returns false and then the
> >> rest of the lines will not be processed in that deny block.
> >>
> >>
> >> check_message:
> >>   deny    message = This message contains a virus or other harmful content
> >> ($malware_name)
> >>   malware = *

> >>
> >> ### SPLIT HERE
> >>
> >> warn logwrite = Classificando mensagens
> >> set acl_m0=${run {/usr/bin/exim_osbf_lua \
> >> $spool_directory/scan/$message_id/$message_id.eml} \
> >> {$value}{}}
> >> #set acl_m0=${run {/bin/cat \
> >> #$spool_directory/scan/$message_id/$message_id.eml \
> >> #OSBF_LUA_DIR/spamfilter.lua --udir=$home/osbf-lua} {$value}{}}
> >> #accept condition = ${if !eq{$acl_m0}{}}
> >> #add_header = X-OSBF-Lua-Score: ${extract {result}{$acl_m0}}
> >> control = no_mbox_unspool
> >>
> >> accept
> >
> >
> > I separate the block after malware, like your example, but still not
> > working. :(
> > I can see the warn message on log: "Classificando mensagens", but the
> > message is not proccessed by osbf-lua.
> > I´m using the option "control = no_mbox_unspool" to don´t delete .eml on
> > spool directory, but a "ls -l" on this directory show that it´s empty.
> >
> > Could the problem be the exim version that I´m running, 4.60 ?
> >
> > Regards,
> >
> > Marlon
> >
>
> Untested...
>
> But I think you need the " control = no_mbox_unspool " on the earlier section,
> not the later section.
>
> ELSE the 'malware' call will dispose of the message when it finishes looking at it.
>
> Bill
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/