I wanted to be able to automate the process of monitoring who is about to exceed their allocated e-mail storage, then send them a warning message to start deleting messages before new e-mails get rejected. I also don’t want my users filling up the /var directory consequently preventing the mail system from receiving anymore messages. I remember coming across a topic in one of the forums related to Postfix where it mentions if Postfix is unable to write to disk due to a disk quota limit it will send a message back to the sender “error writing message: Disk Quota Exceeded.” based on this I no longer need to patch Postfix for quota support.
Note: User’s e-mails are stored as mbox. Procmail not being used as a mail deliver agent (will not work if using procmail.)Ã‚Â Postfix version 2.3.8 is setup to use Amavisd-new and Spamassassin. I also have created a more detailed guide implementing a mail server here.
I already have quota support enabled on /Home and /var. /Home directory holds mail folders created by users, /var directory holds users inbox e-mails.
On Webmin go to Systems | Disk Quotas | Click on module config change the message being sent out to users.
Clicking on /var users link I can set up an automated warning message to send out to users nearing 90% disk usage. The same could be done for /Home as well. I also get a copy of warning message being sent so I know which user is exceeding quota limits.
Sending a test message to test disk quota limit I get the message below.
One less task to manage!