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
0
votes
0 answers

AWS SES Open/Click event tracking send emails to spam folder

I am using SES's Open/Click tracking to monitor open and click events on transactional emails sent by my application. Open tracking is done by including a small gif which, when served, publishes an "open" event to an SNS topic. Click tracking is…
0
votes
1 answer

Can you write rules in a programmatic if-then style?

Can you do if-then style statements in SpamAssassin? I get spam sent to me that uses my email address for the sender's name and I would like to write a general rule for this. For example, I receive spam messages with From: and To: lines like…
00Kell
  • 48
  • 6
0
votes
1 answer

How to catch connection errors when using Mail::SpamAssassin::Client

I have trouble caughting error during create object in Perl. My part of current code is like that: #!/usr/bin/perl use Mail::SpamAssassin::Client; use warnings; use strict; my $client = new Mail::SpamAssassin::Client({port => 783, host =>…
Macsurf
  • 17
  • 6
0
votes
1 answer

SpamAssassin flag 'RAND_MKTG_HEADER' is unclear in what it means

I'm managing a bulk email service for the company I work at and a recent change to SpamAssassin has started flagging emails sent by our bulk-email solution with 'RAND_MKTG_HEADER'. I can't find much about this on the internet other than 'Has…
user3901770
0
votes
1 answer

Spam Assassin reports PP_MIME_FAKE_ASCII_TEXT MIME text/plain claims to be ASCII but isn't

When emailing via Sendgrid SMTP from Gmail using https://www.mail-tester.com/ it reports SpamAssassin says "PP_MIME_FAKE_ASCII_TEXT MIME text/plain claims to be ASCII but isn't". Sending the same content from the Gmail address via Gmail's SMTP…
twiz911
  • 634
  • 1
  • 9
  • 18
0
votes
2 answers

Ubuntu 20.04 Installation of Spamassassin fails on "chmod: cannot access '/var/lib/spamassassin/compiled'"

for a while now I am trying to install Spamassassin properly as root user with 'apt install spamassassin spamc'. The installation fails when it runs sa-compile producing following output: Setting up sa-compile (3.4.4-1ubuntu1) ... Running sa-compile…
Rio
  • 1
  • 2
0
votes
1 answer

Procmail recipe to match Spamassassin X-Spam-Status score or X-Spam-Level

Consider these mail headers: X-Spam-Level: *** X-Spam-Status: Yes, score=3.7 required=3.0 tests= (remaining truncated for brevity) I simply want to match the headers "X-Spam-Level: ***" (at least with more "*" okay) or "X-Spam-Status: Yes,…
Montclair
  • 81
  • 1
  • 10
0
votes
0 answers

Why personal emails from my website is going to Gmail Spam box?

In case you think this is a duplicate, trust me, it's not. Problem: All personal emails (not newsletter or mass email) sent from my website domain like john@mysite.com is going to Gmail Spambox (and Outlook.com too). Even simple email like "Hi, how…
hivolih247
  • 81
  • 1
  • 9
0
votes
2 answers

How to make Webmin SpamAssassin less sensitive?

It's odd that even emails from SPFBL Admin are marked as spam. Im using Webmin, with Postfix and SpamAssassin. Is my SpamAssassin too sensitive?
hivolih247
  • 81
  • 1
  • 9
0
votes
0 answers

Mail goes to Outlook spam folder

When I want to send message to outlook.com e-mail address, then it's going to spam/junk folder, while it's OK for Google and Yahoo mail. I've checked SpamAssassin scores for all these mail providers (I've used…
0
votes
1 answer

How to mark an email as Junk\Spam in PHP?

I am developing an email client using PHP. I have got a problem with mark my emails as spam because php library imap doesn't support mark as spam when I mark the emails as a spam. The only things I can see which it can set the emails as flagged…
Robert Jones
  • 390
  • 3
  • 18
0
votes
1 answer

How can I solve spamassassin DKIM timeout request?

I have a mail server runs CentOS 7 with Exim + Dovecot + Spamassassin v3.4.0, and VestaCP. Everything works fine except too long spamassassin check. It takes 10-11 seconds. At the spamassassin debug log I see that the problem with DNS query for DKIM…
user3055346
  • 149
  • 6
0
votes
3 answers

Regex help specific to Spamassassin

I'm trying to create a filter for social security numbers and have the following regex: \b(?!000|666)[0-8][0-9]{2}-(?!00)[0-9]{2}-(?!0000)[0-9]{4}\b The problem is that the regex also matches the following type of string in Spamassassin and I…
Julian
  • 167
  • 6
0
votes
0 answers

How to fix PHP contact-form errors: HTML_MIME_NO_HTML_TAG, MIME_HTML_ONLY, MISSING_DATE

I'm not good at PHP so please be patient and understandable. The e-mails from my contact-form always go into the spam folder. I ran a test on this site and it tells me that there is no HTML tag in my HTML-only message (HTML_MIME_NO_HTML_TAG) my…
0
votes
1 answer

Reduce X-Spam hits on mail sent through SmtpClient()

I am using System.Net.Mail.SmtpClient to send e-mails through a remote SMTP server. When I'm looking at the headers of the sent message, I see that the message gets 2.5 hits from X-Spam. How can I prevent base64 encoding of the From field, and how…
sshow
  • 8,820
  • 4
  • 51
  • 82