View Full Version : [SpamAssassin] Tests in headers?
Homer
01-09-2005, 06:08 PM
Hello,
I installed qmail and spamassassin with the qmailrocks installation guide. All works ok, but I want to insert tests in the headers that spamassassin generate like :
X-Spam-Status: Yes, hits=13.8 tagged_above=3.0 required=6.1 tests=BAYES_99, CLICK_BELOW, NO_RDNS, PYZOR_CHECK
How can I do this?
Thanks
lightcap
02-17-2005, 09:19 PM
Here's all it takes with the latest version of QMR (assuming you installed QMR as instructed):
1. Edit /downloads/qmailrocks/qmail-scanner-1.24/qms-config to look like the following (the important settings here are --sa-alt,--sa-debug --sa-report):
./configure --domain yourdomain.com \
--admin postmaster \
--local-domains "yourdomain.com" \
--add-dscr-hdrs yes \
--dscr-hdrs-text "X-Antivirus-ARTISANTECHNOLOGIES.COM" \
--ignore-eol-check yes \
--sa-quarantine 0 \
--sa-delete 0 \
--sa-reject no \
--sa-subject ":SPAM:" \
--sa-alt yes \
--sa-debug yes \
--sa-report yes \
--notify admin \
--redundant yes \
--qms-monitor no \
"$INSTALL"
2. Run './qms-config' again to validate changes.
3. Run './qms-config install'
4. And this last step I wasn't sure about, but you may want to run 'setuidgid qmaild /var/qmail/bin/qmail-scanner-queue.pl -g' again for good measure.
That's all there is to it. You'll see an X-Spam-Report header now that lists the SA tests. Also keep an eye on your qms-events.log and qmail-queue.log logs since to use this feature it requires that debug is turned on (which you did in the edits above). That generates a lot more log entries, so make sure you're rotating them on a regular basis.
Homer
02-17-2005, 11:20 PM
Hi,
I do it and I restarted my qmail and spamassassin, but this doesn't work :(
./configure --domain mail.mydomain.ca \
--admin postmaster \
--local-domains "mail.domain.ca" \
--add-dscr-hdrs yes \
--dscr-hdrs-text "X-Antivirus" \
--ignore-eol-check yes \
--sa-quarantine 0 \
--sa-delete 0 \
--sa-reject no \
--sa-subject ":SPAM:" \
--sa-alt yes \
--sa-debug yes \
--sa-report yes \
--notify none \
--redundant yes \
--qms-monitor no \
"$INSTALL"
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.