|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: mouss (mlist.only
free.fr)
Date: Mon Jul 02 2007 - 10:19:57 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Simone Felici wrote:
>
> Hi again,
>
> I've write a script in perl that can query the backend and the output
> of the script is the using quota.
> Now, the 'virtual_mailbox_limit_maps' will point to a sql db where all
> quota limits for all mailboxes are set. Then, with
> smtpd_recipient_restrictions I'll use this option:
> check_policy_service unix:private/mailquota. 'mailquota' will be set
> up into a master.cf like this:
>
> mailquota unix - n n - - spawn
> user=nobody argv=/usr/bin/perl /etc/postfix/mailquota.pl
>
> But how can I pass to /etc/postfix/mailquota.pl the recipient argument?
> The syntax to obtain the usage quota is /etc/postfix/mailquota.pl
> <recipient-email>.
> The output is the used quota of the <recipient-email> in bytes.
you need to read the POLICY README document. but you certainly should
use the policy server example distributed with postfix source code
instead of reinventing the wheel.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]