LinuxQuestions.org
Review your favorite Linux distribution.
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 05-06-2024, 09:36 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,587

Rep: Reputation: 179Reputation: 179
SpamAssassin USER_IN_WELCOMELIST


Regarding SpamAssassin using USER_IN_WELCOMLIST instead of USER_IN_WHITELIST, in my email X-Spam-Report I get:
Code:
* -0.0 USER_IN_WELCOMELIST User is listed in 'welcomelist_from'
whereas with the USER_IN_WHITELIST I would get:
Code:
* -100 USER_IN_WHITELIST DEPRECATED: See USER_IN_WELCOMELIST
The -100 was apparently the 'default' score for USER_IN_WHITELIST. Is there no such default for USER_IN_WELCOMLIST? The default appears to be 0.0. Do have to explicitly set a score in local.cif or does enabling "shortcircuit USER_IN_WELCOMLIST on" take care of that?

BTW - not being a perl expert, how would I determine that 'plugin Mail::SpamAssassin::Plugin::Shortcircuit' is enabled?

Last edited by mfoley; 05-06-2024 at 09:38 PM.
 
Old 05-07-2024, 12:44 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Is SpamAssassin still in Perl?? I thought that had been rewritten as python .
I think you should have a negative score attached to the whilelist. Also, you need to up the (positive) scores of Spam-identifying rules markedly. The way it's set up, most spam will get through. A rule like "Composed in m$ Front Page" had a score of 1.5, with a fail mark of 5. Who writes mail in M$ Front Page? I don't even know if Front Page exists still - a HTML creator thing. It was a 100% indicator of spam. I gave it a score of +5.2.

IIRC, the plugins were rulesets? I must confess to using spamc/spamd because they were binary and I didn't have the ram for several simultaneous instances of some perl behemoth. Procmail ran me out of ram also.

I had to be a member of an Electronic Hardware mailing list back 20 years ago. I found the spam that list attracted was particularly offensive. Spammers had to join to post, but they targeted hundreds with just the one email(before they were banned). To catch spam my mail went through
  1. Vipul's Razor, which Caught ~50% of spam.
  2. Distributed Checksum Clearinghouse (DCC) which caught the rest of the bulk mail.
  3. SpamAssassin which got 30% on average.
My efficiency eventually was nudged up to 105%. So I had to trawl spam for real mail occasionally. One of my brothers always landed himself in the spam, for instance. But I didn't whitelist him - he belonged in the Spam .

You will find a mailing list/forum or irc channel attached to the SpamAssassin site which is/was well supported by these guys who could instantly express any unclean thoughts you may be privvy to in Perl Regular Expressions. They are always welcoming of anyone they could talk at(!), and competed for the most exotic or innovative answers to your questions. They might prove to be of assistance.

I found it useful to keep a (mbox style ascii) mailbox full of spam. I could test my settings by simply
Code:
 cat mbox >127.0.0.1:25
which bounced them at postfix & delivered them to me. It allowed me to refine the settings.

Last edited by business_kid; 05-07-2024 at 01:04 PM.
 
Old 05-08-2024, 09:15 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,587

Original Poster
Rep: Reputation: 179Reputation: 179
Quote:
Originally Posted by business_kid View Post
Is SpamAssassin still in Perl?? I thought that had been rewritten as python .
Well, if it is now in python the repo lib for my distro (Slackware/SlackBuilds) doesn't know about the python version yet. https://slackbuilds.org/repository/1.../spamassassin/
Quote:
I think you should have a negative score attached to the whilelist. Also, you need to up the (positive) scores of Spam-identifying rules markedly. The way it's set up, most spam will get through. A rule like "Composed in m$ Front Page" had a score of 1.5, with a fail mark of 5. Who writes mail in M$ Front Page? I don't even know if Front Page exists still - a HTML creator thing. It was a 100% indicator of spam. I gave it a score of +5.2.
Actually, I've been using SpamAssassin for years and have a pretty robust set of rules, and I do Bayes training periodically. I'm good there. I was just wondering why this new "WELCOMELIST" rule doesn't have a preset default like the deprecated "WHITELIST" did. I have gone ahead and set it to -100, like WHITELIST used to be. I suppose that'll do unless some SpamAssassin gurus have deeper insight.
Quote:
IIRC, the plugins were rulesets? I must confess to using spamc/spamd because they were binary and I didn't have the ram for several simultaneous instances of some perl behemoth. Procmail ran me out of ram also.
I am using spamd and spamass-milter as a mail filter. I believe they're part of the package.
Quote:
You will find a mailing list/forum or irc channel attached to the SpamAssassin site which is/was well supported by these guys who could instantly express any unclean thoughts you may be privvy to in Perl Regular Expressions. They are always welcoming of anyone they could talk at(!), and competed for the most exotic or innovative answers to your questions. They might prove to be of assistance.
Yes, I believe I've used that list in the past. I generally try the experts at LQ before resorting to lists.

I'll leave this question open a bit longer in case anyone else wants to weigh-in with a thought.
 
Old 05-09-2024, 09:22 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Am I the only one who replied? My experience is less than your own and 20 years old! Spamc was one instance per mail iirc. They didn't have spamass-milter then. Vipul's Razor was another thing and I found it very good. You took a checksum, tried them, and they told you if the mail was spam or not. You were expected to report spam. If you reported spam that was actually spam, as reported by others, your reputation was good. If you reported spam as clean and good mail as spam, you were a twit, and they didn't take your reports seriously. In the early 2000s, /vipul's Razor was free for <1000 emails/day. The guy is linux-friendly. The site seems down but this link works https://sourceforge.net/projects/raz...atest/download

The DCC was good too, and free for <1000 emails/day. But if anyone signed up for marketing emails, they were rejected unless you whitelisted the address.

Python or binary is the only was to run SpamAssassin, imho. Guys would roll these regexes searching for 50 terms on one line, and everything would grind to a halt with perl. The spam that got through typically had one or two lines and a url. I tried to keep searches to the Subject, not the body.
 
  


Reply

Tags
spamassassin



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
USER_IN_WHITELIST DEPRECATED: See USER_IN_WELCOMELIST mfoley Linux - Server 21 08-16-2021 12:48 PM
postfix - Changing to Clamsmtp THEN SpamAssassin (from spamassassin then clamsmtp) Thratchen Linux - Server 0 10-10-2014 02:45 PM
spamassassin sa-update does not update the rules in /usr/share/spamassassin Ladowny Linux - Server 3 05-14-2010 03:10 PM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
SpamAssassin Question gsmonk Linux - Networking 1 02-15-2003 11:38 PM

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

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