nothing has been resolved, if you log in with root and go directly to -email-> Email Accounts- you will see that the quota looks wrong, if you log in to any of the users created, yes you are right Anderson Alipio, exactly what happens you posted above, quota 0.
I also tested this:
edit the main dovecot file
nano /etc/dovecot/dovecot.conf
and make sure
mail_location = maildir:/home/%u/%d/%n
save and exit
edit this one
nano /etc/dovecot/dovecot-mysql.conf
and change all the /var/vmail links to the path you need mine is posted bellow
# following should all be on one line.
password_query = SELECT username as user, password, concat('/home/%d/', maildir) as userdb_home, concat('maildir:/home/%d/', maildir) as userdb_mail, 101 as userdb_uid, 12 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1'
# following should all be on one line
user_query = SELECT concat('/home/%d/', maildir) as home, concat('maildir:/home/%d/', maildir) as mail, 101 AS uid, 12 AS gid, CONCAT('*:messages=0:bytes=', quota) as quota_rule FROM mailbox WHERE username = '%u' AND active = '1'
iterate_query = SELECT username AS user FROM mailbox
But unfortunately it doesn't work properly, errors occur, it definitely needs to be modified in a lot of places and if you rebuild your mail services, all the settings need to be redone
it doesn't work ... don't try on production, the e-mail boxes should be in /home/USER/mail correctly, as I said before as in cPanel ...
For studio4host and josemnunez, you know how quota works in cPanel, this change should be made to cwp, I think this is a priority.