[Dovecot-de] Dovecote-Buch: Shared Folder
Je Roe
jeroe.gc at gmail.com
Sa Apr 5 23:56:08 CEST 2014
Hallo Liste,
ich versuche das Beispiel der Shared Folder in meiner Test-VM
nachzubauen, habe aber nur einen Teilerfolg. Thunderbird kann mit dem
ACL-Plugin die acl-Dateien in die entsprechenden Folder schreiben, aber
die shared-mailboxes.db wird nicht angelegt. Leider sehe ich in der
syslog nicht, das ein Schreibzugriff fehlschlägt.
Kann mir jemand eien Tipp geben?
Danke Jens
###
syslog bei anlegen einer "Freigabe":
Apr 5 23:51:12 mail dovecot: imap: Debug: Loading modules from
directory: /usr/lib/dovecot/modules
Apr 5 23:51:12 mail dovecot: imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib01_acl_plugin.so
Apr 5 23:51:12 mail dovecot: imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: Effective
uid=10000, gid=10000, home=/srv/vmail/tiger.net/uk
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: Namespace
inbox: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no,
list=yes, subscriptions=yes location=maildir:~/Maildir
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: maildir++:
root=/srv/vmail/tiger.net/uk/Maildir, index=, control=,
inbox=/srv/vmail/tiger.net/uk/Maildir, alt=
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl:
initializing backend with data: vfile
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl: acl
username = uk at tiger.net
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl: owner = 1
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl vfile:
Global ACL directory: (none)
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: Namespace :
type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no,
list=children, subscriptions=yes
location=maildir:%h/Maildir:INDEX=/srv/vmail/tiger.net/uk/shared/%u:CONTROL=/srv/vmail/tiger.net/uk/shared/%u
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: shared:
root=/var/run/dovecot, index=, control=, inbox=, alt=
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl:
initializing backend with data: vfile
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl: acl
username = uk at tiger.net
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl: owner = 0
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl vfile:
Global ACL directory: (none)
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Debug: acl vfile:
reading file /srv/vmail/tiger.net/uk/Maildir/.Sent/dovecot-acl
Apr 5 23:51:12 mail dovecot: imap(uk at tiger.net): Disconnected: Logged
out in=37 out=457
##root at mail:~# doveconf -n
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4
auth_debug = yes
auth_verbose = yes
mail_debug = yes
mail_location = maildir:~/Maildir
mail_plugins = acl
namespace {
hidden = no
ignore_on_failure = no
inbox = no
list = children
location = maildir:%%h/Maildir:INDEX=%h/shared/%%u:CONTROL=%h/shared/%%u
prefix = shared/%%u/
separator = /
subscriptions = yes
type = shared
}
namespace inbox {
hidden = no
inbox = yes
list = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix = INBOX/
separator = /
subscriptions = yes
type = private
}
passdb {
args = scheme=CRYPT username_format=%u /etc/dovecot/users
driver = passwd-file
}
plugin {
acl = vfile
acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
}
protocols = " imap lmtp"
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0666
}
unix_listener auth-userdb {
group = vmail
user = vmail
}
}
service imap-login {
inet_listener imaps {
port = 0
}
}
service lmtp {
inet_listener lmtp {
address = 127.0.0.1
port = 24
}
}
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
}
verbose_proctitle = yes
protocol imap {
mail_plugins = acl imap_acl
}
##root at mail:~# ll /var/lib/dovecot/
insgesamt 16
drwxrwxrwx 2 vmail vmail 4096 Apr 4 19:28 db
-rw-r--r-- 1 root root 36 Apr 5 23:35 instances
-rw-r--r-- 1 root root 9 Apr 5 23:35 mounts
-rw-r--r-- 1 root root 230 Apr 1 21:55 ssl-parameters.dat
root at mail:~# cat /etc/dovecot/users
uk at tiger.net:{PLAIN}64471:10000:10000::/srv/vmail/tiger.net/uk::
jr at tiger.net:{PLAIN}64471:10000:10000::/srv/vmail/tiger.net/jr::
uk at lilli.org:{PLAIN}64471:10000:10000::/srv/vmail/lilli.org/uk::
jr at lilli.org:{PLAIN}64471:10000:10000::/srv/vmail/lilli.org/jr::
jr at leitungsmast.org:{PLAIN}64471:10000:10000::/srv/vmail/leitungsmast.org/jr::
jr at fischbroetchen.de:{PLAIN}64471:10000:10000::/srv/vmail/fischbroetchen/jr::
##
Mehr Informationen über die Mailingliste Dovecot