AW: Freigaben funtionieren nicht mit Unterverzeichnissen von INBOX
Christian Eisert
christian.eisert at gmx.net
Di Sep 5 10:58:55 CEST 2017
Hi,
selbst gefundene Lösung (RTFM und Kopf anschalten):
doveadm acl debug => auf Verzeichnis \.Subfolder kann nicht zugegriffen
werden => Punkte im Maildir-Format
'Layout=FS' bei der Namespace-Definition ergänzen.
Danke !
Gruß
Christian
-----Ursprüngliche Nachricht-----
Von: Christian Eisert [mailto:christian.eisert at gmx.net]
Gesendet: Freitag, 1. September 2017 15:16
An: 'dovecot at listen.jpberlin.de'
Betreff: Freigaben funtionieren nicht mit Unterverzeichnissen von INBOX
Hallo zusammen,
ich bin neu hier und ich hoffe, ich trete niemanden auf die Füße, wenn ich
mein Problem zusätzlich noch in der deutschen Maillinglist schildere:
Wie im Dovecot-Buch oder im offiziellen WIKI beschrieben, versuche ich über
einen zusätzlichen Namespace Freigaben zu realisieren.
Problem: Ich kann nur die INBOX freigeben, bei Unterverzeichnissen (/Sent,
/Drafts oder manuell erstellten) funktioniert es nicht.
Die ACLs werden erstellt, jedoch nicht die Unterverzeichnisse im
Shared-Ordner.
Ich bin über jede Hilfe sehr dankbar.
Viele Grüße
Christian E.
----------------------------------------------------------------------------
----------------------------------
vmail at mail:~$ doveadm acl get -A INBOX/TEST200
Username ID Global Rights
user2 at mydomain.org user=user1 at mydomain.org lookup read write-seen
shared
-------------------
doveadm acl debug -u user1 at mydomain.org shared/user2 at mydomain.org User
user1 at mydomain.org has rights: lookup read write write-seen write-deleted
insert post expunge create delete admin
shared/TEST200
--0----------------
doveadm acl debug -u user1 at mydomain.org shared/user2 at mydomain.org/TEST200
Error: Mailbox 'TEST200' in namespace 'shared/user2 at mydomain.org/' doesn't
exist in /var/vmail/mailboxes/mydomain.org/user2/mail/.TEST200
doveadm -n
----------------------------------------------------------------------------
----------------------------------
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.16
(fed8554) # OS: Linux 4.9.0-3-amd64 x86_64 Debian 9.1 auth_debug = yes
auth_mechanisms = plain login auth_verbose = yes mail_debug = yes mail_gid =
vmail mail_home = /var/vmail/mailboxes/%d/%n mail_location =
maildir:~/mail:LAYOUT=fs mail_plugins = acl mail_privileged_group = vmail
mail_uid = vmail managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include variables body enotify environment mailbox date index ihave
duplicate mime foreverypart extracttext
namespace {
hidden = no
ignore_on_failure = no
inbox = no
list = yes
location =
maildir:%%h/mail:INDEX=%h/shared/%%u:CONTROL=%h/shared/%%u:INDEXPVT=%h/share
d/%%u
prefix = shared/%%u/
separator = /
subscriptions = yes
type = shared
}
namespace inbox {
inbox = yes
location =
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Spam {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix =
separator = /
subscriptions = yes
type = private
}
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
acl = vfile
acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
antispam_backend = pipe
antispam_mail_notspam = learn_ham
antispam_mail_sendmail = /usr/bin/rspamc
antispam_mail_spam = learn_spam
antispam_spam = Spam
antispam_trash = Trash
quota = maildir:User quota
quota_exceeded_message = Benutzer %u hat das Speichervolumen
überschritten. / User %u has exhausted allowed storage space.
sieve =
file:/var/vmail/sieve/%d/%n/scripts;active=/var/vmail/sieve/%d/%n/active-scr
ipt.sieve
sieve_before = /var/vmail/sieve/global/spam-global.sieve
}
protocols = imap lmtp sieve
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
}
}
service imap-login {
inet_listener imap {
port = 143
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
}
user = vmail
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
ssl = required
ssl_cert = </etc/letsencrypt/live/mail.mydomain.org/fullchain.pem
ssl_cipher_list =
EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128
:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDE
A:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA
ssl_dh_parameters_length = 2048
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
protocol imap {
imap_idle_notify_interval = 29 mins
mail_max_userip_connections = 20
mail_plugins = acl quota imap_quota antispam imap_acl } protocol lmtp {
mail_plugins = acl sieve
postmaster_address = postmaster at mydomain.org }
----------------------------------------------------------------------------
----------------------------------
Mehr Informationen über die Mailingliste Dovecot