> > from Email Archive: courier-imap:
> > The problem I have is allowing users to continue using their shell
> > account username until they can change over to the new virtual username
> > (<user>@domain.tld). So both logins use the same mail account.
> >
> > Can this be done, if so how?
> 
> Yes it can be done. Look in the "authmysqlrc" file especially at the 
> MYSQL_WHERE_CLAUSE and MYSQL_SELECT_CLAUSE.
>
> It is possible to manipulate these two parameters so you can say "SELECT .... 
> FROM .... WHERE username = "$(local_part)" OR username = 
> "$(local_part)@$(domain)"
> 
> This syntax may be slightly erroneous, but it should give you an idea :)
>
> Cheers,
> Gavin.

hi,

answer on my problem is already there, but it isnt "full" and im to lame.., 
what i did:

Usertable is mailbox,

MYSQL_SELECT_CLAUSE     SELECT username, "", password, '1002', '103', 
'/mail-2005/etc/virtual', maildir, quota, name, "" FROM mailbox WHERE username 
= '$(local_part)' OR username ='$(local_part)@$(domain)'

It doesnt work, 

can sameone help me with this pleas.

# Sorry for my eng, it isnt my secondary language..

Miran Åerak



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to