Limit daily emails

inferencia

Verified User
Joined
Aug 21, 2005
Messages
677
Location
Spain
Hello folks,

I have read this in the help section:

There is an option to turn on a limit for how many emails are sent by a particular user. To enable this limit, simply add the number of emails you'd likely to allow per day to the /etc/virtual/limit file.



I have checked this file and it just says 0 (zero) . I assume that's unlimited. Now if I set this to 200, would that affect all users ? Is this still good for current DA installs ? (it was a 2005 help entry)

Thanks,
 
yes it is still good.

for example if 200 is written on /etc/virtual/limit file a user can only send 200 mail messages per day.
You can check how many mails did a user send by checking
/etc/virtual/usage directory
there are 2 files for for each user in this directory

first username
second username.bytes

the size of the first file -username- is the exact number of mails a user sent in one day (1 byte of character added to this file every time a new mail is sent by this customer)

check it like that:
ll /etc/virtual/usage/username
 
hello,

could i ask a question?

about
yes it is still good.

for example if 200 is written on /etc/virtual/limit file a user can only send 200 mail messages per day.

about the limit,
it is limit one domain could send per day ? or one mailbox account ?


thank you
 
Increse limit for one user

Hi, Can I increase the limit but just for one user?
All user limit 200 mails, one user limit 500 mail /day?
 
You cannot easily do it. It requires some programming experience and modifying the exim.pl script.
 
Hi,
If you want limit each user send out the emails each time, you can do it at your exim.conf add below after the line smtp_accep_max :

recipients_max = 200
recipients_max_reject = true
 
ive a quetion about limit... the file he create /etc/virtual/usage/username is a byte for every email sent, received or both?
 
outgoing

I read you also asked that in an other thread.
it's to prevent spamming from the user aka outgoing
not to protect a mailbox from incoming spam
 
hehe yep i use to forget stuff sometime xD

The strange part is this...

Ive just saw an user (that is the only user with ssh access for the server and is my own user) that sent 101 emails... but.. that user dont have email.. so ive checked the .bytes file and seems to be just sending email on all domain hosted on that server.. so.. prolly is a spam.. and prolly is an hack.. now... in the .bytes file there is the email ID but cant find out those id in /var/spool/exim/msglog where i thot was stored.

Ive just asked again for be sure cause i saw many email in .bytes file with incoming and outgoing tags so i was suspecting something going not good... but now im sure that the user created via ssh and used just for root loging in ssh (not created in directadmin and dont have any email) is doing something wrong...

Any suggestion?
 
Back
Top