Skip to main content

Manually Create maildir Folders

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! Are you creating the email accounts in cPanel first, or with an API tool? If the accounts are created through cPanel, I would expect all the supporting directories to be in place on the system.
    0
  • Justin Waters
    Accounts are being created via cPanel. The issue is that right now we have to log into the user's webmail then go to Settings > Folders > Create to add each folder. Many accounts have 5-10 folders and a good amount of those have sub folders. The issue is multiplied by about 50,000 so you can imagine why manually creating each folder manually this way for each user is a problem. Is there any API, command line, or anything available to automate this?
    0
  • cPRex Jurassic Moderator
    What about doveadm commands directly? Those would look something like this: doveadm -u user@domain.tld mailbox create INBOX.folder
    and a loop could be created to loop through all the users you'd like as part of a script. Additional examples can be found here:
    0

Please sign in to leave a comment.