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
I got this problem partially solved. It was a spamass-milter setting. In the file /etc/sysconfig/spamass-milter, there was a setting to disable header rewrites. I removed that setting, and all my spam is getting tagged now. Thanks for the help.
However, I still have the problem of running spamd as a non-privileged user. I created a new user, gave it a home directory, and changed the options in /etc/sysconfig/spamassassin to run spamd as the user `spamd`, and I also specified that the home directory to look for should be /home/spamd [/etc/passwd shows spamd's home dir as /home/spamd]. I can see that spamd is running as the non-privileged user, but it still looks to /root to find .spamassassin directory, even though there is a directory by that name in /home/spamd. I see this error message:
May 17 12:59:11 xxx spamd[24662]: Creating default_prefs [/root/.spamassassin/user_prefs]
May 17 12:59:11 xxx spamd[24662]: Cannot write to /root/.spamassassin/user_prefs: Permission denied
May 17 12:59:11 xxx spamd[24662]: Couldn't create readable default_prefs for [/root/.spamassassin/user_prefs]
I think the files in /root/.spamassassin had been created when I ran sa-learn as root :/ .
My SPAMDOPTIONS are : -d -c -m5 --username spamd -H /home/spam
What should I do to make SA read /home/spamd instead of /root?
Thanks, Saurabh. -- -------------------------------------------------------------------------- "Yours is to work. The results will take care of themselves" -- Swami Vivekanad --------------------------------------------------------------------------
Saurabh Barve [EMAIL PROTECTED] (970)491-7714