On 5 Sep 2004, [EMAIL PROTECTED] wrote:

> I would like to know whether it would be possible to add spam filter
> and virus scanner with LDAP support. The idea is to let users choose
> if they want their email scanned or not. In the web interface they
> would be able to set their preferences, and mail server should act
> according to those preferences.

Could you look up their LDAP record when you're about to deliver the
mail, so the choice is made in the global script without involving
qmail-ldap?  The lookup should be cached, or the LDAP connection
should be cached, but the basic idea is that you always call the
scanning script but it doesn't always use CPU cycles.  Implementing
this is pretty easy.

In our environment we allow users to set up a .procmailrc, and then
LDAP will tell qmail-ldap to use procmail for those specific users (as
a delivery program).  That's also an easy way but then every user
that wants spam processing has to set up a .procmailrc.  It seems to
me that it's more useful to include everyone by default (as above)
for anti-spam mail scanning, than to exclude by default.

Ted

Reply via email to