On Wed, 9 Nov 2011, Martin Strand wrote:B>
For what it's worth, here's a similar policy daemon that I've been using for a few years. - it only checks the quota if MAIL FROM has a SIZE parameter (which is not always the case) - it executes 'postmap' on each request to find the proper maildir so will not scale very well - been using it on an ancient Postfix installation together with the VDA patch and Courier - daemon must be run by a user with access to all maildirs (in my case it's 'vmail')
Martin, take a look at Postfix Quota Reject (http://postfixquotareject.ramattack.net). It scales well and it's designed having in mind isp with front mailscanning machines... although works nice too on little (or single machine) environments.
Bye!