Site bandwidth usage BUG!!!

NickFritz

Verified User
Joined
Sep 6, 2005
Messages
81
directadmin is saying two of my 30 domains have used like 12gig and 17gig so far this month and its been like 1 day.

Havn't changed anything cept updated to the latest version a week or so ago.

see the attached files for how its doing it.

It suspended these accounts too.

The accounts actually only used a few megs if that so far this month.
 

Attachments

  • bug.gif
    bug.gif
    27.3 KB · Views: 204
Hello,

Check:

/usr/local/directadmin/data/users/gfa/bandwidth.tally

It should contain severl lines. One example line should have would look like this:
Code:
208447.000000=type=tally&time=1138864206&ftp_bw_total=0.000000&http_bw_total=0.000000&da_bw_total=208447.000000
That is the tally entry. It should show up once per day. If it's the 2nd day of the month, you should see 2 of these entries.

Other possible entries might have just a number, with no data at all. These entries are the outbound email usage, one line per email. The numbers are take from /etc/virtual/usage/gfa.bytes . If this usage bytes file is very large, then there is likely a spammer on the account, so I'd recommend setting up a dailiy limt for the email by running
Code:
echo 100 > /etc/virtual/limit
for 100 emails per day.

Other entries are for other DA related bandwidths, like ftp backup transfers for resellers.

John
 
I had a look and all i see is a bunch of numbers.
35355
35355
35355
35355
35355
35355
35355
35355
35355
35355
35355
35355
35355
35355
changes to other numbers but tahts all thats in there.

this is in both the files

Could it be someones using a form on those sites to send out emails?
 
Hello,

That's what I've seen a few times before. Often times a user will have a very insecure formmail script which causes huge masses of spam to be sent out.

John
 
Is it possible to set this mail limit on a per-user basis? Or put more exactly, is it possible to make a specific user exempt?

Limiting the number of outgoing emails is great. But when a user has a whole firm behind one user account (catch-all mail that is sorted at the firm's own mailserver) then this limit will get exceeded quickly.

Just out of interest!

Harro
 
Hello,

There is not a setting for a per-user limit at this time, it's only for the 1 system account who owns everything. It's designed more for a run-away stop .. so you can set it quite high, several thousand would work if you have many clients. You would need 607,050 emails at 35.3kb each to hit 17 gig, so a stop of a couple thousand would greatly reduce the volume (tweak to the needs of your clients).

John
 
Back
Top