[Dovecot] LDAP schema for mailLocation?
Hi,
I would like to try implementing user specific default_mail_env's as described here:
http://wiki.dovecot.org/moin.cgi/MailLocation
using the LDAP attribute 'mailLocation'.
However, I have been unable to find any LDAP schema which contains mailLocation. What schema is this attribute part of?
Thanks, Jason Pepas
Jason Pepas wrote:
Hi,
I would like to try implementing user specific default_mail_env's as described here:
http://wiki.dovecot.org/moin.cgi/MailLocation
using the LDAP attribute 'mailLocation'.
I'm all ears.
However, I have been unable to find any LDAP schema which contains mailLocation. What schema is this attribute part of?
Maybe, it is possible to put a different attribute-type in there, like "mailMessageStore"? That would be compatible to qmail-ldap and courier.
Bye, Aiko
PS.: Where can I address a feature-request? Adding proxy-support for ldap to dovecot would make this nice piece of software very attractive to qmail-ldap users. But I don't know if you want them around here. ;)
-- Aiko Barz aiko@haeckser.de Web: http://www.haeckser.de
On Fri, 2005-12-16 at 23:51 +0100, Aiko Barz wrote:
Jason Pepas wrote:
Hi,
I would like to try implementing user specific default_mail_env's as described here:
http://wiki.dovecot.org/moin.cgi/MailLocation
using the LDAP attribute 'mailLocation'.
I'm all ears.
However, I have been unable to find any LDAP schema which contains mailLocation. What schema is this attribute part of?
Maybe, it is possible to put a different attribute-type in there, like "mailMessageStore"? That would be compatible to qmail-ldap and courier.
Yes, the attribute you choose is completely arbitrary. Put your mail env in an attribute you feel is appropriate in your LDAP directory and reference it in your user_attrs.
-- Karl Latiss karl.latiss@atvert.com.au Atvert Systems
On Sat, 17 Dec 2005, Karl Latiss wrote:
On Fri, 2005-12-16 at 23:51 +0100, Aiko Barz wrote:
Jason Pepas wrote:
Hi,
I would like to try implementing user specific default_mail_env's as described here:
http://wiki.dovecot.org/moin.cgi/MailLocation
using the LDAP attribute 'mailLocation'.
I'm all ears.
However, I have been unable to find any LDAP schema which contains mailLocation. What schema is this attribute part of?
Maybe, it is possible to put a different attribute-type in there, like "mailMessageStore"? That would be compatible to qmail-ldap and courier.
Yes, the attribute you choose is completely arbitrary. Put your mail env in an attribute you feel is appropriate in your LDAP directory and reference it in your user_attrs.
Just one note, the definition of this attribute should follow the "normal" mail attribute in regards of syntax and matches:
attributetype ( <<local OID>> NAME 'mailType' DESC 'SUP type for various mail address related stuff' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
Of course, one needs an unique local OID, or just take the definition from qmail :
http://www.bayour.com/openldap/schemas/qmail.schema
Bye,
-- Steffen Kaiser
On Fri, Dec 16, 2005 at 11:25:32AM -0600, Jason Pepas may have written:
However, I have been unable to find any LDAP schema which contains mailLocation. What schema is this attribute part of?
I use dovecot with qmail-ldap. I have both shell and virtual users. Here is how I solved the problem:
uid is the username. mailMessageStore is the location of the Maildir. homeDirectory is the directory before the Maildir.
So for a shell user:
uid: shelluser homeDirectory: /home/shelluser mailMessageStore: /home/shelluser/Maildir/
For virtual:
uid: virtuser homeDirectory: /home/vmail/virtuser mailMessageStore: /home/vmail/virtuser/Maildir/
The I can use the regular home directory based definition for default_mail_env.
Cheers,
Brian T Glenn delink.net Internet Services
participants (5)
-
Aiko Barz
-
Brian T Glenn
-
Jason Pepas
-
Karl Latiss
-
Steffen Kaiser