Manually Create maildir Folders
I was surprised to find no one asking for the same thing here.
Every inbox we are migrating from mDaemon to cPanel we are having to manually recreate the folder structure. It doesn't work to create the .folderdir even if we create the /cur /new /tmp folders it doesn't generate the rest of the maildir files to support it.
Is there any way to batch generate these folders? Our problem is migrating 50k mail boxes all with ~10 folders and some with sub-sub-folders. You can imagine how tedious it is to go through each mailbox and manually recreate the folder structure and then drag the messages over for each box.
-
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 -
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
Please sign in to leave a comment.
Comments
3 comments