Control Web Panel

WebPanel => E-Mail => Dovecot => Topic started by: Com-QuadTech on September 25, 2021, 09:42:58 AM

Title: Dovecot / var / vmail / directory rights and user assignment are not created cor
Post 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
Title: Re: Dovecot / var / vmail / directory rights and user assignment are not created cor
Post by: studio4host on September 26, 2021, 01:41:31 PM
you have this info on cwp wiki
http://wiki.centos-webpanel.com/move-varvmail-to-another-partition
Title: Re: Dovecot / var / vmail / directory rights and user assignment are not created cor
Post by: Com-QuadTech on September 27, 2021, 02:11:13 PM
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?
Title: Re: Dovecot / var / vmail / directory rights and user assignment are not created cor
Post by: studio4host on September 27, 2021, 08:19:02 PM
try using api to fix mail perms
http://wiki.centos-webpanel.com/cwp-admin-api

Code: [Select]
/scripts/cwp_api account mail_fix_permissions
Title: Re: Dovecot / var / vmail / directory rights and user assignment are not created cor
Post by: Com-QuadTech on September 29, 2021, 06:27:58 PM
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.