On Thu, 27 Oct 2011, Fred Kilbourn wrote:

Hi again,

It figures, after finally giving up and posting this, I found what appears
to be a simple solution.

You can configure dovecot use various back ends, I'll just tell it to save
quota information to mysql.

I can then in postfix, use check_recipient_access in
smtpd_recipient_restrictions to look at that table and use mysql language in
my query to produce an appropriate response.

Let me know if this sounds about right.

I do quota checking via a policy service which uses a perl script to check mysql quotas. It is used in the smtp_end_of_data_restrictions.

The size of the message being delivered is provided to the policy. I use it to calculate if the message being delivered would put the account over its quota.

I allow for the ability to have quotas on either message count or message size, or both.

Reply via email to