Re: [Exim] alias boggle?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Johansson Jan
CC: exim-users
Subject: Re: [Exim] alias boggle?
On Mon, 20 Aug 2001, Johansson Jan wrote:

> i have an a.alias which contains
>
> muuh@???
>
> and i have transport/directors as follow


<transport snipped>

> vdom_aliases:
> driver = aliasfile
> file = /etc/a.aliases
> search_type = lsearch
> # user = exim
> transport = vdom_delivery


> WHich gives me:
>
> 2001-08-20 13:31:46 15YnHV-0006hZ-00 ** muuh@???:
> unknown local-part "muuh" in domain "expressen.skyddsrummet.net"
>
> WHich means there is something i do not understand in how things work?


1. You have missed the fact that by default, alias lookups use only the
local part, not the complete address. You need to set "include_domain"
on your aliasfile director if you want it to lookup
"muuh@???" instead of just "muuh".

2. Using aliasfile with a transport is no longer recommended, as it is
confusing. This kind of usage won't be available in Exim 4, so using
another way is more future-proof.

> How on earth do i accept arbitrary usernames to arbitrary domain names?


3. Lots of ways. How about:

arbitrary user:
driver = smartuser
condition = ${lookup{$local_part@$domain}lsearch{/etc/a.aliases}{yes}{no}}
transport = vdom_delivery



-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.