how to create Drafts, Junk, Sent, Trash folders after user already created
Hello Dovecot,
Do to a misconfiguration, I have a bunch of users who do not have the standard folders.
I can create a routine to cycle through the users and look for the folders and run a command if there is one.
Is there a way to create the proper namespace for a user after the user has already been created?
Thanks in advance.
On 09/03/2020 19:22 chayes@afo.net wrote:
Hello Dovecot, Do to a misconfiguration, I have a bunch of users who do not have the standard folders. I can create a routine to cycle through the users and look for the folders and run a command if there is one. Is there a way to create the proper namespace for a user after the user has already been created? Thanks in advance.
namespace { ...
mailbox Drafts { auto=create }
... }
Aki
On 9 Mar 2020, at 19.24, Aki Tuomi aki.tuomi@open-xchange.com wrote:
On 09/03/2020 19:22 chayes@afo.net wrote:
Hello Dovecot, Do to a misconfiguration, I have a bunch of users who do not have the standard folders. I can create a routine to cycle through the users and look for the folders and run a command if there is one. Is there a way to create the proper namespace for a user after the user has already been created? Thanks in advance.
namespace { ...
mailbox Drafts { auto=create }
... }
or better yet use auto=subscribe to also subscribe the folders.
Sami
Thanks for the suggestions, but I need to do this after users have been created.
Would this be the best way?
To run this for each user:
doveadm mailbox create -u $username -s Drafts
doveadm mailbox subscribe -u $username Drafts
doveadm mailbox create -u $username -s Junk
doveadm mailbox subscribe -u $username Junk
doveadm mailbox create -u $username -s Sent
doveadm mailbox subscribe -u $username Sent
doveadm mailbox create -u $username -s Trash
doveadm mailbox subscribe -u $username Trash
From: dovecot dovecot-bounces@dovecot.org On Behalf Of chayes@afo.net Sent: Monday, March 9, 2020 12:22 PM To: dovecot@dovecot.org Subject: how to create Drafts, Junk, Sent, Trash folders after user already created
Hello Dovecot,
Do to a misconfiguration, I have a bunch of users who do not have the standard folders.
I can create a routine to cycle through the users and look for the folders and run a command if there is one.
Is there a way to create the proper namespace for a user after the user has already been created?
Thanks in advance.
On 9 Mar 2020, at 22.59, chayes@afo.net wrote:
Thanks for the suggestions, but I need to do this after users have been created. Would this be the best way? To run this for each user: doveadm mailbox create -u $username -s Drafts doveadm mailbox subscribe -u $username Drafts doveadm mailbox create -u $username -s Junk doveadm mailbox subscribe -u $username Junk doveadm mailbox create -u $username -s Sent doveadm mailbox subscribe -u $username Sent doveadm mailbox create -u $username -s Trash doveadm mailbox subscribe -u $username Trash
Just add the settings suggested. Then the folders will be autocreated by dovecot on the next user access.
Sami
participants (4)
-
Aki Tuomi
-
chayes@afo.net
-
Sami Ketola
-
Sami Ketola