Hi all, my environment: dovecot-1.0.rc15 Fedora Directory Server 1.0.2 Currently I've configured dovecote to find user's mail folder like this: dovecot.conf mail_location = maildir:/var/vmail/%d/%u/Maildir All my domain mailboxes are under /var/vmail, as evident. But there are some users whose mail folders are directly under /var/vmail like this one: /var/vmail/myuser1 at mydomain1.com also, some have their folder names starting with caps like: /var/vmai/mudomain1.com/Myuser1 at mydomain1.com This creates problems when these users try to login. Here I want dovecote to kind of assemble the mail storage path from mailMessageStore ldap attribute of the particular user. i.e, dovecot should add the mailMessageStore attribute's value to /var/vmail. Can somebody help me in solving this issue? regards, raja. -- +91 944 715 5548(Cell)
Hi Raja, Raja T Nair schrieb:> This creates problems when these users try to login. Here I want > dovecote to kind of assemble the mail storage path from > mailMessageStore ldap attribute of the particular user. i.e, dovecot > should add the mailMessageStore attribute's value to /var/vmail.Try something like: user_attrs = uid,homeDirectory,mailMessageStore,uid,uidNumber,gidNumber (See http://wiki.dovecot.org/DovecotOpenLdap#line-304) You could also wrap a script around your mail_executable and set $MAIL in there. See http://dovecot.org/list/dovecot/2006-December/018029.html Benjamin -- Benjamin Dabelow dabelow at tuxoft.de Offenburger Str. 29 tuxoft.de 69126 Heidelberg Germany -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20061211/0f54c7b1/attachment.bin>
> Currently I've configured dovecote to find user's mail folder like this: > dovecot.conf > mail_location = maildir:/var/vmail/%d/%u/MaildirThats a good setup. For simplicity's sake, why not use it?> > All my domain mailboxes are under /var/vmail, as evident. But there > are some users whose mail folders are directly under /var/vmail like > this one: > /var/vmail/myuser1 at mydomain1.com >Move or symlink them. Maintenance and migration is a lot easier if you use a uniform layout. -- Kenny Dail <kend at amigo.net>
Hi, I have created symlinks to all the mail folders with caps in their name. but that does not solve the issue. If a user types in mixed case username( e.g. RtNaiR for rtnair ), dovecot creates a new mailfolder for that username; Is there a way to instruct dovecot not to create a mailbox and throw an error if the folder does not exist? raja. On 12/12/06, Kenny Dail <kend at amigo.net> wrote:> > > > Currently I've configured dovecote to find user's mail folder like this: > > > > dovecot.conf > > > > mail_location = maildir:/var/vmail/%d/%u/Maildir > > > > > > Thats a good setup. For simplicity's sake, why not use it? > > > > :) yes i agree. but the problem is that some of the existing ldap > > entries need to be changed. there are more than 15,000 mailboxes and > > problem users are randomly distributed. currently i'm using > > courier-imap and it perfectly lands each user in his/her own mailbox. > > the only problem i find with courier is that it becomes sluggish at > > peak hours. > I'll admit I'm ignorant in matters of ldap, is it really very hard to > pull a list of all aberrant entries? With only 15000 total accounts, > even if they all needed correcting, it wouldn't take very long to > symlink them all. > > -- > Kenny Dail <kend at amigo.net> > >-- +91 944 715 5548(Cell)