2 messages in net.sourceforge.lists.courier-users[courier-users] Authenticating off mu...
FromSent OnAttachments
Darryl HarveySep 18, 2007 8:27 am 
Lindsay HaisleySep 18, 2007 9:48 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Authenticating off multiple MysQL Db's ? Is it possible?Actions...
From:Darryl Harvey (dar@harvey.net.au)
Date:Sep 18, 2007 8:27:31 am
List:net.sourceforge.lists.courier-users

Hi,

I have a requirement to authenticate POP and IMAP users off two separate mysql databases using Courier IMAP.

I can get one working fine, it has been for ages, but we are consolidating two mail servers into one and the Database Schema's are different, and for a lot of other reasons we cannot merge the DB's into a single DB.

So we need to auth from either DB, if a valid user exists in either DB, grab their info and let them in.

Is it possible? is there any way to specify two instances of authmysql ?

Maybe I can use authmysql for one and authpam (using pammysql) for another (but if I use authpam, I would need to have the users directory path in /etc/passwd ?

Both DB's are in mysql, They can share the same DB username/password, but the DB, tables and fields are different. Can anyone point me int the right direction?

I hope so,

thanks in advance.

Darryl