1 message in net.sourceforge.lists.courier-users[courier-users] LDAP Vitualhosting
FromSent OnAttachments
Chris BennettJul 22, 2006 11:04 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] LDAP VitualhostingActions...
From:Chris Bennett (chri@kryogenic.net)
Date:Jul 22, 2006 11:04:51 am
List:net.sourceforge.lists.courier-users

Hello everyone.

I'm currently virtualhosting using a mysql backend, and am in the process of migrating this setup to an LDAP directory.

I'm currently storring my mail in /home/vmail/domain/user by means of the following in my authmysqlrc:

MYSQL_HOME_FIELD '/home/vmail' MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')

I understand that this is only made possible through creative SQL syntax, but I realy like the simplicity of this as compared to having the value set in each LDAP query. Is there a way of doing something similar to this either through authmodule.ldap or through similarly creative LDAP syntax?

perhaps a format flag simalar to postfix? result_attribute = mail result_format = %d/%u/

Thanks in advance for any help you may be able to provide

(PS. for ease of replying to messages, please CC: me on any replies to this email)