You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Shannon Werb <sh...@swerb.com> on 2004/04/05 04:26:22 UTC
Trouble adding headers
Hi All,
New to the list, but been using SA happily for quite some time now, great
product, thanks!
I have a question that I am unable to find my answer to in the FAQ,
documentation and website... First my config...
FreeBSD 4.7
Qmail
SA 2.6.3
Running from .qmail file through ifspamh (found on the net but slightly
customized for trash support)
Spamd running as follows:
/usr/local/bin/spamd -L -d -r /var/run/spamd.pid
Spamc calling spamd from .qmail file with -u option (although tested find
with setuid which is the normal mode)
My local.cf is as follows:
required_hits 5.0
whitelist_from *@swerb.com *@battcave.com
skip_rbl_checks 1
rewrite_subject 1
subject_tag *SPAM*:
allow_user_rules 1
When spam is found I get the original message enclosed, nice report, no
complaints, but I want to draw your attention to my headers:
X-Spam-Level: *****
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on batt1.battcave.com
X-Spam-Flag: YES
X-Spam-Status: Yes, hits=5.8 required=5.0 tests=BAYES_99,HTML_70_80,
HTML_MESSAGE autolearn=no version=2.63
I want to add these headers to ALL messages, spam or otherwise, to indicate
that the message was scanned and the results. Per SA documentation I can
use add_header in my local.cf file or my user_prefs file to accomplish this
and it also notes that this is ON by default with SA 2.6.x and above:
[SNIP]
Here are some examples (these are the defaults in 2.60):
add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, hits=_HITS_ required=_REQD_ tests=_TESTS_
autolearn=_AUTOLEARN_ version=_VERSION_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on
_HOSTNAME_
[END SNIP]
No matter what I do I cannot seem to get the all option to work, it only
seems to want to add the headers when actually tagged as spam, what am I
missing? I have tried to find spamd options, spamc options, doesn't appear
to be anything... I have tried to customize /etc/mail/spamassassin/local.cf
and my local account user_prefs file, I have even tried to reload spamd
after I change this and I can't seem to get it to work...
Thanks for all your help!
Best Regards,
Shannon
http://www.battcave.com/