I am attempting to use the per user prefs in spamassassin 3.0 with qmail ldap with the QMAILQUEUE patch.
My initial idea was to use a script with qmail-queuefilter passing the message through spamc as follows:
----------------- /etc/tcp.smtp ----------------- :allow,TARPITCOUNT="25",TARPITDELAY="5",QMAILQUEUE="/var/qmail/bin/qmail-spam-queue"
-----------------
/var/qmail/bin/qmail-spam-queue
-----------------
#!/bin/sh
exec /usr/local/bin/qmail-qfilter /usr/local/bin/spamc -u $QMAILUSER -U /tmp/spamassassin
As I understood it, qmail-qfilter sets the QMAILUSER variable and therefore I could use it for spamc to get the individual user prefs. What it looks like to me is the variable $QMAILUSER is empty and causes spamc to fallback leaving the message unedited.
Am i misunderstanding its usage ?
Would anyone suggest a better way ?
Regards,
Nathan.
