The solution i found to my problem was to use the deliverquota program,
to the .procmailrc file i just added a line like :


:0
| deliverquota -w 90 ./Maildir/ 2097152S, 200C

hope this can help some one

is there a better solution please letme know

regards

--




Hi am using qmail-ldap patch on a virtual domain enviroment with the
cluster function enable, every works just fine.

I start having problems when i wanted to use procmail for some users, I am
puting a .qmail and a .procmailrc file in the virtual home of some useres.
(home/qmail/vmail/example.com/user/)

Procmail works fine but I notice that the quotas don't work if I use
procmail, the maildirsize file is not been updated and when a new user is
created, the maildirsize is not been crated to.

Any idea on how to fix this problem?

what is the best way to use procmail, in the startup scrips of the qmail?
or in a .qmail file?

using maildrop instead of procmail can fix this problem?


thanks


PD.
this is what i have on the .qmail file:

|preline /usr/local/bin/procmail -m [EMAIL PROTECTED] ./.procmailrc

and on the .procmailrc file i have this:

---start--
# From squirrel block plugin
SQDATA=/usr/local/squirrelmail/data
# Location of the user's SM Trash file ($HOME represents the user's home
dir) SQTRASH=/dev/null
# Full, absolute path of the test utility on the system
TESTPATH=/bin/test
# Full, absolute path of the formail utility on the system
FORMAILPATH=/usr/local/bin/formail
# Full, absolute path of the grep utility on the system
GREPPATH=/usr/bin/grep
# Full, absolute path of the sed utility on the system
SEDPATH=/usr/bin/sed
# DO NOT MODIFY ANYTHING BELOW UNLESS YOU (REALLY) KNOW WHAT YOU'RE DOING!
SHELL=/bin/sh
BLOCKLIST=$LOGNAME.block
#############################
VERBOSE=yes
LOGABSTRACT=yes
LOGFILE=/var/log/procmail.log
LOG="
"
############################
:0
* ? $TESTPATH -f $SQDATA/$BLOCKLIST
{
   # Get the sender's email address
   :0h
   SENDER=|$FORMAILPATH -IReply-To: -rtzxTo:
   # Grab the domain from the sender
   [EMAIL PROTECTED] $SENDER|sed s/^.*@//`
   :0
   * 1^0 ? $GREPPATH $SENDER $SQDATA/$BLOCKLIST
   * 1^0 ? $GREPPATH $DOMAIN $SQDATA/$BLOCKLIST
   {
      DROPPRIVS=yes
      :0
      $SQTRASH
   }
}
:0w
|safecat Maildir/tmp Maildir/new

---end---




Reply via email to