how limit number of email send per day for users

nimafire

Verified User
Joined
Aug 10, 2008
Messages
251
hello

how can i creat limitation for users about number of email that users send per day or hour.
becasue i see this option on :
Home » Show Users » User test

Sent Emails 83516 unlimited / Day
 
MMM right.
i have install new version of directadmin
this line:

if (open (LIMIT, "/etc/virtual/limit_$name"))

isnt on /etc/exim.pl

also i cant understand that only do :
echo 300 > /etc/virtual/limit_justinbi
for this limitation or ... ?
 
Code:
wget -O /etc/exim.pl http://files.directadmin.com/services/exim.pl
chmod 755 /etc/exim.pl
/etc/init.d/exim restart

This for get latest exim.pl

Code:
echo 300 > /etc/virtual/limit_justinbi

This will set limit to 300 email per day for user justinbi

Nothing more needed.

Well... echo 300 > /etc/virtual/limit for example will limit to 300 email per day to all user

So you can use the limit file for set all user max email per day and then specify some user to have more (or less) email per day limit using limit_username file

Regards
 
I tried to update the exim.pl via Exim Editor plugin, but the new file that proposes is the one I already have and it's missing the line:
if (open (LIMIT, "/etc/virtual/limit_$name"))

Also, it says something about updating exim.conf.
Do I really need to update exim.conf?
Or can I use the above commands and replace only the exim.pl file?
Do you recommend using the plugin for any modifications / updates or via ssh?
 
For email limit you need to update JUST exim.pl.

I would reccomend to update just via ssh.

The latest exim.pl is the one with #VERSION=8 in first lines.

Regards
 
Thank you!

PS: by the way, is it possible to set monthly limit for just 1 user/reseller?

Regards
Themis
 
Last edited:
Mmmmh honestly i dont know.. but probably not cause the check is for daily limit and for monthly maybe directadmin staff need to change the exim.pl again.

Maybe you should try ask them with safesubmit or ask for a feature request in related forum.

Regards
 
Is there a way to open the limit just for one email address for a user?
 
It can be done just for account using /etc/virtual/limit_USERNAME but not for a single email, you should ask for it in Feature Request Forum..

Regards
 
Back
Top