[Dovecot] Dovecot v1.2 share user Maildir problems with %%h

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Wed Jun 17 17:38:33 EEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm using Dovecot v1.2 9133:f65112bd90b3 with attached config and try to 
share user Maildirs. The ACLs are working.

However the %%h gives me head aches, well, the location in general:

I've copied the default mail_location and changed its CONTROL and INDEX 
settings:

namespace shared {
...

location = 
maildir:%%h/Maildir:CONTROL=/var/cache/dovecot/%i/control/shared/%%u:INDEX=/var/cache/dovecot/%i/index/shared/%%u

}

Now the first wows are that:

a) IMAP insists to connect to $install_prefix/var/run/dovecot/auth-master 
instead of /var/run/dovecot/auth-master used by deliver.

My workaround was to symlink /var/run/dovecot/ to 
$install_prefix/var/run/dovecot/

b) This socket needs to be r/w for every user, which is a security risk as 
mentioned in the conf and the default permission is 0600.

For deliver I changed the socket attr to permission 0660 and group=mail; 
for making %%h work I added mail_access_groups=mail

c) The user's mailbox is not found still, because:

2009-06-17 15:04:57 auth(default): Info: master in: USER        1 
testusr/INBOX  service=internal
2009-06-17 15:04:57 auth(default): Info: auth(?): Invalid username: 
testusr/INBOX
2009-06-17 15:04:57 auth(default): Info: userdb(?): Username contains 
disallowed character: 0x2f
2009-06-17 15:04:57 auth(default): Info: master out: NOTFOUND   1

The imap process passes the mailbox to the authentificator, too. Also, it 
changes the '.' to '/', although rawlog has:

select "shared.testusr.INBOX"

If I allow "/" as userchar, I get:

2009-06-17 15:43:00 auth(default): Info: ldap(testusr/INBOX): Unknown 
user
2009-06-17 15:43:00 auth(default): Info: master out: NOTFOUND   1

It reallt requests the data of user "testusr/INBOX".

d) If I use

location = maildir:/home/%%u/Maildir:

instead of %%h/Maildir, things work _except_ that some user's %%h != 
/home/%%u .

==============

Basically I have yet another problem with location in the user-share 
namespace:

Because one can override the default mail_location for each user, I did so 
for some users. Some of them even do not have the Maildir. That leads to 
the problem, that I need one shared namespace for each location template.

There had been a suggestion of a special user-shared namespace a while 
back. How about to add the base location in the shared-mailboxes.db? So 
instead of "1" the value is the base of the shared location, e.g. 
maildir:/local/testuser or maildir:/home/user/Maildir..., and some %%? 
token takes the string from there. Because the path is known from the db 
now, the other problems mentioned above do no longer apply.

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSjj/63WSIuGy1ktrAQLliQf9E/fh9BK+5eeHfiJBwfD1kGfP7AYc4CwE
Kj6Snkq/eG05F7VM5TyANDZVNFpGY0WsNkmQHutx3OSfh+gVe2gxNljk7KdISMpC
7+PS1Rsnz+0iqq6ueCbs7LGNQCgZyD9Ne14XTzRymJJElw7MfHh7A6+Zhul+CzTL
4D7owW+vcyOVBMY9G2e978MkzXXWQ0zDBHamjeFm4idx4Bl1sbMOuqpWHCse+sP8
XET58VXOMI1LBsrdgoobXRGojLFxZe7r77lSrTkUprFa3ljOsYIIxOEk6mskELue
SAftwNlqbkHMAwZQ0G0rlD6vBdyw7B3sN48yFoLEd/cw1SyttVrCdA==
=vC9k
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dv.conf.gz
Type: application/octet-stream
Size: 1416 bytes
Desc: dv v1.2 conf
Url : http://dovecot.org/pipermail/dovecot/attachments/20090617/fee6e5d7/attachment.obj 


More information about the dovecot mailing list