* Kirill Miazine <lists@???> [20020409 12:00]:
> > > Exim 4. :)
> > >
> > > If you can't upgrade, you can use a router like:
> > >
> > > encrypt_router:
> > > condition = "${if eq {$received_protocol}{encrypted} {0}{1}}"
> > > driver = domainlist
> > > route_list = "*"
> > > transport = encrypt_transport
> > > errors_to = postmaster
>
> This can be easily done with Exim 3. Use system filter.
>
> #check if this message has already been processed
> if not first_delivery then
> finish
> endif
> #send the message to your program if it hasn't been so yet
> if $received_protocol is not "foobar" then
> pipe "/your/program $sender_address $recipients"
> endif
>
> /your/program does whatever it wants with the message (it gets sender
> and recipient addresses passed as arguments) and then reinjects the
> message to Exim with by calling 'exim -oMr foobar'
Don't do it that way. Do that with a router and a special transport.
--
Kirill