Re: [Exim] SQL and Forwarding methods.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nico Erfurth
Dátum:  
Címzett: Eric Renfro
CC: exim-users@exim.org
Tárgy: 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