Higher user e-mail limit than global user limit through DA panel

Arieh

Verified User
Joined
May 27, 2008
Messages
1,127
Location
The Netherlands
I've set a limit of 250 in /etc/virtual/limit

But there are some users who are legitimately sending more e-mails, so I want to increase that number for them. If I do this in DA, it says Please set a limit between 1 and 250.

Then I manually create a limit for the user as /etc/virtual/limit_user, however it would be easier to do this through DA.

Is there a reason that this is not possible or am I missing something?
 
I think that's for specific email accounts within a user, and that a user itself can set this limit for his created accounts. Correct me if I'm wrong.

But what I wanted to do is under CMD_SHOW_USER?user=bob and change the value of the input

Sent Emails [ 250 ] / Day

It then says I cannot set it higher than 250.

Then I create /etc/virtual/limit_bob and insert e.g. 350, and then that is shown in the input.
 
I've found both the problem and the communication issue that's not letting us get to the heart of the matter.

Note that I'm using the most recent version of DirectAdmin; earlier versions didn't allow this setting.

When visiting CMD_SHOW_USER?user=bob (replace bob with a valid username on your system) when logged in as a reseller, you can see the email limit for the user, and the current emails for today, but you can't change them.

Using the same CMD call (in your browser) logged in as admin, you can change the limit and reset the daily limit.

But you can't set the daily limit to higher than the max_per_email_send_limit John refers to in his post above. To do that, you need to set it manually.

My usage is the same as user Arieh, and I agree with him it would be nice to be able to do it from the Control Panel rather than by logging in through the shell.

I humbly suggest to John that Arieh and I, and probably others, use a relatively low default server limit (250 or 500) and then set higher limits for clients who demonstrate to us that they need them, and that they keep their software up-to-date so it's less likely to be hacked.

For example, on a shared server, I have two hundred clients and I limit each one to 250 daily emails. This has the effect of making it unlikely that even if a user gets hacked, I'm likely not going to have my server on a blocklist. But one of those users runs a carefully managed website and a carefully managed double-opt-in list he wants to run on our server. I'll let him, by setting a limit of 1000 daily emails for his account. Currently I must do that through the root shell; I'd rather be able to do it through DirectAdmin.

Please, John, would you consider removing the limit? Since it's over-ridable at the root level is there a reason to have it at the DirectAdmin level?

Thanks.

Jeff
 
1) Looking at the code, there are a few related options:
Code:
max_user_send_limit
From here:
http://www.directadmin.com/features.php?id=1372

The upper limit that can be set by a Reseller is controlled by this variable (default):
max_user_send_limit=-1


where -1 implies that the upper limit is taken from /etc/virtual/limit.
max_user_send_limit=0 implies no limit (unlimited)
If max_user_send_limit is set to a number higher than 0, then the number which is set it the limit.

Which is what I believe you're looking for. (the "Reseller" in this case is confusing, as it's actually only Admin by default)
Set that value to a high number, like 1000, to let Admin set a high number.


2) If you want to allow your Resellers to set limits, this is the related option:
Code:
reseller_can_set_email_limit
chage it to 1.
It's also in the same id=1372 versions entry.

If you leave the reseller_can_set_email_limit=0, then you could set max_user_send_limit=0, meaning "unlimited", since you should be able to trust yourself.

John
 
John, you've managed to confuse me completely. Or I've confused you. :)

I want to be able to set a daily per-user limit. Say for example, 250 per user account. I can do this either from the control panel or from the shell:
Code:
# echo 250 > /etc/virtual/limit
Then I get a request from a user (who may be a reseller) who wants me to raise his individual limit to 500, because he needs to send that many per day.

Right now I can't do that from DirectAdmin, as it won't let me go above the default. So I can only do it from the root shell:
Code:
# echo 500 > /etc/virtual/limit_username

What I'd like to see (and what I believe Arieh and likely others wouild also like to see) is the ability to do this from DirectAdmin as well. We can't do it now, because it doesn't let us set a limit higher than the system default.

I'd like the system default to be only a default, and not a high limit. I don't see a problem with this; the admin should be able to set a higher limit for an individual user. In fact I see it as very useful; set a low system default, and then higher limits per individual users on request.

Can do?

Thanks for the consideration. If it needs more discussion, then lets make it a feature request and discuss it.

Thanks.

Jeff
 
You're right Jeff that is exactly what I meant. :)

I think that limit check could just be removed? Or is it there for a reason.

In that case, another option would be to create a new config option for this, e.g. max_email_limit which would set the maximum number that an admin can set for a user. If it's not set, it could just ignore this and take the default limit as max, just like it is now. And maybe also take -1 or 0 as an option to accept any number.
 
So... you should be able to then set the directadmin.conf option:
Code:
max_user_send_limit=600
which should let you set a limit of 500 for a DA User within DA.. which is higher than the 250 in /etc/virtual/limit.

Or.. if you like to live dangerously, set:
Code:
[COLOR=#333333]max_user_send_limit=0[/COLOR]
which completely removes the upper limit of the interface.

I apologize if we're going in circles here :)
 
You're right John, max_user_send_limit is the option that we need. I just tested it by setting it to 1000, now I can set a value between 1 and 1000; while /etc/virtual/limit remains 250.

Thanks for pointing us to the right config option :D
 
And thanks from me as well John, for goving over this with me a few times before I got it through my head that there were two settings involved.

Jeff
 
Back
Top