Re: [Exim] CDB lookup / redirect rule

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Andreas Metzler
Data:  
Para: exim-users
Assunto: Re: [Exim] CDB lookup / redirect rule
On 2004-07-22 Ken Jackson <k.jackson@???> wrote:
[...]
> k.jackson:jacksonk@???

[...]
> ----------------------------------
> with Exim v3, we have a director:


> cdb_lookup:
> driver = aliasfile
> file = /exim/staff.cdb
> search_type = cdb
> # user = exim
> file_transport = address_file
> pipe_transport = address_pipe


> --------------------------------------
> with Exim v4, is it a router??


> cdb_lookup:
> driver = redirect
> allow_fail
> allow_defer
> data = cdb;/exim/staff.cdb
> # user = exim
> file_transport = address_file
> pipe_transport = address_pipe


> -----------------------------------


> How exactly does it look up the local part of the incoming alias
> (K.Jackson) on the left-hand side of the colon in the CDB file, and
> redirect/deliver it to the full address on the left-hand side of the
> colon?


I doubt your exim4 router works, I think you need to use
data = ${lookup{$local_part}cdb{/exim/staff.cdb}}
which also is exactly what convert4r4 would generate.
                   cu andreas


--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"