[Dovecot] IMAP clients generate user home folders one level higher than needed
Hi
(Of course not the clinets generate the folders, dovecot does, but I wanted to have the title not be too long.)
I am using static userdb:
userdb static { args = uid=vmail gid=mail home=/srv/vmail/%d/%n }
and I have configured the hostname in protocol lda.
Now when mail arrives for a known virtual user, the home directory with all subdirectories is being created correctly unter /srv/vmail/$domain/$vuser.
But when connecting from an IMAP client (I have tested Thunderbird and Outlook) a new home directory with apparently correct subfolders is bring created unter /srv/vmail/$vuser ! The connection works, I just don't see the mails which arrived since the client is mapping a directory one level higher than needed.
Where do I have to look for the cause? I did not find anything reasonable yet.
Thank you in advance, David
userdb static { args = uid=vmail gid=mail home=/srv/vmail/%d/%n }
Where do I have to look for the cause? I did not find anything reasonable yet.
I would guess that %d expands to "" (i.e. the empty string). Are your clients logging in with "user@domain"?
johannes
On Tue, 22 Apr 2008 11:30:52 +0200, Johannes Berg johannes@sipsolutions.net wrote:
I would guess that %d expands to "" (i.e. the empty string). Are your clients logging in with "user@domain"?
Yes, they do. How can I find out if this is the case and what can I do about it?
David
On Tue, 2008-04-22 at 12:25 +0200, andel wrote:
On Tue, 22 Apr 2008 11:30:52 +0200, Johannes Berg johannes@sipsolutions.net wrote:
I would guess that %d expands to "" (i.e. the empty string). Are your clients logging in with "user@domain"?
Yes, they do. How can I find out if this is the case and what can I do about it?
I don't really know, maybe this depends on what your passdb returns? Check the wiki maybe it knows more.
johannes
The solution is to use user@domain in the passwd and %0.d instead of %d in userdb static.
On Tue, 22 Apr 2008 12:35:53 +0200, Johannes Berg johannes@sipsolutions.net wrote:
On Tue, 2008-04-22 at 12:25 +0200, andel wrote:
On Tue, 22 Apr 2008 11:30:52 +0200, Johannes Berg johannes@sipsolutions.net wrote:
I would guess that %d expands to "" (i.e. the empty string). Are your clients logging in with "user@domain"?
Yes, they do. How can I find out if this is the case and what can I do about it?
I don't really know, maybe this depends on what your passdb returns? Check the wiki maybe it knows more.
johannes
participants (2)
-
andel
-
Johannes Berg