Re: [Exim] Filter howto.

Top Page
Delete this message
Reply to this message
Author: Sheldon Hearn
Date:  
To: Jason C. Leach
CC: exim-users
Subject: Re: [Exim] Filter howto.

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.