Control Web Panel
WebPanel => E-Mail => Dovecot => Topic started by: Com-QuadTech on September 25, 2021, 09:42:58 AM
-
I have the problem that folders for the mail domain are not created correctly or not at all. Folders such as .drft, .send etc. are not created under / var / vmail / domain /, and they were all assigned to vmail only, then given chmod 750. I've already moved vmail to the home folder, and chmod, chown root: dovecot / var / run / dovecot
chmod 755 / var / run / dovecot executed, but directories for the mail domain are not created.
Log: Sep 25 11:19:41 imap(postmaster@xxxxxxx): Error: Namespace '': mkdir(/var/vmail/xxxxxxxxx/postmaster) failed: Permission denied (euid=1001(sxsxx) egid=12(mail) missing +w perm: /var/vmail/xxxxxxxx, dir owned by 101:12 mode=0755)
all DNS entries are set correctly
How can I achieve that these are set correctly during installation and the right ones are also set appropriately.
Thanks for the support
-
you have this info on cwp wiki
http://wiki.centos-webpanel.com/move-varvmail-to-another-partition
-
Thanks, I had already done that as described in the post above and still nothing changes, I still get the error: failed: Permission denied (euid = 1001 (sxsxx) egid = 12 (mail) missing + w perm: / var / vmail / xxxxxxxx, dir owned by 101: 12 mode = 0755 It should also be possible to remedy these errors.
So is there any other solution?
-
try using api to fix mail perms
http://wiki.centos-webpanel.com/cwp-admin-api
/scripts/cwp_api account mail_fix_permissions
-
When installing or setting up an e-mail (accounts), the folder is set to 0777, but it should be set to 0770 so that all necessary sub-folders are created.
How can I make it happen that this happens when the account is created without manual configuration.
I've already done everything else as you can see above.