System Documentation / Qmail MailQuotaCheck
Paul Gregg - Projects - Qmail / mailquotacheck
My system runs an excellent mail system called Qmail which allows me great flexibility to provide various email services both quickly and securely. My own mail system is 99% POP3 only users and so I didn't want to set up separate UIDs for each user - bit of a waste. Qmail allows me to setup every POP3 account under the one UID safely. qmail-popup/checkpasswd/qmail-pop3d then securely handles the client logins to the client's email preventing them from accessing each others email.
Anyway, using this, the System Quota isn't going to work as it is 'user' based and all out mail users are effectively all just one user to the machine so I have developed a script mailquotacheck.sh to check the recipients current quota before delivery.
Source code: mailquotacheck.sh
mailquotacheck is provide Free of Charge to whoever wants to user it. I provide no warranty or guarantee that it will work or that it cannot damage your mail reception, etc, etc.