Re: [Exim] Virtual Addresses -> Local Users

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Giuliano Gavazzi
Data:  
Para: Aaron B. Russell, exim-users
Assunto: Re: [Exim] Virtual Addresses -> Local Users
what do you mean you don't know? If you think that "realuser" will
get the result of the lookup, why don't you just put your lookup
expression in place of "$realuser" in the line below?

Also, your lookup expression is broken:

>"${lookup{${lc:$local_part@$domain}}lsearch{/etc/virtusertable}"


is missing a } at the end.

your file line should be something like:

file =
${lookup{${lc:$local_part@$domain}}lsearch{/etc/virtusertable}{$value}fail}

Giuliano

At 15:56 +0000 2003/01/14, Aaron B. Russell wrote:
>Hi,
>
>I'm trying to set up Exim to redirect mail from virtual email addresses
>so that, say, someone@??? forwarded mail to the user
>"rdavis". The problem I have is that the destination user is not
>always the same as the $local_part of the email address. I have a file
>called /etc/virtusertable which has the mapping in the format:
>
>someone@???:    rdavis
>another@???:    shoskins

>
>Currently, the (broken) config I've got is this:
>
>virtdomain_handler:
> driver = appendfile
> realuser =
>"${lookup{${lc:$local_part@$domain}}lsearch{/etc/virtusertable}"
> file = /var/spool/mail/$realuser
> delivery_date_add
> envelope_to_add
> return_path_add
> group = mail
> mode = 0660
>
>The "realuser" thing breaks the config because there's no such option.
>The reason I tried that was because I don't know how to get at the
>output of that lookup.


--
H U M P H
    || |||
  software


Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/