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.