Postfix quota integration

Benjamin Donnachie benjamin at py-soft.co.uk
Mon Jun 11 09:03:14 EDT 2007


Omni Flux wrote:
> I've been using a postfix policy daemon to integrate with the current
> smmapd to perform quota checks. It has a few shortcomings: it does not
> support virtual domains as is, but I think that would be a minor
> modification, and IIRC, postfix does not pass the final username to the
> policy daemon if alias expansion occurs, however, for my uses, this
> catches nearly all cases of over quota mail.
[...]
> # Most recent version is available at http://www.omniflux.com/devel/

Attached patch to Omni's script introduces the ability for the policy
daemon to look up aliases from the file /etc/postfix/quota_aliases.

The alias appears on the left, with the email address to look up on the
right.  First match wins.

Eg:

alias at example.com	user1 at example.com
@alias.example.com	user2 at example.com
@alias.example.org	@alias.example.com

Comments are not currently recognised.  It's my first attempt at perl,
so please be gentle! :-)

Ben
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cyrquota-pf_policy.pl.patch
Url: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20070611/7d96d9cd/attachment.ksh 


More information about the Info-cyrus mailing list