Question on email send limits

vancocom

Verified User
Joined
Jul 12, 2007
Messages
30
Question on email send limits - solved

I followed the instructions on setting outbound limits (http://help.directadmin.com/item.php?id=81) but I have a few questions.

Does this also count emails sent via the squirrelmail or other web-based interface? I sent a few to test and I am not getting a mail count in /etc/virtual/usage/ for that email account. Does the procedure in the link above only track mails sent per account and not per email?

I'm having trouble telling whether the count was properly reset with the tally as I've read elsewhere (sorry I don't have a link on me). Would this be recorded in a log? So far I have been unable to find anything.

My problem is that someone signed up for an account and sent a ton of spam through my system's squirrelmail. I'm trying to find way to limit the spam for future occurrences (that user's account is suspended - soon to be deleted) and will soon start scanning outgoing with spamassassin if I can find a way to do it right.

Thank you!
 
Last edited:
Well I may have answered all of my questions. In the /etc/virtual/usage/ directory the username.bytes includes traffic for all users under the parent user account.

As such it looks as if the limit includes all email accounts in the grand total. It also counts the webmail submissions as I saw the number of outgoing entries go up when I used the squirrelmail interface.

For anyone who happens to come across this it might help to know that the .bytes file contains both incoming and outgoing traffic, and the username file will only show up once an outgoing message is sent (i.e. username.bytes and username files). As you will find in other posts the username file contains only a bunch of 1s, each "1" being a single outgoing email (i.e. 111 = 3 sent).
 
Most editors tell you in which column the cursor is positioned, so the easiest way to count emails is to place the cursor on the last 1 in the line and look at the column number.

Jeff
 
the "wc" command in your shell can also do this.

usage:

Code:
wc -clmw [I][file...][/I]

The following options are available:

-c The number of bytes in each input file is written to the standard output. This will cancel out any prior usage
of the -m option.

-l The number of lines in each input file is written to the standard output.

-m The number of characters in each input file is written to the standard output. If the current locale does not
support multibyte characters, this is equivalent to the -c option. This will cancel out any prior usage of the
-c option.

-w The number of words in each input file is written to the standard output.
 
the "wc" command in your shell can also do this
Thanks for the post. I thought wc only counted words. And while I certainly should have trusted byte size, I always figured that there might be some extra overhead in the file.

My bad :)

Jeff
 
Back
Top