Re: [Exim] Filter howto.

Página Inicial
Delete this message
Reply to this message
Autor: Jason C. Leach
Data:  
Para: Sheldon Hearn
CC: exim-users
Assunto: Re: [Exim] Filter howto.
hi,

I don't really get what they are talking about with the scanned-ok or -f
option.

Would I set an entry like this I have below? And how do I set the
'scanned-ok' and '-f' option.

Thank,
j.


         vircheck:
           driver = smartuser
           transport = virus_scan
           condition = "${if or {{eq {$received_protocol}{scanned-ok}} \
                                 {eq {$sender_host_address}{127.0.0.1}}}\
                                 {0}{1}}"
       command = /root/scripts/filter.py

    
......................
..... Jason C. Leach
..

On Thu, 14 Jun 2001, Sheldon Hearn wrote:

>
>
> On Thu, 14 Jun 2001 10:17:12 MST, "Jason C. Leach" wrote:
>
> > I would like to pipe all email through a program. Does anyone know how I
> > can do this assuming the program is called filter.py and is done in
> > Python?
>
> Quite a detailed answer to this question can be found in the answer to
> this FAQ:
>
>    Q0823: I'd like to pass all messages through a virus-scanning system
>    before delivery. Can Exim do this?

>
> Don't be mislead by the term "Exim filter", which is not quite what you
> want. Essentially, you'll want to use the pipe transport's `command'
> option to point to filter.py using its full path. Make sure the Python
> script is executable and uses the shebang (#!) construct so that exec()
> knows which interpreter to use.
>
> Ciao,
> Sheldon.
>
>