Saurabh Barve wrote: > Hi, > > I'm having problems with SpamAssassin-3.0.3 on a Fedora Core 2 machine > along with Sendmail. SpamAssassin is able to identify mail as spam, and > adds its headers to the mail. However, it does not rewrite the subject > header with the `****[SPAM]****' tag. > > Here's what I have in local.cf: > -------- > required_score 5 > bayes_ignore_header X-Upstream-Spamfilter > rewrite_header Subject ****[SPAM]**** > add_header all Status _YESNO_, score=_SCORE_ Checker-Version > SpamAssassin version=_VERSION_ on _HOSTNAME > report_safe 0 > -------- > > `spamassassin --lint` does not give me any errors. > > I'm using the spamass-milter to do my checking. Here's what I have in > sendmail.cf: > --- > 560:O InputMailFilters=clamav, spamassassin > --- > > Any help is greatly appreciated.
That all *looks* like it should work to me. Are you sure your local.cf is in the right directory? run spamassassin --lint -D and see what SA thinks the "site rules dir" is. I will admit it's uncommon to see someone use SA directly from sendmail.cf like that. Most folks calling SA at the MTA layer use a milter, or an integration tool, but InputMailFilters should work correctly. Have you tried feeding a test message directly to spamassassin on the command line? i.e.: spamassassin < sample-spam.txt