Re: [Exim] forwarding

Top Page
Delete this message
Reply to this message
Author: Sheldon Hearn
Date:  
To: PAZINCZAR Peter
CC: exim-users
Subject: Re: [Exim] forwarding

On Wed, 13 Jun 2001 15:47:02 +0200, PAZINCZAR Peter wrote:

> virtual_aliases:
> driver = aliasfile
> domains = ${lookup mysql {select domain from domains where
> domain='${domain}' and dtype='maildomain'}{$value}}
> search_type = mysql
> query = "select u.forward from users as u,domains as d where u.domain_id
> = d.domain_id and d.domain = '${domain}' and u.user = '${local_part}' and
> u.type ='alias'"
>
> and this worx fine, if fw addr. is set, this directs the message to it.
> but, i don`t know how to do this forwarding, if i want to leave a copy for
> the user on my server too in /var/mail/${domain}/${local_part}, or if i
> had two forward addresses....


Sounds like you want 'queries' instead of 'query'. See the "Aliasfile
private options" section of the Exim manual.

Ciao,
Sheldon.