What I did was to add the option -p (man procmail: -p Preserve any old environment) to the procmail line in the user ldif.
my deliveryProgramPath now looks like: /usr/local/bin/procmail -p [EMAIL PROTECTED] /local/etc/procmailrc and change my profile to: CUT=/usr/bin/cut VUSER=`echo $LOGNAME | $CUT -d @ -f 1` VDOMAIN=`echo $LOGNAME | $CUT -d @ -f 2` MAILDIR=`echo "$HOME/$VDOMAIN/$VUSER/Maildir/"` :0 | deliverquota -w 90 $MAILDIR $MAILDIRQUOTA Hope this can help anyone having the same problem. On Thu, 2003-12-18 at 01:56, Claudio Jeker wrote: > 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.
