[exim] Router for specific outgoing messages?

Góra strony
Delete this message
Reply to this message
Autor: Jaap Winius
Data:  
Dla: exim-users
Temat: [exim] Router for specific outgoing messages?
Hi folks,

Is it possible to construct a router to intercept outgoing messages
that are destined for a specific address? If so, how?

So far I've managed to write routers, for use with transports and Perl
scripts, to modify incoming messages on the fly. This can be handy,
e.g. for altering text formats with simple search and replace
routines. Mine look like this:

    example:
      debug_print = "R: sda-filter for $local_part@$domain.tld"
      driver = accept
      local_parts = info
      senders = info@???
      transport = example
      condition = "${if eq{$received_protocol}{local-bsmtp}{no}{yes}}"


(Since my Perl scripts send the processed info back to Exim via BSMTP,
the last line is to prevent an endless loop.)

The "senders" line (precondition) is important here, but in the case
of a router for outgoing messages I imagine that something like
"recipients" would be required, except that this doesn't seem to exist.

Any hints as to whether/how this might be possible would be appreciated.

Cheers,

Jaap

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.