Hello,
i want to configure seen flags per user for shared public mailboxes in dovecot. I have added the INDEVPVT Option to the location parameter in the namespace and restarted the services and the server. Unfortunately nothing changed and there are still global seen flags in the configuration. In a post i read that i have to manually add some files to the location but this isnt specified in the documentation.
below is the version we use and the config.
dovecot --version 2.3.13 (89f716dc2)
dovecot -n # 2.3.13 (89f716dc2): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.13 (cdd19fe3) # OS: Linux 5.10.0-17-amd64 x86_64 Debian 11.4 ext4 # Hostname: <SERVERNAME> auth_debug = yes auth_debug_passwords = yes auth_verbose = yes auth_verbose_passwords = plain mail_debug = yes mail_gid = vmail mail_location = maildir:/var/mail/user mail_plugins = acl mail_privileged_group = vmail mail_uid = vmail namespace { list = yes location = maildir:/var/mail/public:INDEXPVT=/var/mail/public prefix = public/ separator = / subscriptions = no type = public } namespace { list = yes location = maildir:/var/mail/user/%u/Maildir:INDEX=/var/mail/user/%u/shared/%u:CONTROL=/var/mail/user/%u/shared/%u prefix = shared/%%u/ separator = / subscriptions = no 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 = separator = / subscriptions = yes type = private } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile acl_anyone = allow acl_shared_dict = file:/var/mail/database/shared-mailboxes.db } protocols = " imap" service stats { unix_listener stats-reader { group = vmail mode = 0660 user = vmail } unix_listener stats-writer { group = vmail mode = 0660 user = vmail } } ssl_cert =
location = maildir:/var/mail/public:INDEXPVT=%h/public
Probably works better. INDEXPVT needs to point to a *per-user* location. Now you're just sharing them with everyone.
Aki
On 08/12/2022 11:07 EET Maurice Kunze maurice.kunze@hightec-rt.com wrote:
Hello,
i want to configure seen flags per user for shared public mailboxes in dovecot. I have added the INDEVPVT Option to the location parameter in the namespace and restarted the services and the server. Unfortunately nothing changed and there are still global seen flags in the configuration. In a post i read that i have to manually add some files to the location but this isnt specified in the documentation.
below is the version we use and the config.
dovecot --version 2.3.13 (89f716dc2)
dovecot -n
<snip/>
Hey,
thanks for the explanation. I implemented it but then i get the following error in the logs:
Error: userdb didn't return a home directory, but location used it (%h): maildir:/var/mail/public:INDEXPVT=%h/public
I authenticate the users via LDAP (Active Directory)
Am 08.12.22 um 10:28 schrieb Aki Tuomi:
location = maildir:/var/mail/public:INDEXPVT=%h/public
Probably works better. INDEXPVT needs to point to a *per-user* location. Now you're just sharing them with everyone.
Aki
On 08/12/2022 11:07 EET Maurice Kunze maurice.kunze@hightec-rt.com wrote:
Hello,
i want to configure seen flags per user for shared public mailboxes in dovecot. I have added the INDEVPVT Option to the location parameter in the namespace and restarted the services and the server. Unfortunately nothing changed and there are still global seen flags in the configuration. In a post i read that i have to manually add some files to the location but this isnt specified in the documentation.
below is the version we use and the config.
dovecot --version 2.3.13 (89f716dc2)
dovecot -n <snip/>
Either configure mail_home, return home from ldap, or use absolute directory instead of %h.
I see you have mail_location which points to /var/mail/user, this makes everyone use the same location, unless you overwrite this in your ldap query.
You could replace %h/public with /var/mail/user/%u/shared/public i guess.
Aki
On 08/12/2022 11:56 EET Maurice Kunze maurice.kunze@hightec-rt.com wrote:
Hey,
thanks for the explanation. I implemented it but then i get the following error in the logs:
Error: userdb didn't return a home directory, but location used it (%h): maildir:/var/mail/public:INDEXPVT=%h/public
I authenticate the users via LDAP (Active Directory)
Am 08.12.22 um 10:28 schrieb Aki Tuomi:
location = maildir:/var/mail/public:INDEXPVT=%h/public
Probably works better. INDEXPVT needs to point to a *per-user* location. Now you're just sharing them with everyone.
Aki
On 08/12/2022 11:07 EET Maurice Kunze maurice.kunze@hightec-rt.com wrote:
Hello,
i want to configure seen flags per user for shared public mailboxes in dovecot. I have added the INDEVPVT Option to the location parameter in the namespace and restarted the services and the server. Unfortunately nothing changed and there are still global seen flags in the configuration. In a post i read that i have to manually add some files to the location but this isnt specified in the documentation.
below is the version we use and the config.
dovecot --version 2.3.13 (89f716dc2)
dovecot -n <snip/>
Hello,
thanks for that hint. I changed the path for our environment to /var/mail/user/%u/Maildir/shared/public and now its working.
Thanks for helping.
Am 08.12.22 um 10:58 schrieb Aki Tuomi:
Either configure mail_home, return home from ldap, or use absolute directory instead of %h.
I see you have mail_location which points to /var/mail/user, this makes everyone use the same location, unless you overwrite this in your ldap query.
You could replace %h/public with /var/mail/user/%u/shared/public i guess.
Aki
On 08/12/2022 11:56 EET Maurice Kunze maurice.kunze@hightec-rt.com wrote:
Hey,
thanks for the explanation. I implemented it but then i get the following error in the logs:
Error: userdb didn't return a home directory, but location used it (%h): maildir:/var/mail/public:INDEXPVT=%h/public
I authenticate the users via LDAP (Active Directory)
Am 08.12.22 um 10:28 schrieb Aki Tuomi:
location = maildir:/var/mail/public:INDEXPVT=%h/public
Probably works better. INDEXPVT needs to point to a *per-user* location. Now you're just sharing them with everyone.
Aki
On 08/12/2022 11:07 EET Maurice Kunze maurice.kunze@hightec-rt.com wrote:
Hello,
i want to configure seen flags per user for shared public mailboxes in dovecot. I have added the INDEVPVT Option to the location parameter in the namespace and restarted the services and the server. Unfortunately nothing changed and there are still global seen flags in the configuration. In a post i read that i have to manually add some files to the location but this isnt specified in the documentation.
below is the version we use and the config.
dovecot --version 2.3.13 (89f716dc2)
dovecot -n <snip/>
Hello,
now i found another error. When i click on an email in the client its marked an read or unread when i mark it that way. Now when i change the folder and come back to the shared folder the mail i just read is unread again. When i restart the Mail client it will be displayed like it should be but it always needs that restart of the mail client. I also tried 3 different mail clients to exclude the error from the mail client.
Am 08.12.22 um 10:58 schrieb Aki Tuomi:
Either configure mail_home, return home from ldap, or use absolute directory instead of %h.
I see you have mail_location which points to /var/mail/user, this makes everyone use the same location, unless you overwrite this in your ldap query.
You could replace %h/public with /var/mail/user/%u/shared/public i guess.
Aki
On 08/12/2022 11:56 EET Maurice Kunze maurice.kunze@hightec-rt.com wrote:
Hey,
thanks for the explanation. I implemented it but then i get the following error in the logs:
Error: userdb didn't return a home directory, but location used it (%h): maildir:/var/mail/public:INDEXPVT=%h/public
I authenticate the users via LDAP (Active Directory)
Am 08.12.22 um 10:28 schrieb Aki Tuomi:
location = maildir:/var/mail/public:INDEXPVT=%h/public
Probably works better. INDEXPVT needs to point to a *per-user* location. Now you're just sharing them with everyone.
Aki
On 08/12/2022 11:07 EET Maurice Kunze maurice.kunze@hightec-rt.com wrote:
Hello,
i want to configure seen flags per user for shared public mailboxes in dovecot. I have added the INDEVPVT Option to the location parameter in the namespace and restarted the services and the server. Unfortunately nothing changed and there are still global seen flags in the configuration. In a post i read that i have to manually add some files to the location but this isnt specified in the documentation.
below is the version we use and the config.
dovecot --version 2.3.13 (89f716dc2)
dovecot -n <snip/>
participants (2)
-
Aki Tuomi
-
Maurice Kunze