Big Problem: Dovecot default IMAP folders SHOULD be created automatically on user acc creation level Directadmin

tarik

Verified User
Joined
Aug 24, 2021
Messages
34
Dovecot IMAP folders to be created automatically on user acc creation level Directadmin

I want like on cpanel when you add new user through cpaenl all folers inside MAIL folder (Maildir) were created automatically, so email client when logedd have got them immediately.

On directadmin you just got created INBOX and INBOX.SPAM automatiaclly all other folders must add manually becucase on some clients can have problems, like Outlook when you login first time with Outlook it will not fetch the imap folders or subscribe to them automatically, only for EXISTING folders like inbox and inbox.spam, all other like " Sent " you must add manually, or login before via thunderbird or roundcube and send first email to get Sent folder appeared and then when you connect to Outlook you will see it, in other case in Outlook for example you always need to manually create Sent folder than to tell to use that folder for sending emails as default etc... Big problems, I tested today 40 times, on cpanel it automatically create all folders after user creation (it not mather for me or my clients if there are inside the INBOX. or not, just here on DIRECTADMIN the folders structure should be created automtaically as well especially for " Sent " folder.

I want all folders to be created upon adding new user mail account through directadmin dashboard, so all folders to be created automatically like on cpanel..., especially " Sent " folder, how to achieve, that what is different in cpanel DOVECOT than in DA dovecot, or elsewhere...

I have tried to modified " namespace_private.conf " in dovecot but no changes, only inbox normally with cur/new is created + INBOX.spam, no any other folder upon creation, and if you login with THUNDERBIRD first time or via Roundcube, but if you login with OUTLOOK for first time there are a big troubles with that " Sent " IMAP folder non-existance as a real folder already.
 
Have a look at this thread:

Or complete manual here:
 
Have a look at this thread:

Or complete manual here:


Hi dear Richard,


Thanks for reply, I have tried everything in last few days/nights, everything, but seems nobody understand me. It should be that other main/default folders to be created automatically in Maildir directory, not just when first time logged in via roundcube/thunderbird..., but to be created upon account-user-mail creation like the .Junk is created now.

I did all from this tutorials you sent, I got the solution for INBOX.spam TO became JUNK, but I dont get the things to have other folders created automatically like Junk is when account is created initialy, look at screenshot what I have now after these tutorials done, only see Junk folder now instead of INBOX.spam, but no other folders...

How to get things to work to have other folders as well created normally...?!... Like it is on Cpanel, immediately all folders are created, you cannot imagine how many troubles this can cause with most clients that uses Outlook and dont have many knowledge, I tested 40 times, you must manually create the Sent folder in Outlook, or for every created client you must first for every mail user account open the THUNDERBIRD OR ROUNDCUBE for that account to login first time-once to fetch the folders and than it will be good in Outlook as well, but if you dont do that you are in trouble must manually creating folder etc... believe me I know what I am talking about I am managing 250 emal accounts for 20 + companies. Have 15 shared servers and 5 my private vps cloud with interserver, now I am starting mostly to force my servers with DA there, please if you can help me to resolve this thing , its important to undersand exact problem.

ALSO I THINK THIS IS " BUG " AND SHOULD BE FIXED IN DA TOTALLY-globally! CHECK SCREENSHOTS BELOW FOR DA-CP COMPARING FOR THIS CASE!!!

IN DA (AFTER ACCOUNT-USER-MAIL CREATION, NO ANY MAIL CLIENT LOGINS YET):


screenshot_149-png.7043


IN CPANEL (AFTER ACCOUNT-USER-MAIL CREATION, NO ANY MAIL CLIENT LOGINS YET):
You get the list of all folders created immediately.

Screenshot_150.png
 

Attachments

  • Screenshot_149.png
    Screenshot_149.png
    52.9 KB · Views: 126
I ony know with translations or capital versus small chars have had problems long ago , or it is solved i don't know, but if so, and there is a account client already and such kind of problems , then you have todo things manualy
 
in DA this folders never was created by default - it may be created by your email client.
 
DA can predict what folders you need?
He is talking about the default foldes which will appear anyway like Sent, Archive and Drafts. Seems Outlook (I don't know which version) has an issue with that according to him.
However, it's the first time I'm hearing this, I also have lots of clients using imap with Outlook and they never had any issue.

@tarik the manual was created by @factor so I mentioned him, if it does not work he might be able to help you, he's also a nice guy.

Then it's possible to use a ticket in DA so they can help you fix this.
Also it's possible to send in a feedback request in the feedback forum. However, since most of us don't have any issue, it might not get upvoted very hard, but one never knows.
 
in DA this folders never was created by default - it may be created by your email client.
yes maybe, but why not to be like that, you already have special-use to default folders like: Sent, Drafts, etc... Why not to have them cretaed automatically , to avoid any kind of problem, with different devices, different mail clients settings etc....

Why would Cpanel/courier... implement that to have created default folders for imap automatically on creation of user there are some reason obviously...
I suggest to @DirectAdmin Support , to implement this in DA so the default IMAP folders to be automatically created on user creation, believe me I know what I am talking about because I am doing with 200 + mail users of 20+ different companies, this is one of my main business...and exactly I am telling the stuffs from terrain...

Thanks in advance!
 
@tarik how DA can predict what folders you need? in every box I create manually only what I need.
Dear I dont believe that peoples dont understand the behaviour.. I am not telling you to tell DA to create my private folders for " My House Invoices " etc... or " My Bank 1 Statements ", user will create that later in their lifes, I am telling you to create MAIN - DEFAULT folders that 97,99% peoples on the world using like, beside Inbox to be: " Sent ", " Archive " , " Draft "...., especially Sent folder... must be created automatically..

Look pls my situation + all I wrote above:

I migrated 5 clients to my VPS DA mail server, and its about 25 mail account users, and guess what client that womens use: 99,7% of them using OUTLOOK, only 3 womens using thunderbird. And for all that my users that uses Outlook, I had to go first to login to my self on 25 accounts via thunderbird or via Roundcube, so folders to be fetched, and than to set their emails to Outlook again.
Because outlook on all 25 PCs. for some reson on the first didn't recognized Sent folder, and giving Send Error becuase there was only INBOX.spam and normal INBOX created on the first. Or you must create manually the Sent and other folders on OUtlook, whicih is ridicilous to do if its not your specific private folder.

But before that I loose 5 days to catch that things, and I spent much effor and time for nothing.

Before on Cpanel, I just send them login imap/smtp credentials they added to their outlook and everything normal all folders there (CHECK SCREENSHOT IN MY ANSWERS ABOVE), they just created some new folder if they want their private or some other communication folder not default ones.

But now after I migrated them to DA I got 25 CALLS and messages on whatsapp: " Houston we have a problem with send error " guess where , of course on outlook mail client, so I must visited them , call them , connect via remote team viewer/any desk, etc I spent 4 days on nothing, nothing, most peoples will never be TECH IT guys, especially old womens clients etc, they want to just send when you set their emial, they dont want to think about : " maybe we should create Sent folder if its not cretaed by default on first sending or login becuase IMAP somewhere in the world on the server should fetch that bla bla bla...."...

So most job was on my back...
I hope someone will understand this and implement, just very very very clear and understandable, ALL default folders, its just 2 or 3 more: 1. Sent + Archive and Draft maybe, to be created automatically on user-account creation in imap that is it nothing else. This is telling you guy who managing 250 email accounts for 20+ companies. If you dont believe me or if no one want to help me I dont know what to tell more...

I am serious with DA I want to migrate 20 servers in future to DA so I will pay much money for DA, I hope someone from DA will @DirectAdmin Sales , @DirectAdmin Support , recognize this behaviour and just SIMPLY impelmenet in user -account creation 2 or 3 additional default imap folders to be created on user creation.

We are FORCING everything to go to Sent folder and 92,99% peoples in the world USING " Sent " name for SENT messages folder, and someone told me why you want ot have " Sent " imap folder to be created automatically,,,

Please if you can help me with that I am new on forum but not new with VPS, DA, UBUNTU, etc...If no one help me I will need to hire someone to make some .SH script specifically for my servers to creating folders few default more imap when creating user-account in DA...., or I dont know else what to do , and where this is stashed in DA...

Best regards!
 
He is talking about the default foldes which will appear anyway like Sent, Archive and Drafts. Seems Outlook (I don't know which version) has an issue with that according to him.
However, it's the first time I'm hearing this, I also have lots of clients using imap with Outlook and they never had any issue.

@tarik the manual was created by @factor so I mentioned him, if it does not work he might be able to help you, he's also a nice guy.

Then it's possible to use a ticket in DA so they can help you fix this.
Also it's possible to send in a feedback request in the feedback forum. However, since most of us don't have any issue, it might not get upvoted very hard, but one never knows.
@Richard G , dear Richard, maybe you are the only far now that understand my problem.

Now its not mather WHAT outlook version have problem , why MICROSOFOT do that problem, Tarik please check your client MS OUTLOOK maybe buy another version on Microsoft , or wait UNTIL 2028 year, maybe microsoft will fix that on outlook, so to work the same like THUNDERBIRD OR ROUNDCUBE work, and it will least up to 2032, and again you will need to spread around the worlds forum for help .... If someone tell me something like this I will immedaitely shut up my mouse, and will not speak I will go to dig my garden instead of doing IT things...

So its not mather is this problem in OUTLOOK, or SOME apple client, or some JACK MA new 2023 Ali Baba Mail client, not mather, if someone who manage 250 email accounts with 20+ companies telling you this and I have installed on 450 different computer emails fro moutlook 2003 to outlook newest one , and all other clients, I think I can tell some words and it must be respected!

It just can be resolve here and simply, to have deafult folders immediately created after user account creation like on cpanel... that is it! Because that few default folders will anyway be created and will appear anyway like to told!

If you can push this situation I will be grateful to you ... so my migration of all other servers will be easier in future...

Now I am stuck, for example, I transfered 200$ to spent monthly to pay to DA for licenses for all servers, and now I run into problem on first server, I spent 4 days on nothing, of course I stopped everyhting, because I dont want my clients to call me please CAN YOU come to us or connect from your pc even if you are on mountin or resting to our pc to fix our outlook problems, to create manually folders, etc etc. I will rather stay on the same situation and pay 4x times to other provider to avoid the problem and maybe will migrate to DA in future when they update this fix in 2029. I dont know else to say, this is my last words, I am losing the strength about his problem.....

Thanks for your other answer I did tutorial but it just make inbox.spam to became junk nothing else no folder creation like I need to be, I am excpeting some help from DA and guy you mentioned as well. Thansk in advance!......

Thanks in advance!
 
p.s. @Richard G

Sent to them all and created fetaure req. as well, please if you can Vote it....


Thanks in advance, I expect some help from DA, because I am looking serious business to run on DA in future and to paying for it!

Danke :)
 
p.s. to update the ticket, I found in dovecot doc behaviour about LAZY INITIALZIATION OF MAILBOXES folders, this is dffault on dovecot,

Screenshot_20230722-154456_Chrome.jpgScreenshot_20230722-154607_Chrome.jpg

But Cpanel and some other panels, suppouse , they make it custom on their side to make these DEFAULT that all peoples using folders to be created automatically, so I think this can be done from DA side in next update in a minute.... I hope will get some response and solution from them..

Thanks in advance all!
 
I'm sorry, but I won't vote as we don't need it and not any of my customers are asking for it. To me this has not a lot of use since it will be created automatically when needed.
And I also vote for things really important to me or which would come in handy, but we don't have any issues with this.

As for cPanel, I could test, we also have a cPanel server. Maybe if I have a bit of time later on or tomorrow, I can check the dovecot.conf and check what CP has different so it gets created there automatically.
It might be indeed the lazyinitialization, however, it should be possible to disable that somehow then. But I don't know, I'm not into dovecot stuff.
 
I'm sorry, but I won't vote as we don't need it and not any of my customers are asking for it. To me this has not a lot of use since it will be created automatically when needed.
And I also vote for things really important to me or which would come in handy, but we don't have any issues with this.

As for cPanel, I could test, we also have a cPanel server. Maybe if I have a bit of time later on or tomorrow, I can check the dovecot.conf and check what CP has different so it gets created there automatically.
It might be indeed the lazyinitialization, however, it should be possible to disable that somehow then. But I don't know, I'm not into dovecot stuff.
it not cost you anything just to vote for one new folder " Sent " to be created in disk automatically... but ok...

i think that is must to have default folders created automatically,,

OK pls check on cpanel regardgint that dovecot conf, how they skip that lazy initilzation and let us know if find anything.

Thanks in advance!
 
OK pls check on cpanel regardgint that dovecot conf, how they skip that lazy initilzation and let us know if find anything.
Sure. CP has put the creation of the folders in their dovecot.conf file.

Code:
  mailbox Drafts {
    special_use = \Drafts
    auto = subscribe
  }

  mailbox spam {
    special_use = \Junk
    auto = subscribe
  }

  mailbox Trash {
    special_use = \Trash
    auto = subscribe
  }

  mailbox Sent {
    special_use = \Sent
    auto = subscribe
  }

  mailbox "Sent Messages" {
    special_use = \Sent
    auto = no
  }

  mailbox Archive {
    special_use = \Archive
    auto = create
  }

  mailbox "Archives" {
    special_use = \Archive
    auto = no
  }

In fact you should have been able to fix this already due the the complete manual from factor I linked you to:

check starting from:
Then you have to go to

cd /etc/dovecot/conf.d
nano 90-special-folders.conf
So create this special folders file and create the folders like here or like mentioned just below that in the thread.
You can compare with what I have placed here from the CP server.
 
Hello if you do my guide.
Especially the part with the folders like noted in the guide.

Code:
cd /etc/dovecot/conf.d
nano 90-special-folders.conf

Import the cpanel account.
Then at the end re run
Code:
echo "action=convert&value=imap_inbox_prefix" >> data/task.queue; ./dataskq d2000

I think you will get the behavior you want.

Please try it and let me know.
 
Just answer some of your questions: Not to much of a big deal.
Dovecot IMAP folders to be created automatically on user acc creation level Directadmin
Standard Dovecot doesnt do this the user or someone must login.

like on cpanel...,
I would stop focusing on cpanel. Directadmin, Interworx, Plesk... arent Cpanel.
I have tried to modified " namespace_private.conf " in dovecot but no changes, only inbox normally with cur/new is created + INBOX.spam, no any other folder upon creation, and if you login with THUNDERBIRD first time or via Roundcube, but if you login with OUTLOOK for first time there are a big troubles with that " Sent " IMAP folder non-existance as a real folder already.
Dont do this use the file in my guide.
ALSO I THINK THIS IS " BUG " AND SHOULD BE FIXED IN DA TOTALLY-globally! CHECK SCREENSHOTS BELOW FOR DA-CP COMPARING FOR THIS CASE!!!

IN DA (AFTER ACCOUNT-USER-MAIL CREATION, NO ANY MAIL CLIENT LOGINS YET):
You dont have to yell... We all have been there. We all have the things we dont like in DA or any other panel. It is not a bug Dovecot works this way in the Standard format. Is Cpanel doing something to get those folders on account creation maybe so.

Code:
mailbox "Sent Messages" {
    special_use = \Sent
    auto = no
  }

I dont have this one in my Guide if you need it just add it to the 90-special-folders.conf file.
 
Back
Top