Thanks, that helps... I'm running it locally, on one user account until I can get it working, hence the .procmailrc file. I ran 'spamassassin --lint 'and it didn't complain, but still no header rewrite. Not running spamd yet. It is processing the email, modifying the original message per report_safe, and adding other headers, it just won't rewrite the subject line!!! Is there a particular place in the config file where it belongs? Here's the meat of my config file:

----
required_score  1.0
rewrite_header Subject *****SPAM*****
report_safe 1
lock_method flock
----

And a sample from a message that was processed

----
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.0.0-pre3 (2004-07-22) on
tiny.smallweb.com
X-Spam-Status: Yes, score=22.2 required=5.0 tests=DIET_1,DRUGS_SLEEP,
FORGED_RCVD_HELO,HG_HORMONE,HTML_30_40,HTML_FONT_BIG,
HTML_FONT_SIZE_TINY,HTML_FONT_TINY,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,


        INFO_TLD,INVALID_TZ_CST,LONGWORDS,MIME_BOUND_DD_DIGITS,
        MIME_HTML_NO_CHARSET,MIME_HTML_ONLY,MIME_HTML_ONLY_MULTI,
        MPART_ALT_DIFF,RCVD_ILLEGAL_IP,UNIQUE_WORDS,X_MESSAGE_INFO
        autolearn=spam version=3.0.0-pre3
X-Spam-Level: **********************
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_41100978.5EA4E5D6"
X-UIDL: "M^"!ICR"!p~B"!?#["!

Spam detection software, running on the system "tiny.smallweb.com", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
[EMAIL PROTECTED] for details.
----





At 03:46 PM 8/3/2004, Matt Kettler wrote:
At 04:53 PM 8/3/2004, Steve Suhre wrote:
I've just installed SpamAssassin 3.0 on a unix server (FreeBSD) filtered through procmail. It works fine, but only if I send the spam to a separate file. If I try to have SA rewrite the header and insert a spam tag in the subject field it just allows everything through. I've tried several methods; rewrite_header, rewrite_subject, subject_tag... I've tried them in the .procmailrc file, and also in the local.cf file for SA. Any suggestions?

Well *clearly* the .procmailrc file is NOT the place to put SA settings.

1) put them in /etc/mail/spamassassin/local.cf
2) run spamassassin --lint *every* time you edit this file. If it complains, fix the problem.
3) if you use spamd, restart it *every* time you edit this file.
4) consult perldoc Mail::SpamAssasin::Conf or man Mail::SpamAssasin::Conf for the proper options for your SA version.



the proper syntax for SA 3.0 would appear to be:

        rewrite_header subject *SPAM*

However, if spamassassin --lint finds errors with any part of your config, all bets are off as SA may ignore *large* parts of your configfile when recovering from the error.






--- Steve Suhre Antero web technologies 719.634.8161 [EMAIL PROTECTED]



Reply via email to