[Exim] external filter and/or procmail

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Leonardo Boselli
Datum:  
To: exim-users
Betreff: [Exim] external filter and/or procmail
for certain addresses (tha y can easily group since all begin with "lss-"
and have a different domain name tha "ordinary" users) i should pass
messages ONLY if they pass a "test" .
This test is done using an external program that get as stdin the message
and return a value of 0 if it is ok or -1 if not valid.
So i cannot use (or I can ????) a procmail recipe as:
:0fw
| /usr/bin/spamoracle mark

that add an header to the message, since the message is lost ...

(or using ":0 cw" with a ? test , then ":0 a" then ":0 e" would work ?)

So, how to feed to a filter a message , retrieve the test result and if ok
forward the message into a mailbox ?

(as in : DUP ; IF (TEST == 0) {POP; DELIVER; } else { POP;
BOUNCE;}

--
Leonardo Boselli
Nucleo Informatico e Telematico del Dipartimento Ingegneria Civile
Universita` di Firenze , V. S. Marta 3 - I-50139 Firenze
tel +39 0554796431 cell +39 3488605348 fax +39 055495333
http://www.dicea.unifi.it/~leo