ACL permission: give permission to move email into different folder
Davide Marchi
danjde at msw.it
Tue Oct 10 00:00:26 EEST 2017
>> On October 7, 2017 at 1:29 AM Aki Tuomi <aki.tuomi at dovecot.fi> wrote:
[..]Can
> you provide mail_debug=yes logs?
>
Hi Aki,
I've set on /etc/dovecot/conf.d/10-logging.conf:
mail_debug = yes
debug_log_path = /var/log/dovecot.debug
and
on /etc/dovecot/dovecot.conf
protocol imap {
mail_plugins = $mail_plugins mail_log notify
}
these are my "mail_debug" logs, but first I noticed that Dovecot returns
a not file found "/var/vmail/mysite.org/booking/Maildir/dovecot-acl"
(each for every directory) where I set *only* the global ACL file.
mail_plugins = acl
protocol imap {
mail_plugins = $mail_plugins imap_acl
}
plugin {
acl = vfile:/etc/dovecot/dovecot-acl
acl_globals_only = yes
}
LOGS:
tail -f /var/log/dovecot.debug
Oct 09 22:26:35 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib20_mail_log_plugin.so
Oct 09 22:26:35 imap(booking at mysite.org): Debug: Effective uid=5000,
gid=5000, home=/var/vmail/mysite.org/booking
Oct 09 22:26:35 imap(booking at mysite.org): Debug: acl: No acl_shared_dict
setting - shared mailbox listing is disabled
Oct 09 22:26:35 imap(booking at mysite.org): Debug: Namespace inbox:
type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes,
subscriptions=yes location=maildir:/var/vmail/mysite.org/booking/Maildir
Oct 09 22:26:35 imap(booking at mysite.org): Debug: maildir++:
root=/var/vmail/mysite.org/booking/Maildir, index=, indexpvt=, control=,
inbox=/var/vmail/mysite.org/booking/Maildir, alt=
Oct 09 22:26:35 imap(booking at mysite.org): Debug: acl: initializing
backend with data: vfile:/etc/dovecot/dovecot-acl
Oct 09 22:26:35 imap(booking at mysite.org): Debug: acl: acl username =
booking at mysite.org
Oct 09 22:26:35 imap(booking at mysite.org): Debug: acl: owner = 1
Oct 09 22:26:35 imap(booking at mysite.org): Debug: acl vfile: Global ACL
file: /etc/dovecot/dovecot-acl
Oct 09 22:26:35 imap(booking at mysite.org): Debug: acl vfile: file
/var/vmail/mysite.org/booking/Maildir/dovecot-acl not found
Oct 09 22:27:18 imap: Debug: Loading modules from directory:
/usr/lib/dovecot/modules
Oct 09 22:27:18 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib01_acl_plugin.so
Oct 09 22:27:18 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Oct 09 22:27:18 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib15_notify_plugin.so
Oct 09 22:27:18 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib20_mail_log_plugin.so
Oct 09 22:27:18 imap(booking at mysite.org): Debug: Effective uid=5000,
gid=5000, home=/var/vmail/mysite.org/booking
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl: No acl_shared_dict
setting - shared mailbox listing is disabled
Oct 09 22:27:18 imap(booking at mysite.org): Debug: Namespace inbox:
type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes,
subscriptions=yes location=maildir:/var/vmail/mysite.org/booking/Maildir
Oct 09 22:27:18 imap(booking at mysite.org): Debug: maildir++:
root=/var/vmail/mysite.org/booking/Maildir, index=, indexpvt=, control=,
inbox=/var/vmail/mysite.org/booking/Maildir, alt=
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl: initializing
backend with data: vfile:/etc/dovecot/dovecot-acl
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl: acl username =
booking at mysite.org
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl: owner = 1
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl vfile: Global ACL
file: /etc/dovecot/dovecot-acl
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl vfile: file
/var/vmail/mysite.org/booking/Maildir/dovecot-acl not found
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl vfile: file
/var/vmail/mysite.org/booking/Maildir/.INBOX/Junk/dovecot-acl not found
Oct 09 22:27:18 imap: Debug: Loading modules from directory:
/usr/lib/dovecot/modules
Oct 09 22:27:18 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib01_acl_plugin.so
Oct 09 22:27:18 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Oct 09 22:27:18 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib15_notify_plugin.so
Oct 09 22:27:18 imap: Debug: Module loaded:
/usr/lib/dovecot/modules/lib20_mail_log_plugin.so
Oct 09 22:27:18 imap(booking at mysite.org): Debug: Effective uid=5000,
gid=5000, home=/var/vmail/mysite.org/booking
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl: No acl_shared_dict
setting - shared mailbox listing is disabled
Oct 09 22:27:18 imap(booking at mysite.org): Debug: Namespace inbox:
type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes,
subscriptions=yes location=maildir:/var/vmail/mysite.org/booking/Maildir
Oct 09 22:27:18 imap(booking at mysite.org): Debug: maildir++:
root=/var/vmail/mysite.org/booking/Maildir, index=, indexpvt=, control=,
inbox=/var/vmail/mysite.org/booking/Maildir, alt=
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl: initializing
backend with data: vfile:/etc/dovecot/dovecot-acl
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl: acl username =
booking at mysite.org
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl: owner = 1
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl vfile: Global ACL
file: /etc/dovecot/dovecot-acl
Oct 09 22:27:18 imap(booking at mysite.org): Debug: acl vfile: file
/var/vmail/mysite.org/booking/Maildir/dovecot-acl not found
Thanks
Davide
More information about the dovecot
mailing list