Re: [Exim] Forward with MySQL support, how to?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Nico Erfurth
Päiväys:  
Vastaanottaja: andy
Kopio: exim-users@exim.org
Aihe: Re: [Exim] Forward with MySQL support, how to?
On Fri, 28 Mar 2003, andy wrote:

> Hi,
>
> If I would like to forward the message to a number of email address, how
> can I do it with MySQL support? Basically if someone send email to
> abc@???, I want it to deliver a copy to bcd@??? and
> cde@???. Is there an example that will allow me to do this?
> Thanks


I'll assume exim4. Everything can be done with a simple redirect-router
and a lookup.

mysql_redirect:
  driver = redirect
  data = ${lookup mysql {select new_address from forwards where \
                         address='${quote_mysql:$local_part@$domain}'}}



Nico