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
2 answers

SpamAssassin rules explaination

I have a little problem with SpamAssassin. I don't find the documentation for the rules. For example for the rule MIME_HTML_MOSTLY I have this link : https://wiki.apache.org/spamassassin/Rules/MIME_HTML_MOSTLY But apparently the documentation is no…
AChichi
  • 322
  • 5
  • 20
1
vote
1 answer

Spamassassin - score by time of day sent

Is there a way to assign a score for mail sent between certain hours. I find a lot of spam is sent in the middle of the night so would like to give anything between say 2am and 5am a score of 2 or 3.
1
vote
1 answer

Spamassassin's custom rule (for subject line filtering) doesn't work

I'm setting up Spamassassin to use along isbg to filter mail in my IMAP mail account. My ISP already has a pretty good spam filter that adds "[SPAM]" in front of the subject line of each message it detects; thus, I'm setting up a custom rule in…
PaulJ
  • 1,646
  • 5
  • 33
  • 52
1
vote
3 answers

Unable to get SpamAssassin subject rule to work

I'm trying to catch the hoax domain name invoices I receive for my various websites. These emails have the subject line: [domain] Final Notice. I've added this rule to local.cf (other rules I've added are OK) --- header LOCAL_DOMAINSCAM Subject =~…
1
vote
1 answer

After downloading a mail through IMAP, before parsing I want to check if its spam!

I have a ticket system in PHP. People report tickets over email. A mail parser connects to the mailbox using IMAP, downloads the email and parses it to create a ticket which can be viewed/updated over the web interface. Now I want my application to…
Varun
  • 4,054
  • 6
  • 31
  • 54
1
vote
1 answer

Converting Spamassassin rules to rspamd

I set up a new mail server using rspamd. I have sets of rules from spamassasin. I would like to import/convert them to rspamd. What I did: Created file with rules on /etc/rspamd/custom/spamassasin.map Added config in…
Pyton
  • 1,291
  • 8
  • 19
1
vote
1 answer

Despite X-Spam-Status Scores above Required Spam isn't sorted out of mbox

I'm trying to run my mbox file through spamassassin with: formail -s procmail ~/procmail.rc < mbox Despite what I think looks like a proper procmail rc file & an ok spamassassin local.cf the mail that gets scored higher than my 'required' is not…
ComfortMoose
  • 113
  • 7
1
vote
0 answers

Python mail headers

I have an automated messaging system that sends emails with the three standard parameters, those being: To, destination and subject. The message is immediately sent after an error has been detected. The message is being sent over Python, it receives…
Melanchole
  • 35
  • 1
  • 10
1
vote
1 answer

Spamassassin matching Han/chinese characters

I'm trying to implement a rule that matches all chinese characters (Han) with SpamAssassin version 3.3.1 running on Perl version 5.10.1 So far I tried the following rules: body SPAM44 /\p{Han}/ body SPAM44 /[\x{4e00}-\x{9FFF}]/ body SPAM44…
robin.koch
  • 1,223
  • 1
  • 13
  • 20
1
vote
1 answer

SpamAssassin: Site Wide Bayes not working?

Long ago I implemented site-wide bayes filtering as per http://wiki.apache.org/spamassassin/SiteWideBayesSetup. I don’t think it ever worked, and I certainly find that my spam scores are always negative, with BAYES_00 suggesting that Bayes wasn’t…
Manngo
  • 14,066
  • 10
  • 88
  • 110
1
vote
0 answers

How to get SpamScore from email

Simple question. How do i get information about spam score from an email? Spam assassins scores every email coming trough. Content-Type: multipart/alternative; boundary=001a1147c0c49c760505349aecf2 X-Spam-Status: No, score=-2.5 X-Spam-Score:…
Kedor
  • 1,488
  • 5
  • 29
  • 53
1
vote
0 answers

Citadel Server with Spamassassin + MySQL

I've been using Citadel with Spamassassin without any problems. I used to setup spam filters by adding rules to the local.cf files but now I want to integrate spamassassin with a database to store per user rules. So I followed this guide…
1
vote
1 answer

How Random email generation and capturing work

I would like to understand how can I capture emails sent to different random email ids generated by server in one inbox to run analysis on those emails something like this website does : https://www.mail-tester.com/ Here , with each page referesh,…
user3205469
  • 995
  • 1
  • 7
  • 16
1
vote
2 answers

Multilingual text spam detection

Many technologies can be used to detect spam in a specific language, and if proper technology is adopted, it can make a system be able to detect spams in multiple languages, but this requires a single text be in a specific language. So my question…
1
vote
2 answers

Mail-tester says DMARC missing, but it's not?

I'm scoring 9/10 on mail-tester.com. My -1 comes from this, "You do not have a DMARC record" In my DNS (cPanel>"Advanced DNS Zone Editor") I have this DMARC record _dmarc.mycooldomain.com. 14400 IN TXT "v=DMARC1; p=none; sp=none;…
NotUncleBob
  • 83
  • 2
  • 5