Hello Everyone,

Thanks to several of you contributing helpful suggestions, I am now successfully using SpamAssassin with Qmail-ldap on a per-user basis. I'd like to share a few details of my configuration. It ended up being fairly simple, but it took me a while to find this out.

First, I had to create a script, as suggested by A. Pryadun, to run the spamc client rather than specify the command directly in the deliveryProgramPath LDAP attribute. The script looks like the one below, and I had to place the script in the /var/qmail/bin directory. I called it spamcheck.sh. It wouldn't work for me if I placed it outside of that directory.

#!/bin/sh
|spamc |maildir ./Maildir/

Then I specified my deliveryProgramPath attribute to be /var/qmail/bin/spamcheck.sh
I set the qmailDotMode attribute to be ldapwithprog
I set the deliveryMode attribute to be normal
I had previously set my deliveryMode to localdelivery, but that resulted in my receiving two copies of every message sent to me, one checked by SpamAssassin and one not checked.


I run my spamd with the -c argument so spamd will automatically create the .spamassassin directory in the user's home directory if needed.

I hope this helps someone save some time in setting up SpamAssassin on their system.

Brian!





Reply via email to