Re: [Exim] CDB lookup / redirect rule

Góra strony
Delete this message
Reply to this message
Autor: Peter Bowyer
Data:  
Dla: exim-users
Temat: Re: [Exim] CDB lookup / redirect rule
Ken Jackson <k.jackson@???> wrote:
> ----------------------------------
> 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??


Yep

> cdb_lookup:
> driver = redirect
> allow_fail
> allow_defer
> data = cdb;/exim/staff.cdb


Should be:
data = ${lookup{$local_part}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?


Right-hand-side, you mean?

The modified line above does the lookup part, and the redirect driver does
the magic.

You could try running your v3 config through the 'convert4r4' script to
check what it does with that director.

Peter