SpamAssassin is a computer program released under the Apache License 2.0 used for e-mail spam filtering based on content-matching rules.
Questions tagged [spamassassin]
447 questions
15
votes
2 answers
Spamassassin flagged something as spam that is not spam. How do I tell it so?
This is sort of a general question about training spamassassin. I have a newly set up mailserver which filters incoming mail through spamassassin. I recently got a flight reservation flagged as spam (score 5) and would like to tell spamassassin it's…

Nick Jennings
- 350
- 2
- 11
15
votes
3 answers
Is SRS rewriting absolutely necessary for a forwarding mailserver?
I am operating a Postfix email server for my domain, say mydomain.com. It mostly acts as a forwarding email server: users receive an email address @mydomain.com, but usually elect to have their address forward to an external inbox (Gmail, Yahoo,…

tlng05
- 245
- 2
- 10
15
votes
5 answers
How to minimise SpamAssassin (spamd) memory use
I'm using SpamAssassin on Debian (the default configuration with Pyzor, AWL and Bayes disabled, and sa-compile enabled), and each of the spamd child processes consume around 100 to 150MB of memory (around 50MB of real memory) on the 32 bit servers,…

Tony Meyer
- 889
- 1
- 13
- 25
14
votes
10 answers
Using fake MX records to combat spam
I have a client that is getting heavily spammed.. It's the 15th of the month and POP3 bandwidth is almost 100 GB. There are only 7 e-mail accounts on this domain. I installed SpamAssassin set it to 5 and setup 10-20 filters reject most of the junk.…

Mikey1980
- 751
- 1
- 8
- 12
13
votes
5 answers
Is there any alternative to SpamAssassin?
I'm looking for an alternative to Spamassassin. Anyone tried rspamd ?

dynax60
- 139
- 1
- 1
- 3
11
votes
2 answers
Mail with DKIM Signature gets T_DKIM_INVALID flag by SpamAssassin
I've installed a Debian (jessie) box with postfix and spamassassin. Configured and everything works fine.
Except receiving mails with DKIM signatur will produce a flag T_DKIM_INVALID even if the signature is valid. See log example below.
After that,…

High Ball
- 478
- 4
- 11
11
votes
2 answers
How can I reduce the damage of stolen mail accounts?
Currently I’m offering some webhosting to a few advertising agencies for their premium customers. But currently I have a great problem with the E-Mail Service. In the last week, the E-Mail Accounts of about 7 companies were stolen and used to send…

user39063
- 121
- 3
10
votes
3 answers
How to edit bad word filter in SpamAssassin?
How can I add several custom "bad" words into SpamAssassin, so emails that contains that words are marked as a spam?
UPDATE
one of the keys is to edit file /etc/mail/spamassassin, and to add badword filter as described on…

user48058
- 863
- 3
- 12
- 20
10
votes
2 answers
Recommended way to implement Postfix 'before-queue' SpamAssassin filtering?
After some discussions with colleagues and the relevant depts. in my office, I have come to the conclusion that for my Postfix server, I must implement a before-queue filtering. The reason is that with an after-queue filtering, the email would be…

pepoluan
- 5,038
- 4
- 47
- 72
10
votes
2 answers
How do I prevent the SPF_HELO_NONE warning when sending from Postfix?
When using a tool like https://dkimvalidator.com/ to verify configuration of DKIM, SPF, DMARC, etc. for sending mail from a web server, I get a warning like this:
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
It seems like a bad…

Walf
- 401
- 1
- 6
- 17
9
votes
1 answer
Is there a way to get spamassassin to score the top lines of a message body more heavily?
A lot of spam is getting through the filter on the mail server I run with the relatively simple trick of starting with few lines of (incredibly obvious) weight loss or other scam text at the top, followed by a larger body of text from programming…

mattdm
- 6,600
- 1
- 26
- 48
9
votes
3 answers
AMaViS: missing X-Spam-Status header
I set up a mail server with Dovecot, Postfix and AMaViS on Debian Squeeze following the tutorial on workaround.org (ISPmail tutorial for Debian Squeeze). It uses virtual domains and stores the domains, e-mail addresses and accounts in a MySQL…

Jan
- 276
- 1
- 3
- 6
8
votes
1 answer
Spamassassin logging scores
I have the Spamassassin 3.4 + Ubuntu 14 + Qmail + Clamav.
All are running OK.
When a SPAM is detected, it is marked as [spam] and delivered to recipients.
Readind the spamd log (mail.log for me), I grep these lines:
Jul 14 17:32:36 mail spamd[2575]:…

Daniel
- 81
- 2
8
votes
1 answer
SpamAssassin: avoid FREEMAIL_REPLYTO on Contact Form
Suppose: someone fills out my contact form on www.example.com/contact/.
My server-side script sends this information to a sales person at the organization.
To make SPF work, I set the "From" as sales@example.com
To make the "Reply" button work…

Sygmoral
- 181
- 1
- 1
- 4
8
votes
1 answer
I need advices: small memory footprint linux mail server with spam filtering
I have a VPS which is originally destined to be a webserver but some minimal mail capabilities are needed to be deployed as well, including sending and receiving as standalone server.
The current setup is the following:
Postfix reveices the mail,…

petermolnar
- 1,029
- 1
- 12
- 17