LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-06-2018, 02:41 AM   #1
mikudo
Member
 
Registered: Aug 2018
Posts: 82

Rep: Reputation: Disabled
spamassassin rules and config questions


I'm in debian9/postfix, spamassassin is installed and running and detects GTUBE ok.

The documentation said that sa-update and the first install should install a good default rule set but mails with viagra in the subject pass through just fine. I am confused about multiple things.

-why are there two identical folder /etc/mail/spamassassin/local.cf and /etc/spamassassin/local.cf, which is the one I should change to put in my own rules? They are not linked.

-65_debian.cf is the only ruleset I see here, are there supposed to be other rulesets here? I read that the default ruleset should catch viagra in the subject. Are there rulesets I can just download and install that are worthwhile?

-where is spamassassin logging? there is a /var/log/spamassassin/.spamassassin folder but no logs in it. Where is logging turned on and the location specified?

I have ddg'd around on this stuff and ran in circles, can someone shed light or links im not finding?
 
Old 11-06-2018, 05:05 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Hi,

Quote:
-why are there two identical folder /etc/mail/spamassassin/local.cf and /etc/spamassassin/local.cf, which is the one I should change to put in my own rules? They are not linked.
I'm not using debian, but according to the documentation, it should be /etc/spamassassin/local.cf


Quote:
-65_debian.cf is the only ruleset I see here, are there supposed to be other rulesets here? I read that the default ruleset should catch viagra in the subject. Are there rulesets I can just download and install that are worthwhile?
The default spamassassin rules should be in /usr/share/spamassassin.
If you send yourself an email with subject "viagra", don't expect SA to flag it as spam, because it takes into consideration many other factors, before giving a score.
Since you said that it can identify GTUBE, I guess SA is working properly.
You can check an email, running the following to see what rules are used to get a score:
Code:
spamassassin -D < /path/to/email

Quote:
-where is spamassassin logging? there is a /var/log/spamassassin/.spamassassin folder but no logs in it. Where is logging turned on and the location specified?
spamassassin is logging in the file /var/log/maillog.
The /var/log/spamassassin could be the homedir of the spamd user. Check /etc/passwd to verify.

Regards
 
1 members found this post helpful.
Old 11-06-2018, 05:10 AM   #3
fenice
Member
 
Registered: Apr 2006
Distribution: CentOS openSUSE
Posts: 55

Rep: Reputation: 9
This is not an answer to your specific question but have you considered replacing SpamAssassin with rspamd? It's more performant, uses less CPU and in my experience bettwr at getting the job done. There is, I believe, a build of rspamd for Debian, if you're interested: https://thomas-leister.de/en/mailserver-debian-stretch/

I've implemented this on a Zimbra Collaboration Server (postfix, spamassassin etc.....) and it was relatively trivial to get working, it's also been in use for the for almost two years now with no problems.
 
1 members found this post helpful.
Old 11-06-2018, 08:06 AM   #4
mikudo
Member
 
Registered: Aug 2018
Posts: 82

Original Poster
Rep: Reputation: Disabled
Thank you this is helpful.

spamassassin -D is cool, this shows me that actually the rules are in /var/lib/spamassassin/3.0/updates../ and not in the home folder with local.cf as the docs lead me to believe.

Yeah I did just send myself a viagra subject email and it went through, but now I can use spam -D to confirm what is being checked and look into scoring with detail, thats def something i can use here.

rspamd is good to know about, thanks for the tip.

why i have two /etc/spamassassin/local.cf and /etc/mail/spamassassin/local.cf is kindof a mystery but whatever. Home in passwd is /etc/spam... though.

In mail.log I just dont see any spamd entries, is there anyplace else this might be logging? If I wanted to turn verbose/debug logging on for spamd where would that be? Aha, I found it, you have to modify the spamd executable itself to activate it, it doesnt log automatically.

Thanks guys, closing this one.

Last edited by mikudo; 11-06-2018 at 08:13 AM.
 
  


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
spamassassin CHARSET_FARAWAY rules not working. mfoley Linux - Software 1 03-19-2014 12:19 PM
Copy Spamassassin rules sanjibgupta Linux - Security 1 11-03-2011 09:30 AM
spamassassin sa-update does not update the rules in /usr/share/spamassassin Ladowny Linux - Server 3 05-14-2010 03:10 PM
Spamassassin dynamic rules paul_mat Linux - Software 1 05-03-2006 03:28 AM
spamassassin header rules freebie Linux - Software 1 02-17-2005 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12: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