Submitted by dyolduz on Fri, 06/15/2012 - 04:23
Hi, I'm using webmin and virtualmin. I've set the account plans, created virtual servers and users. One thing i couldn't understand is Server Owner can create a mail users with unlimited quota and it's not a thing that i don't want. How can i disable "Unlimited" quota in user creation.
Thanks.
Status:
Active
Comments
Submitted by JamieCameron on Fri, 06/15/2012 - 05:23 Comment #1
It isn't really unlimited - the mailbox is still limited by the domains quota.
Submitted by dyolduz on Fri, 06/15/2012 - 06:10 Comment #2
but i query the user on server and it seems NOLIMIT. I'm using QMail/VpopMail.
Submitted by andreychek on Fri, 06/15/2012 - 07:53 Comment #3
What output do you see if you run these two commands on the server as root:
quota -v USERNAME
quota -g USERNAME
Where "USERNAME" is the email user that was recently added.
Submitted by dyolduz on Fri, 06/15/2012 - 08:45 Comment #4
Since it's only an e-mail user it gives the output below;
# quota -g deneme@deneyfaresi.net
quota: group deneme@deneyfaresi.net does not exist.
# quota -g deneme
quota: group deneme does not exist.
# quota -v deneme@deneyfaresi.net
quota: user deneme@deneyfaresi.net does not exist.
# quota -v deneme
quota: user deneme does not exist.
Thanks.
Submitted by JamieCameron on Fri, 06/15/2012 - 08:51 Comment #5
So are your mailboxes actually qmail+vpopmail accounts, rather than being regular Unix users?
Submitted by andreychek on Fri, 06/15/2012 - 08:52 Comment #6
Ah, right, with QMail/VpopMail those users don't actually exist on the system.
When using Postfix/Dovecot, the quotas would indeed apply to email users.
Jamie would need to comment on that, I'm unfortunately not sure how quotas work within VpopMail.
Submitted by JamieCameron on Fri, 06/15/2012 - 19:45 Comment #7
So if a vpopmail user has unlimited quota, is he still not restricted by the domains quota?
Submitted by dyolduz on Mon, 06/18/2012 - 02:27 Comment #8
Server Owner can assign unlimited quota while creating user even if plan has limits on quota.
Submitted by JamieCameron on Mon, 06/18/2012 - 05:30 Comment #9
Right, but can that mailbox actually use more disk space than the domain's quota?
Submitted by dyolduz on Mon, 06/18/2012 - 06:00 Comment #10
Thank you for the replies. I didn't try those quota management but it's not the problem, the user is unlimited on qmail server. how can i disable unlimited quota on mail user creation?
Submitted by JamieCameron on Mon, 06/18/2012 - 07:40 Comment #11
Unfortunately there is no way to disable unlimited quota currently.
Submitted by dyolduz on Mon, 06/18/2012 - 11:37 Comment #12
So, what can i use the option below for?
Default quota for new mail users
When creating a new mail, FTP or database user in a virtual server using this template, the quota set in this field will be used by default.
Submitted by andreychek on Mon, 06/18/2012 - 12:14 Comment #13
I believe what Jamie is describing there is a limitation in using Vpopmail in Virtualmin.
Although it is possible to create Vpopmail users in Virtualmin, it's not as well supported as other options. We'd recommend using Postfix (along with Dovecot) where possible, as that supports all the mail options. It also supports per-user quotas.
Submitted by dyolduz on Tue, 06/19/2012 - 02:38 Comment #14
Thanks.
Last question, is there anyway i can edit a file and force system not to show unlimited radio button?
Submitted by JamieCameron on Tue, 06/19/2012 - 08:59 Comment #15
You could edit the file
/usr/share/webmin/virtual-server/edit_user.cgi
and delete these three lines :&ui_radio("qquota_def", $user->{'qquota'} ? 0 : 1,
[ [ 1, $text{'form_unlimit'} ],
[ 0, " " ] ])." ".