PDA

View Full Version : Quota warnings


lapena
20th April 2007, 16:33
I've installed ISPConfig on Debian Sarge (Postfix with Maildir) this wednesday.
Almost everything is working in my installation, except quota warnings. I've created a user called 'test', with a 5 MB quota (web & mail).
When this quota is over, the user can't neither receive mail nor put files through ftp. This is working, it's great.

However here is what I'm looking for :
- First I'd like to know wether there is a script that watch mail quotas and send a notification email to users that use 75, and then 90% of the quota, before blocking it.
- When I've sent a mail to the user 'test' (the quota was reached) I receive an email like this :

Undelivered Mail Returned to Sender

<test@xxx.fr> (expanded from <xxx@xxx.fr>): can't create
user output file. Command output: procmail: Quota exceeded while writing
"/home/www/web2/user/test/Maildir/tmp/1177060587.3832_0"

Is there a way to replace this mail ? In fact I'd like that the path folder is not shown and to custom the mail, because for most of users it isn't explicit.


Kindest regards,

falko
21st April 2007, 13:58
- First I'd like to know wether there is a script that watch mail quotas and send a notification email to users that use 75, and then 90% of the quota, before blocking it.
Take a look at /root/ispconfig/scripts/shell/quota_msg.php. If you modify it a little bit, it should be able to do what you want.