Automatically fixing validate-domains errors

I wish there was an option in validate-domains command to set it to automatically attempt to fix errors. Fixing this errors manually can take time however many of them can be easily fixed automatically by running a simple chown or mkdir command!

Status: 
Active

Comments

There are API commands and features to fix some errors. Which ones are you referring to specifically?

Mostafa's picture
Submitted by Mostafa on Thu, 12/29/2016 - 05:58

for example mail (home) folder for account X does not exist, OR mail folder is owned by Y instead of X,

The fix-domain-permissions API command should solve all of these (although it seems like from your other bug that it is introducing problems) ?

Mostafa's picture
Submitted by Mostafa on Thu, 12/29/2016 - 13:31

Yes fix-domain-permissions fixes permission errors however it doesnt create missing / removed homes/email folders.

Ah, I see ... yeah, automating fixing these would be a good feature. I'll look into it.

Mostafa's picture
Submitted by Mostafa on Sat, 12/31/2016 - 01:59

Thank you, and Jamie we can also contribute in fixing these things if Virtualmin GPL's source is pushed into Github!

The GPL and pro source is intermixed in a way that makes this hard currently. But you could send me a patch against the code on your system..