LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2005, 05:46 AM   #1
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
SA - customized scores from local.cf


Hi,
I have a problem with SpamAssassin. I would appreciate if someone could help me.

My setup is:
I've upgraded to SpamAssassin version 3.0.3 running on Perl version 5.8.0. I am using in conjunction with spamass-milter - Version 0.3.0 and Sendmail 8.12.11. The OS is RHEL 3.

Spamd runs as nobody.

nobody 4859 1 0 12:21 ? 00:00:00 /usr/bin/spamd -d -u nobody -c -m5 -H -s /var/log/spamd.log --siteconfigpath=/etc/mail/spamassassin --configpath=/usr/share/spamassassin
nobody 4862 4859 0 12:21 ? 00:00:00 spamd child
nobody 4863 4859 0 12:21 ? 00:00:00 spamd child
nobody 4864 4859 0 12:21 ? 00:00:00 spamd child
nobody 4865 4859 0 12:21 ? 00:00:00 spamd child
nobody 4866 4859 0 12:21 ? 00:00:00 spamd child
root 4881 1 0 12:22 ? 00:00:00 spamass-milter -p /var/run/spamass.sock -f -r 15 -b junk@xxx.com

My problems are the following:

1) It seams that my customized scores from /etc/mail/spamassasssin/local.cf don't work.

Local.cf:

required_hits 4.5
rewrite_header Subject [SPAM]
report_safe 0
score DEAR_SOMETHING 4
score DEAR_FRIEND 4

This file is read by SA (I've seen that from spamassassin -D -u nobody). The required_hits are also ok.
The problem is that DEAR_SOMETHING, DEAR_FRIEND etc have no effect as they weren't there. Is this a parse error or I miss something? How can I customize my score for different tests?

2 ) The result of #spamassasin -d --lint:

Net::DNS version is 0.31, but need 0.34dnsavailable-1 at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/Dns.pm line 1230.


What is this DNS? I think it has nothing to do with BIND'. Should I upgrade something?

2) I can't use user_prefs from /home/user/.spamassassin/user_prefs

From the logs I see that SpamAssassin wants to write/read from /root/.spamassassin/user_prefs. Why root?
I found out that the problem is that nobody has no home directory. I understand that. But when I run SA as root it reads from /root/.spamassassin/user_prefs. Shoudn't SA read the user_prefs file of the recipient?
Isn't this the point here, to customize for every recipient different rules? So, why is SA stucked to /root/.spamassassin/user_prefs?

How can I customize rules for every user?

Thanks a lot.

ddaas
 
Old 12-29-2005, 11:03 AM   #2
sphinx_duta
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Have u try change the "required_hits 4.5" to "required_score 4.5" ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail customized messages mihaii Linux - Software 2 10-26-2005 12:52 PM
Make a customized OS ashkan_G Linux - General 2 03-19-2005 03:14 PM
resetting high scores in kdegames samegame danimal1614 Linux - Newbie 3 01-13-2005 10:18 PM
Posting Scores. craigs1987 LQ Suggestions & Feedback 1 10-02-2004 06:14 AM
Customized help? Jalalabee Linux - Newbie 1 12-02-2003 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration