On Fri, Feb 13, 2004 at 11:25:47AM -0300, Rodrigo Gesswein wrote:
> Hi there,
> 
>    I'm using qmail ldap patch (qmail-ldap-1.03-20040201.patch) in
> my  qmail  server.  For  each  user I specifies "qmailDotMode" as
> ldapwithprog  and  set  "deliveryProgramPath"  to a program which
> check  spam  e-mails  using  spamd  I must turn "deliveryMode" to
> nolocal to avoid duplicate messagges.
> 
>    Also,  I  set "mailQuotaCount" to 20 for test user. However, I
> discovered  that  qmail  does  not  check  for  the quota in this
> setting....
> 
>    Any ideas about this issue ??
> 

Qmail-ldap can only check the quota if it does the maildir delivery self.
If it is done by an external program qmail-local has no chance to guess if
that delivery would pass the quota.

The easiest approach is to use external apps that know the exit 99 .qmail
handling. e.g. I use condwrite which is part of qmail-ldap that knows
about quota handling. As a simple example here is my baysian spam filter
setup:
|/var/qmail/bin/condwrite ./Maildir/.spam/ /usr/local/bin/bmf


-- 
:wq Claudio

Reply via email to