Separate emails for bandwidth and disk overusage

nicknn

Verified User
Joined
Oct 4, 2006
Messages
34
Hi

What about separate emails for bandwidth and disk over usage?
So when someone is close to reach bandwidth limit, notify him to purchase extra bandwidth
 
Hello,

Actually, you can already do that.
Copy your user_limit.txt to the custom folder, and edit it.
Do something like this:
Code:
|*if BANDWIDTH>"80"|
|?SUBJECT=User `USERNAME` has used `BANDWIDTH`% of his bandwidth|
This is an automated message notifying User |USERNAME| that |BANDWIDTH|% of his/her bandwidth has been used up.

It is estimated, at the current rate of use, that the account bandwidth will be used up in |TIMELEFT| days, at which time the account may be suspended for the remainder of the month.
|*endif|
|*if QUOTA>"100"|
|?SUBJECT=User `USERNAME` has used `BANDWIDTH`% of his disk quota|
This is an automated message notifying User |USERNAME| that |QUOTA|% of his/her disk space has been used.
|*endif|

The User should contact Support if this is an issue.

================================
Automated Message Generated by DirectAdmin
John
 
Thats fine John, thanks

But is there any way to mail direct the message to the user
instead of providing the ticket link?

If i put this code in the message_user.txt id does not seem to work.

What is the |flag| for the suspension
Maybe |*if SUSPENDED="TRUE"| or something?

thanks
 
Back
Top