Re: [Exim] How to use the autoreply transport

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Christopher Bodenstein
CC: Exim Users list
Tárgy: Re: [Exim] How to use the autoreply transport
On Wed, 17 Apr 2002, Christopher Bodenstein wrote:

> I try to do the following:
> Define a transport user_autoreply
> user_autoreply:
> driver = redirect
> data = ${lookup{$local_part}lsearch{/etc/exim/autoreply}}
> reply_transport = user_autoreply


The only way that will work is if

(a) You set "allow_filter"
(b) The result of expanding "data" is a filter program which includes a
    "reply" command.


> and then the user_autoreply transport
> user_autoreply:
> driver = autoreply
> to = $sender_address
> subject = Out of office
> text = Currently out of office.


Aha! If you want to put all the data (from, to, subject, etc.) on the
transport configuration, then you should use an accept router, not a
redirect router. Like this:

user_autoreply:
driver = accept
local_parts = lsearch;/etc/exim/autoreply
transport = user_autoreply
user = ????

You need the "user" setting either on the router or the transport to
specify the uid for running the transport.

> "However, it can also be run directly from a router like any other
> transport"
> I was wondering how I could do that.


That's what I've just described.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.