Szerző: Patrice Fournier Dátum: Címzett: Tim Tassonis CC: exim-users Tárgy: Re: [Exim] Questions using transport filter
Hi Tim,
Quoting Tim Tassonis <timtas@???>:
> > encrypt_router:
> > condition = "${if eq {$received_protocol}{encrypted} {0}{1}}"
> > driver = domainlist
> > route_list = "*"
> > transport = encrypt_transport
> > errors_to = postmaster
> >
> > and set an encrypt_transport according to your need (see the pipe
> > driver). The command you will call in that transport will need to pass
> > the message back to exim with protocol encrypted (-oMr encrypted).
> > Search for amavis and/or SpamAssassin for examples of such setups (I'm
> > not sure there are routers examples for SpamAssassin but there are for
> > amavis).
>
> I'm not sure if I understand this right. When will this condition be
> matched? I have to call my programm for every outgoing mail there is.
> It's not clear to me who sets the value for $received_protocol to
> encrypted and under what circumstances. If it is set if the mail is
> sent/received using TLS, this would be the wrong approach.
This condition will match every message that was not passed by the
encrypted protocol. To set the protocol to encrypted (or anything you
want), you call exim with -oMr encrypted (or the word you want). As you
pipe the message to a program that will reinject the message in exim, you
don't want to cause a loop and pipe it again to the same program... that's
why we use this special protocol.
> On a second note: if it makes it easier I might also switch to Exim 4. I
> checked the online documentation, but didn't find anything appropriate
> there as well. Can you give me a hint how it is done in exim 4 and what
> to look for in the documentation?
The exim 4 version will be similar with an accept router and a check for
non-local domains...