Fix Permissions mess up the ownerships of user mail directories

To replicate the issue:

  1. Have some virtual servers with additional user e-mail accounts created;
  2. Make sure all the virtual servers validate without giving any errors;
  3. Go to Limits and Validation > Validate Virtual servers > Fix Permissions and get all your domains permissions "fixed";
  4. Run validation again to get lots' of errors like:
Mail for domain : Home directory /home/domain1/mailboxes/gina for user gina@domain1.com is owned by domain1
Mail for domain : Home directory /home/domain2/mailboxes/brent for user brent@domain2.com is owned by domain2
Mail for domain : Home directory /home/domain3/mailboxes/info for user info@domain3.com is owned by domain3
Status: 
Closed (fixed)

Comments

When you created these additional mailboxes, did they have custom home directories? Usually homes are under the homes directory.

Yep, we change that setting to have mailboxes by default, because homes is ambiguous. But that is not the problem here, James - Fix Permissions should respect mail directory file ownerships even on custom mail directories, right?

Yes, this is a bug - it will be fixed in the next virtualmin release.

Status: Fixed (pending) ยป Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.