Re: [Exim] substituting $local_part after mysql query

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Peter Lockhart
CC: exim-users
Subject: Re: [Exim] substituting $local_part after mysql query
On Mon, 17 Apr 2000, Peter Lockhart wrote:

> I am setting up a mysql-driven exim to deliver mail to non-system users.
>
> My director:
>
> mysql_system_aliases:
> driver = aliasfile
> search_type = mysql
> query = "select userid from domain_table where aliasid='$local_part'
> and domain='$domain'"
> transport = local_delivery

    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
This is your problem. Aliasfile operates *entirely differently* if you 
give it a transport. Take that away, and it will do normal aliasing, 
that is, turn one address into another, which is independently 
processed.



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