On Wed, Dec 17, 2003 at 05:37:28PM -0600, [EMAIL PROTECTED] wrote:
> Hi
> I have been using qmail-ldap with procmail on a virtual environment with
> almost 30 domains and everything is just working fine.
> 
> I have a general procmailrc file on /usr/local/etc/procmailrc the one
> delivers mail like this:
> 
> :0
> | deliverquota -w 90 ./Maildir/ 2097152S,200C
> 
> more info:
> http://qmail-ldap.suares.com/pipermail/qmail-ldap-archive/2003-May/010129.html
> 
> 
> The problem that i have now is that for some domains and users i need to
> modify the quotas.
> 
> What i do for some users is just to specify the deliverprogrampath to
> somethig  like:
> 
> /usr/local/bin/procmail [EMAIL PROTECTED] Q=104857600S,10000C
> /usr/home/qmail/maildirs/unixmexico.com/nbari/procmailrc
> 
> and on the procmailrc i have a line like this:
> :0
> | deliverquota -w 90 /usr/home/qmail/maildirs/unixmexico/nbari/Maildir/ $Q
> 
> 
> This works but the i would like to know if there is a way to use the ldap
> mailQuotaSize and mailQuotaCount Attribute in a better way so i dont have
> to   specify them again on the $Q var that i pass through the
> deliverprogrampath.
> 
> Is there a way to put the mailQuotaSize and mailQuotaCount on the env
> vars? and if they are on the env how can i use them.
> 

qmail-lspawn sets the MAILDIRQUOTA environment variable with the
Courier-IMAP like quota. So replaceing $Q with $MAILDIRQUOTA should work.

-- 
:wq Claudio

"Contrary to popular belief, penguins are not the salvation of modern   
technology.  Neither do they throw parties for the urban proletariat."

Reply via email to