On Wed, 2004-11-24 at 18:28 +0200, Karolis Dautartas wrote: > SR> Why not set individual user quotas in LDAP? > > SR> mailQuotaSize: > SR> mailQuotaCount: > > Those have been set, and condwrite is able to deliver according to > those rules. > > SR> and use maildrop to do your spam filtering... > > SR> programDeliveryPath: /path/to/maildrop <filter_file> > > Understood, but how does maildrop know what values the account has in > LDAP database? Does maildrop query LDAP, or any other way?
If I understand correctly all your users' spam preferences are stored in LDAP (spamassassin V3, anyway). When you call spamc in the filter file you call it with the user argument. spamc automatically looks up that user and pulls out the preferences. In my scenario I store all my users' info in a MySQL table and same principle, call spam assassin with the user argument, via maildrop, SA then gets the individual preferences from MySQL. Hope this helps. SLR.
