Re: [Exim] Virtual domain and alias problem

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: exim-users
Subject: Re: [Exim] Virtual domain and alias problem
Björn Lindström <bkhl@???> wrote:
> I have this router in my config:
>
> virtual:
> driver = redirect
> domains = dsearch;/usr/local/etc/exim/virtual
> data =
> ${lookup{$local_part}lsearch*{/usr/local/etc/exim/virtual/$domain}}
> no_more
>
> And here is a typical $domain alias file:
>
> # Alias.
> server: bkhl
>
> # The rest to sten.
> *: sten
>
>
> Now, the problem is that it seems like the messages will first be
> redirected according to the right alias files, which sends them along
> to the alias file corresponding to the canonical name of the server.
>
> That file is the one above. As a result, *everything* is redirected to
> the user sten.
>
> How do I get it to just use _one_ of the virtual domain alias files?


Hmm... what outcome where you expecting from that router / alias file? As it
stands, a mail addressed to server@virtualdomain will be aliased to
bkhl@localhostname. If you want it rewritten to bkhl@virtualdomain instead,
you need a

qualify_preserve_domain

option in the router. But bkhl@virtualdomain will be run through the routing
again, and be aliased to sten@virtualdomain. Is this what you want?

> (I would think that's what no_more means, but no such luck.)


No, that's something else :-)

Peter