Re: [exim] multiple domain alias files and wildcard entries

Pàgina inicial
Delete this message
Reply to this message
Autor: Justin Koivisto
Data:  
A: exim-users
Assumpte: Re: [exim] multiple domain alias files and wildcard entries
Justin Koivisto wrote:

> Odhiambo G. Washington wrote:
>
>> Some off-list advice for a newbie...
>
> What is happening is that the vdom_alias envelopes to koivi@???,
> which it should. However, koivi us a local user, and that is where I
> want it delivered. Instead, koivi@??? is tested and gets routed to
> spam@??? because there isn't a koivi:koivi entry in the domain
> alias file. I do not want to accept mail addressed directly to
> koivi@???.
>
> What can I do to fix this?


OK, so right now my alias files look like:

justin: koivi@localhost
user: user@localhost
...
*: spam@localhost

This works the way I expect, so if I send mail to david@???,
and have an entry like:
david: david@localhost

in the r5 alias file, the mail is delivered directly to the user account
without having to put in a david entry into the koivi.com alias file.

Same with the justin@??? - it now delivers to koivi@localhost
without checking for koivi@???

Is there a way I can do this without having to add the @localhost part
to my alias files? I would assume that there is a way to specify in the
router to try with $local_part@localhost instead.

The current router looks like:

vdom_aliases:
    driver = redirect
    allow_defer
    allow_fail
    domains = dsearch;/etc/mail/virtual
    data = 
${expand:${lookup{$local_part}lsearch*@{/etc/mail/virtual/$domain}}}
    retry_use_local_part
    pipe_transport   = address_pipe
    file_transport   = address_file
    no_more


I was thinking of just appending "@localhost" to the end of the data
expansion, but then if I have something like:

script: "|/home/user/script.sh $local_part $domain"

It would translate to: "|/home/user/script.sh $local_part
$domain@localhost" and mess some things up...

TIA

PS - RTFM links to documentation very welcome. I'm still trying to get
the correct terminology for all this, so my searches don't quite yeild
what I'm looking for...