Hello together,

I've the following tricky situation and don't know how to solve it.
I've Courier-Authlib, Courier-IMAP and maildrop running on my system. As I'm 
using a pgsql backend I compiled Courier-Authlib accordingly.
Now, as you know, you have to adjust the authpgslrc (it's the same with the 
authmysqlrc) with DB settings and define the proper column names of the 
table.
As I don't wanna use the email address as login name, I created also a 
column in my table, which holds additionally "normal" usernames.
e.g. I have a user called "trikkar01", who has the password "123abc" and the 
email address "[EMAIL PROTECTED]" in my DB.
So far so good - Now, for connecting via Webmail or Mailclient to the 
Courier-IMAP the login is "trikkar01" (instead of "[EMAIL PROTECTED]") 
and the password "123abc"....and that's working perfectly!
But now of course the trouble starts with maildrop. As maildrop is using the 
same authpgsqlrc configuration via the Courier-authlib, mails can't be 
delivered as maildrop is giving the email address of the recepient as input 
for the SQL query, so in that case "[EMAIL PROTECTED]". And that is of 
course not matching with "trikkar01".
If I change now the settings in the DB and configure that the email address 
equals the username for login, then of course it's working for maildrop but 
sadly then I have also to use the email address as login name for webmail 
and mailclient. But that's not what I want!

So the question is:
Does someone know, if there's a possibility to create two authpgsqlrc files 
- one for courier-imap and one for maildrop? Or any other solution, that the 
authdaemon could handle two different sql queries? Or is it for the moment 
simply not possible, that Courier-Authlib can handle currently such a 
request. - Then it would be possibly a useful enhancement in one of the next 
releases....

The only solution (if there is no better one) that has come into my mind is, 
that I could create a second Courier-Authlib instance (in another directory) 
and recompile maildrop to use the second authlib instance. Then both 
Courier-IMAP and maildrop would have there own Courier-Authlib with 
authdaemon and authpgsqlrc.

Thanx for your support!

regards,
Ron

_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit 
Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu! 
http://desktop.msn.de/ Jetzt gratis downloaden!


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to