Helmut Apfelholz wrote:
> I was thinking about creating a deamon that would do
> quota operations in the cyrus system. One could then
> write the functions used by deamon for seting and
> reading the quota. In such a configuration one could
> store the information in:
> - files as it happens now
> - SQL database
> and so on.
>
> Such a setup would for example allow for storing quota
> information in the central database for separate
> servers.
>
Sounds great. If you do this, have a look at unix_notify.c to see in general
how to get Cyrus to call out to a daemon during a delivery phase. Consider
implementing a quota check in a similar way--eg a compile time hook that can
be easily configured, with a specific hook included that does the Unix
socket daemon callout.