Hello, Apologies if this is slightly OT, but I've been over this with the SA list and they tell me spamassassin is working correctly. Also since smtp-vilter is one of two milters in packages, I thought there must be people on this list with experience with it (And I know the author posts here)
I have been running an OpenBSD (now at 3.8) Sendmail relay in my dmz for a couple years now that forwards to an internal Exchange server. It's nothing fancy and I'm not really a sendmail or unix expert but it's been getting the job done. So the time has come for taking anti-spam measures. To start I'd just like to mark spam instead of block it (so no OpenBSD's spamd yet), and to that end I've installed SpamAssassin 3.0.4 and smtp-vilter 1.1.9, both from packages. It 'works' to a certain extent, in that smtp-vilter headers are added to all messages. The problem is, the scores assigned to spam messages are clearly much too low, and the large majority of spam is not marked as such and much of it is actually scored negatively. However, testing manually on a spam I received... # spamassassin < testspam.txt and # spamc -R < testspam.txt ...the message scores a 14.3. However, when I actually received this message in my mailbox, it was scored -1.6. So I am thinking that there is a problem somewhere between smtp-vilter and spamassassin, but where? Has anyone seen this behavior or have a suggestion? smtp-vilter and (spamassassin's) spamd are both running, are writing to maillog, and appear to be 'working' as far as I can tell. This is how smtp-vilter and spamassassin are called: >From my sendmail.mc: INPUT_MAIL_FILTER(`smtp-vilter', `S=unix:/var/smtp-vilter/smtp-vilter.sock, F=T, T=S:10m;R:10m;E:10m')dnl >From my /etc/rc.conf.local: smtp_vilter=yes >From my /etc/rc.local: # start smtp-vilter if [ X"${smtp_vilter}" != X"NO" -a \ -x /usr/local/sbin/smtp-vilter ]; then echo -n ' smtp-vilter' /usr/local/sbin/smtp-vilter -m -u _vilter -g _vilter fi # Start Spamassassin daemon /usr/local/bin/spamd -u _vilter -d -s mail -x && echo -e "spamd started..." My entire /etc/smtp-vilter/smtp-vilter.conf: (comments removed) user=_vilter group=_vilter chroot=/var/smtp-vilter backend=spamd config-file=spamd:/var/smtp-vilter/etc/spamd.conf virus-strategy=notify-recipient recipient-notification=/etc/smtp-vilter/recipient-notification spam-strategy=mark spam-subject-prefix="* SPAM *" unwanted-strategy=mark error-strategy=tempfail port=unix:smtp-vilter.sock tmpdir=/tmp pidfile=/var/smtp-vilter/smtp-vilter.pid log-facility=mail logfile=/var/smtp-vilter/smtp-vilter.log option=logspam option=markall My entire /var/smtp-vilter/etc/spamd.conf: (comments removed) host=localhost port=783 tries=3 timeout=600 maxsize=250000 option=chroot-scanrealpath I've read the man pages for smtp-vilter and smtp-vilter.conf, but I must be doing something stupidly wrong. Does anyone have any ideas or suggestions? File permissions? Something with the chrooting of smtp-vilter? Thanks in advance for any and all help. Mike Sassaman