Questions tagged [spamassassin]

SpamAssassin is an open source server daemon used to examine and mark email that it identifies as spam.

SpamAssassin is an open source server daemon used to examine and mark email that it identifies as spam. SpamAssassin does nothing but mark the email as spam; it is up to the mail client to setup rules to filter the marked emails out.

If you are having a problem which is unrelated to programming SpamAssassin, you should likely not be posting to Stack Overflow.

147 questions
1
vote
1 answer

Block emails with large number of recipients of same domain

I have a mailserver with exim4 and spamassassin installed. We have a problem of (internal) spam to a large number of mailinglists, coming from a few users (which we cannot just educate or block for multiple reasons) Is there a way to block emails…
dtech
  • 13,741
  • 11
  • 48
  • 73
1
vote
2 answers

How can I get a full Mail::SpamAssassin::MailMessage object from text?

I use the following code to generate a spam report using SpamAssassin: use Mail::SpamAssassin; my $sa = Mail::SpamAssassin->new(); open FILE, "<", "mail.txt"; my @lines = ; my $mail = $sa->parse(@lines); my $status = $sa->check($mail); my…
user215361
1
vote
1 answer

How does Chi-Square based SPAM detection works in SpamAssassin

I'm trying to understand about Bayes based spam detection, and have difficulty understanding how to code it. To understand it, I'm reading code of SpamAssassin like below. …
Tsuneo Yoshioka
  • 7,504
  • 4
  • 36
  • 32
1
vote
1 answer

Spamassassin false negative for message from text

Background: I'm downloading my twitter feed and saving them into text files and I want to check the likely hood of spam using a perl script with Mail::SpamAssassin. So I followed this post about loading messages from text. All my messages keep…
Shabbir Hussain
  • 2,600
  • 2
  • 17
  • 25
1
vote
1 answer

SpamAssassin MISSING_MIMEOLE rule

Im sending out mails that spamassasin are quite harsh on - one of the biggest minusses it gives is: 0.0 HTML_IMAGE_RATIO_06 BODY: HTML has a low ratio of text to image area -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%…
Gleiemeister 2000
  • 731
  • 4
  • 9
  • 23
0
votes
1 answer

Lightweight Bayes filter for larger data sets

I would like to create yet another spam detection for my CMS. Currently I do see three options: use a simple php class and store tokens in MySQL install spamassassin and use a php-connector something big like mahout I do not like the MySQL…
Martin
  • 243
  • 3
  • 16
0
votes
1 answer

Need to archive received emails

I have a mail receiving setup where in Postfix (2.6.6) is the MTA and then I have amavisd-new (with spamassassin and CLamAV) as content filter. I have enabled spam report header in my amavisd-new conf file. I want to archive the files on local…
Ashish Sharma
  • 1,124
  • 2
  • 24
  • 49
0
votes
0 answers

Error creating spam filter rules in email body in dovecot

I have been applying the following rule to mark as spam if the body contains any reference or coincidence with the following "earn free money": `#if body :contains "earn free money" { # fileinto "Junk"; # stop; #} #if anyof ( # header :matches…
Otto
  • 101
0
votes
2 answers

How to forward spam to SpamCop.net with procmail

From https://de.wikipedia.org/wiki/Procmail :0fw | /usr/bin/spamassassin :0H * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\* /dev/null :0H: * ^X-Spam-Status: Yes ./Spam I would like to complement the move to /dev/null with a forward to…
0
votes
1 answer

Thunderbird spam filter image-only content

I'm finding that spam messages which are just images are getting past both my server's Spam Assassin and Thunderbird's filtering. (Not remote images - I block those – but attachments with zero message body text). I would like to have a filtering…
RossGK
  • 515
  • 2
  • 7
  • 19
0
votes
0 answers

Spamassassin not assigning headers properly to incoming mail

I have incoming Emails not marked as spam even though they are. Spamassassin will assign the following header to it: X-Spam-Status: No, score=4.4 required=5.0 tests=BAYES_50,DIET_1,DKIM_SIGNED, …
Pille
  • 57
  • 2
  • 8
0
votes
0 answers

SpamAssassin sa-learn scan emails from the database

I have been working on getting SpamAssassin up and running for a while now and I am pretty close to being finished. However, I need some help with this. I'm storing the source emails in a database after I have fetching the emails from imap server.…
chris oojer
  • 301
  • 1
  • 10
0
votes
0 answers

How to mark the emails as spam and not spam in PHP?

I am working on my PHP code to mark my emails as spam and not spam. I need some help with the code, because I am not sure which variable I should use to send the report to spamassassin to mark my emails as spam and not spam. I am using the script…
chris oojer
  • 301
  • 1
  • 10
0
votes
0 answers

spamassassin-client ConnectionRefusedError: [WinError 10061]

I am trying to use the SpamAssassin class from the spamassassin_client module to get the spam score from spamassassin_client import SpamAssassin spam_score = SpamAssassin(text).get_score() However, I cannot establish a connection with the the…
Filip Szczybura
  • 407
  • 5
  • 14
0
votes
0 answers

is there anyway to check the spamAssassin score via public api

I am trying to get the spam assassin score via the public email, is that possible? While searching that, most of the suggestion shows to enable to spam filter in c panel, is that needed one?