Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: After reaching the assigned space, deactivate user #845

Open
JB1985 opened this issue May 26, 2020 · 7 comments
Open

Comments

@JB1985
Copy link
Contributor

JB1985 commented May 26, 2020

The problem at the moment is that there is only a hard limit over the web data.

If a user reaches the assigned space, no block will take place.

For example: The user is assigned a storage space of 10 GB. If the user uses 10GB Web, quota intervenes. But if the user still uses 5 GB of emails or database, he can continue to use it without a limit, since quota only calculate the web data.

It would be nice if the user gets a email warning after reaching the assigned space and the customer will be disabled after exceeding x% of the assigned space.

It makes absolutely no sense to assign storage space if you don't have a hard limit anyway.

So that everyone is happy, to disable the user should be an option.

@pquerner
Copy link

Is x% to be configured? Is the warning email going out once? If the account is disabled, how can the user lighten up his given webspace? Isnt he no longer allowed to log-in? (via ftp or whatever?)

@JB1985
Copy link
Contributor Author

JB1985 commented Jun 15, 2020

Is x% to be configured?

Yes.

Is the warning email going out once?

I think yes, why to spam the User? Or what do you think?

If the account is disabled, how can the user lighten up his given webspace?

The User gets a email warning after reaching the assigned space. and AFTER exceeding x% of the assigned space, the user will be disabled.

If the user ignores the warning, only the admin can activate the account again.

Isnt he no longer allowed to log-in? (via ftp or whatever?)

I dont know, if it is possible to allow a disabled user only FTP access.

Do you have a better idea? Let us know!

@Logicbloke
Copy link

For example: The user is assigned a storage space of 10 GB. If the user uses 10GB Web, quota intervenes. But if the user still uses 5 GB of emails or database, he can continue to use it without a limit, since quota only calculate the web data.

So instead of deactivating their account altogether which will make your customers pretty angry and possibly take their business elsewhere, why do we not think about limiting mail and db space as well within the quota without disabling the user?

@JB1985
Copy link
Contributor Author

JB1985 commented Jul 16, 2020

So instead of deactivating their account altogether which will make your customers pretty angry and possibly take their business elsewhere,

Because of that, as an option so that everyone can decide if they want to use it or not.

why do we not think about limiting mail and db space as well within the quota without disabling the user?

@d00p says it's not easy to implement. But yes, that is the best option.

But so users have unlimited storage space. There should be a solution to prevent this.

@Logicbloke
Copy link

Logicbloke commented Jul 28, 2020

Within MailServer Settings, we find this:
Use mailbox-quota for customers
Activate to use quotas on mailboxes. Default is No since this requires a special setup.

It doesn't say what special setup is required though.

@JB1985
Copy link
Contributor Author

JB1985 commented Sep 23, 2020

I think I now have a good idea for implementing it.

The "froxlor_master_cronjob.php" should have a new option like --set_quota

The idea is, if a user reaches the assigned space the Cron Script "froxlor_master_cronjob --set_quota" set new quotas. For example:

The customer has 10GB of storage space.

The Customer is using 7 GB of the storage for web and 3 GB of the storage for mail. Now, the "froxlor_master_cronjob --set_quota" should set new quotas.
Not 10GB as it is now, but will be changed to 7GB and if it is configured Dovecot for quota, to set 3 GB of quota for mail.

@ChristophFranzen
Copy link

The latter (setting web quota to 7, and mail quota to 3, if user has "bought" 10 in total) isn't a particularly good idea, I think. This only works, properly, if the quota has been already reached. Which numbers will you use, when the space has been exceeded already? What do you want to do. before then 10 in total are reached?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants