On Wed, 7 Mar 2001, Eric Kuzniar wrote:
> john@??? -> john@???
> bob@??? -> bob@???
> user8@??? -> user8@???
>
> What is the correct way to configure this in a mysql auth table? My
> current auth table is configured as such
Well, the really easiest way is not to bother with mysql, and just write
some_name:
driver = smartuser
domains = mydomain.com
new_address = $local_part@???
but I guess you could look it all up using something like this:
some_name:
driver = smartuser
domains = mysql;select new_domain from some_table where domain='\$key';
new_address = $local_part@$domain_data
Totally untested. IANAMU (I am not an MySQL user).
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.