Re: [Exim] SQL and Forwarding methods.

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: Eric Renfro
Cc: exim-users@exim.org
Asunto: Re: [Exim] SQL and Forwarding methods.
On Thu, 31 Oct 2002, Eric Renfro wrote:

> Hey, I'm trying to setup a pgsql lookup for forwards.
>
> I've got a pgsql view setup to look specifically for forwards, which resembles
> the following:
>
>  alias_idnr |       alias        |       deliver_to
> ------------+--------------------+------------------------
>          28 | peon@??? | psi-jack@???

>
> How, in an exim4.1 router/transport, could I make that work so it forwards it
> to the appropriate address?


Didn't you ask this last week?

pgsql_forward:
  driver = redirect
  data = ${lookup pgsql {select deliver_to from TABLE where alias = \
    '${quote_pgsql:$local_part}@${quote_pgsql:$domain}'}{$value}}



ciao