[Dovecot] LDAP mailLocation weirdness
Hi,
I've reported this some month ago before (without response), but still I have no clue what is going wrong.
Our installation is LDAP based (for virtual hosting) and up to I think alpha2 or 3 everything was working as expected. The trouble I have is that dovecot does not correctly use the information it gets about mailLocation.
This is what is stored in the MailMessageStore attribute for a user "f.someone":
mbox:/virtual/oeush.at/var/mail/f.someone:INBOX=/virtual/oeush.at/var/mail/f.someone
now despite of this setting, this user is unable to fetch any mail, because dovecot partially ignores this setting:
---------CUT--------- dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): Effective uid=200, gid=4000 dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): mbox: data=/virtual/oeush.at/home/f.someone/mail/:INBOX=/var/mail/f.someone.oeush.at dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): mbox: root=/virtual/oeush.at/home/f.someone/mail, index=/virtual/oeush.at/home/f.someone/mail, inbox=/var/mail/f.someone.oeush.at ---------CUT---------
As you can see, dovecot uses /virtual/oeush.at/... both for data and index but not for inbox, where it uses /var/mail/...
My LDAP configuration for the mailLocation settings looks like this:
---------CUT--------- # User attributes in order: # Virtual user name (user@domain) # Home directory # MAIL environment # System user name (for getting user's groups from /etc/group) # - For virtual users you don't want to use this, so this defaults to none. # System UID # System GID user_attrs = uid,homeDirectory,MailMessageStore,,uidNumber,gidNumber ---------CUT---------
So where am I wrong?
Udo Rader
-- BestSolution.at EDV Systemhaus GmbH http://www.bestsolution.at
On Sat, 2006-02-04 at 13:47 +0100, Udo Rader wrote:
dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): Effective uid=200, gid=4000 dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): mbox: data=/virtual/oeush.at/home/f.someone/mail/:INBOX=/var/mail/f.someone.oeush.at dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): mbox: root=/virtual/oeush.at/home/f.someone/mail, index=/virtual/oeush.at/home/f.someone/mail, inbox=/var/mail/f.someone.oeush.at ---------CUT---------
As you can see, dovecot uses /virtual/oeush.at/... both for data and index but not for inbox, where it uses /var/mail/...
That's probably from default_mail_env?
user_attrs = uid,homeDirectory,MailMessageStore,,uidNumber,gidNumber
Try this:
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid,MailMessageStore=mail
On Tue, 2006-02-07 at 17:06 +0200, Timo Sirainen wrote:
On Sat, 2006-02-04 at 13:47 +0100, Udo Rader wrote:
dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): Effective uid=200, gid=4000 dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): mbox: data=/virtual/oeush.at/home/f.someone/mail/:INBOX=/var/mail/f.someone.oeush.at dovecot: Feb 04 12:20:42 Info: pop3(f.someone.oeush.at): mbox: root=/virtual/oeush.at/home/f.someone/mail, index=/virtual/oeush.at/home/f.someone/mail, inbox=/var/mail/f.someone.oeush.at ---------CUT---------
As you can see, dovecot uses /virtual/oeush.at/... both for data and index but not for inbox, where it uses /var/mail/...
That's probably from default_mail_env?
Hmm, sorry, I saw your response only today ...
Yes, our default_mail_env looks like this:
default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u
INBOX is not set to /virtual/... per default, because we have non-virtual users as well, so I need to have both choices.
user_attrs = uid,homeDirectory,MailMessageStore,,uidNumber,gidNumber
Try this:
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid,MailMessageStore=mail
I do now have set user_attrs like you suggested, yet that doesn't change anything:
-------CUT------- dovecot: Feb 12 16:34:13 Info: pop3(f.someone.oeush.at): mbox: root=/virtual/oeush.at/home/f.someone/mail, index=/virtual/oeush.at/home/f.someone/mail, inbox=/var/mail/f.someone.oeush.at -------CUT-------
So inbox still points to /var/mail/f.someone instead of /virtual/oeush.at/var/mail/
Looks like a bug to me ...
regards
Udo Rader
-- BestSolution.at EDV Systemhaus GmbH http://www.bestsolution.at
participants (2)
-
Timo Sirainen
-
Udo Rader