Open PitWenkin opened 3 months ago
Thanks, that does look like a bug! Let me take a look ...
Can you post the contents of the file /etc/webmin/virtual-server/initial/XYZ
where XYZ is the domain's unique numeric ID? You can get that by running virtualmin list-domains --domain yourdomain.com --id-only
dbs=
shell=/dev/null
secs=
quota=none
While Interface shows
I've had this on 2 servers, settings above are from my dev-machine, which might be fucked up, but behaves in the same way as the others.
My guess is that simply switching the labels for option 1 and 2 would "fix" it
When selecting Unlimited
:
dbs=
shell=/dev/null
secs=
When selecting 25 Mib
:
dbs=
shell=/dev/null
secs=
quota=25600
Ok I see the bug now - this will be fixed in the next release.
@PitWenkin Try applying the patch and see if it resolves the problem for you:
webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/a4e5c37
@PitWenkin Try applying the patch and see if it resolves the problem for you:
webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/a4e5c37
It's worse. I still had 25MB saved
dbs=
shell=/dev/null
secs=
quota=25600
but interface shows
Even after saving it does not change …
Great! Thanks for giving it a try! Now we'll wait for Jamie's comment on this...
Hmm, let me take another look at this..
Quotas from template are still not applied when selecting Default (from template)
but are when when selecting Unlimited
Webmin version 2.302
Usermin version 2.202
Virtualmin version 7.30.7
Quotas from template are still not applied when selecting
Default (from template)
but are when when selectingUnlimited
Virtualmin 7.30.7 was a bug fix release, so it may not include all the changes Jamie made. There are development Virtualmin builds available for testing, but they’re not recommended for production systems.
Short version:
The options
Default (from template)
andUnlimited
are not doing what the labels suggest but what the respective other option suggests …Details:
Under
Server Template
-Mail for domain
I have set a quota of50MiB
for mail usersIn the domain specific setting for
User Defaults
the interface showsHome directory quota
asUnlimited
, but when adding a new mail user the50MiB
form the server template are applied, which should only happen whenDefault (from template)
is selected?Selecting
Default (from template)
actually applies no quota …Selecting the third option propperly applies the given quota.