Re: ACL permission: give permission to move email into different folder
On 06.10.2017 12:42:22, Aki Tuomi wrote: [..]
Maybe it is not possible with Dovecot?
Many Thanks
Davide
Just give the relevant permissions to the user, and it also requires that the target directory is writable by source user.
Aki
Oh, excuse me for the (most probably) silly question, but where I could give to my *virtual user* the directory write permission, if not from the Dovecot ACL?
Actually on /etc/dovecot/dovecot.acl:
- user=foo@mydomain.com lrwsip
- user=info@mydomain.com lrwsip
Many thanks Aki for you help! :-)
Davide
On October 6, 2017 at 11:44 PM Davide Marchi <danjde@msw.it> wrote:
On 06.10.2017 12:42:22, Aki Tuomi wrote: [..]
Maybe it is not possible with Dovecot?
Many Thanks
Davide
Just give the relevant permissions to the user, and it also requires that the target directory is writable by source user.
Aki
Oh, excuse me for the (most probably) silly question, but where I could give to my *virtual user* the directory write permission, if not from the Dovecot ACL?
I mean filesystem write rights.
Actually on /etc/dovecot/dovecot.acl:
- user=foo@mydomain.com lrwsip
- user=info@mydomain.com lrwsip
You are missing 'i' right.
Many thanks Aki for you help! :-)
Davide
Aki
On October 7, 2017 at 1:29 AM Aki Tuomi <aki.tuomi@dovecot.fi> wrote:
On October 6, 2017 at 11:44 PM Davide Marchi <danjde@msw.it> wrote:
On 06.10.2017 12:42:22, Aki Tuomi wrote: [..]
Maybe it is not possible with Dovecot?
Many Thanks
Davide
Just give the relevant permissions to the user, and it also requires that the target directory is writable by source user.
Aki
Oh, excuse me for the (most probably) silly question, but where I could give to my *virtual user* the directory write permission, if not from the Dovecot ACL?
I mean filesystem write rights.
Actually on /etc/dovecot/dovecot.acl:
- user=foo@mydomain.com lrwsip
- user=info@mydomain.com lrwsip
You are missing 'i' right.
And after looking it REALLY properly, I see you have 'i' right. Can you provide mail_debug=yes logs?
Many thanks Aki for you help! :-)
Davide
Aki
On October 7, 2017 at 1:29 AM Aki Tuomi <aki.tuomi@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@mysite.org): Debug: Effective uid=5000, gid=5000, home=/var/vmail/mysite.org/booking Oct 09 22:26:35 imap(booking@mysite.org): Debug: acl: No acl_shared_dict setting - shared mailbox listing is disabled Oct 09 22:26:35 imap(booking@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@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@mysite.org): Debug: acl: initializing backend with data: vfile:/etc/dovecot/dovecot-acl Oct 09 22:26:35 imap(booking@mysite.org): Debug: acl: acl username = booking@mysite.org Oct 09 22:26:35 imap(booking@mysite.org): Debug: acl: owner = 1 Oct 09 22:26:35 imap(booking@mysite.org): Debug: acl vfile: Global ACL file: /etc/dovecot/dovecot-acl Oct 09 22:26:35 imap(booking@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@mysite.org): Debug: Effective uid=5000, gid=5000, home=/var/vmail/mysite.org/booking Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl: No acl_shared_dict setting - shared mailbox listing is disabled Oct 09 22:27:18 imap(booking@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@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@mysite.org): Debug: acl: initializing backend with data: vfile:/etc/dovecot/dovecot-acl Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl: acl username = booking@mysite.org Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl: owner = 1 Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl vfile: Global ACL file: /etc/dovecot/dovecot-acl Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl vfile: file /var/vmail/mysite.org/booking/Maildir/dovecot-acl not found Oct 09 22:27:18 imap(booking@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@mysite.org): Debug: Effective uid=5000, gid=5000, home=/var/vmail/mysite.org/booking Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl: No acl_shared_dict setting - shared mailbox listing is disabled Oct 09 22:27:18 imap(booking@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@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@mysite.org): Debug: acl: initializing backend with data: vfile:/etc/dovecot/dovecot-acl Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl: acl username = booking@mysite.org Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl: owner = 1 Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl vfile: Global ACL file: /etc/dovecot/dovecot-acl Oct 09 22:27:18 imap(booking@mysite.org): Debug: acl vfile: file /var/vmail/mysite.org/booking/Maildir/dovecot-acl not found
Thanks
Davide
participants (2)
-
Aki Tuomi
-
Davide Marchi