Re: [EXIM] Wanted: external filtering?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Sherwood Botsford
Fecha:  
A: Philip Hazel
Cc: Lee McLoughlin, exim-users
Asunto: Re: [EXIM] Wanted: external filtering?
On Wed, 28 Jan 1998, Philip Hazel wrote:

= On Wed, 28 Jan 1998, Lee McLoughlin wrote:
=
= > I've read throught filter.txt and haven't found a way to do this.
= >
= > What I'd like to do is run an external filter program from my .forward
= > over incoming email to decide if its spam and use the exit code (or
= > output?) in a conditional. This is to decide wether to junk the message
= > or use the remaining rules in my .forward.
=
= There is no way to do this. The filter doesn't do deliveries, it sets
= up deliveries. The deliveries all happen at a later time, in separate
= processes (in the case of local deliveries). It is then far too late to
= use the results of (e.g. a pipe) delivery to affect the forward file.
=

This is what procmail is for. I'm working on setting up procmail as
a secondary filter. Exim makes the quick and easy decisions, that
are based on sender. Procmail to be used for filtering on content.

E.g.

:0 B:
*Extractor Pro Bulk E- Mail Software
/var/spool/exim/spam/Extractor

:0 B:
* -150^1 live sex
* -150^1 adults only
/var/spool/exim/spam/sex


(So far the above hasn't caught anything yet.)

I've been adding body dependent clauses as I figure out how to do it.

I've also set up a local user called 'spam' and encourage my users to
bounce any mail to spam.

Sherwood Botsford     | email avatar@???
Sorcerers Apprentice    | Office CAB 642B
System Administrator    | Tel: 403 492 5728 
Trouble shooter            | Fax: 403 492 6826



--
*** Exim information can be found at http://www.exim.org/ ***