Re: [exim] Run filter from ACL

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Magnus Holmgren
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Run filter from ACL
On Friday 20 October 2006 18:22, Marlon took the opportunity to say:
>
> I use transport_filter on local_delivery transport to execute osbf-lua
> spam filter(...):
>
> How I can run spamfilter.lua using ACL´s to filter classified messages
> later using a router or a .forward


You can't really filter mail in ACL's. There are two specialised mechanisms
that allow you to pass the whole message to an external program and get some
information back, namely the spam and malware conditions, but spam only works
with SpamAssassin and malware can only check if a particular malware was
found. There are a number of wishes in the Bugzilla database for new string
expansion items that would allow the full message to be passed to an external
command, and the output from that command to be read back, in a generalised
way.

Your best bet is perhaps to write a custom local_scan() function.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)