Questions tagged [spamassassin]
SpamAssassin is a computer program released under the Apache License 2.0 used for e-mail spam filtering based on content-matching rules.
454
questions
16
votes
3
answers
8k
views
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 ...
15
votes
10
answers
7k
views
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 ...
15
votes
2
answers
8k
views
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 (...
15
votes
5
answers
16k
views
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 (...
13
votes
5
answers
12k
views
Is there any alternative to SpamAssassin? [closed]
I'm looking for an alternative to Spamassassin. Anyone tried rspamd ?
11
votes
2
answers
794
views
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 ...
11
votes
2
answers
47k
views
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 ...
11
votes
2
answers
9k
views
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 ...
10
votes
2
answers
9k
views
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 ...
10
votes
3
answers
11k
views
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 ...
9
votes
3
answers
19k
views
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,...
9
votes
2
answers
29k
views
Spamassassin, Dovecot and Postfix: Move spam to folder
I am trying to move Spam detected by spamassassin automatically to the Junk folder on Debian Jessie.
I installed Spamassassin and edited the configs:
local.cf (spamassassin folder)
rewrite_header ...
9
votes
1
answer
15k
views
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 ...
9
votes
1
answer
720
views
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, ...
8
votes
1
answer
3k
views
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 ...
8
votes
1
answer
2k
views
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 ...
7
votes
1
answer
6k
views
Is there a reason why DKIM signs every mail twice [closed]
I've configured my postfix/amavisd-new/spam-assassin setup after this tutorial https://help.ubuntu.com/community/Postfix/DKIM. But now the problem is that all mails I send are double signed with two ...
7
votes
4
answers
11k
views
How to make spamassasin reject mail based on score?
I am running Linux with Postfix, Dovecot, Postgrey and spamassasin/spamd.
This is my main.cf
smtpd_recipient_restrictions = permit_sasl_authenticated,
...
7
votes
1
answer
4k
views
Why would Spamhaus continue to add an IP to the CSS when that IP hasn't sent email recently?
For the last six months I have been locked in battle with the Spamhaus CSS SBL, having to regularly check if the IPv6 address of my Exim4 server has been listed and, if it has, manually delisting it. ...
7
votes
2
answers
2k
views
Spamassassin: Bypass /etc/resolv.conf DNS for querying DNSBL?
Question
Is there a way to let spamassassin bypass my linux system's dns servers to query DNSBLs?
Background Info
When my Server receives email, it is checked by spamassassin. One of this checks ...
7
votes
1
answer
12k
views
Enabling Bayesian filter with amavisd-new + Spamassassin
I run a Postfix mailserver on CentOS, and am trying to enable Spamassassin's bayes filter, but I seem to be missing something.
We're running amavisd-new 2.9.1:
Name : amavisd-new
Arch :...
7
votes
1
answer
651
views
Let Postfix handle spam in two ways
I've got postfix setup so that mail coming in from smtpd is automatically filtered through spamassassin (which reinjects it into the mailqueue with added headers)
Now I want to do 2 things with ...
7
votes
1
answer
2k
views
Stop Outgoing Spam Already Tagged as Spam
I run a Postfix server with Amavis and Spamassassin among other things. Postfix receives mail from the outside world and passes it on to Amavis. Amavis has Spamassassin rate the mail, and then tags it ...
6
votes
2
answers
22k
views
Amavis / spamassassin setup, how to disable quarantine and get default spamassassin behavior back?
I've set up my first mail server that uses amavis. First off, I don't really see the point in amavis if I don't care about viruses. I don't use clamav as it's a huge RAM hog. SpamAssassin has worked ...
6
votes
1
answer
1k
views
amavis cronjob throwing an error out of nowhere
Can someone explain why amavis cronjob is suddenly trowing the following error?
Cron <amavis@bee> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync
rules: ...
6
votes
2
answers
7k
views
Valid DKIM but "body hash did not verify" error on Outlook / Hotmail / Live?
Why do I get dkim=fail (body hash did not verify) on Outlook / Hotmail / Live when I have a valid DKIM setup in place?
I've made sure that my SPF, DKIM, DMARC records are set up correctly and the ...
6
votes
2
answers
4k
views
Automatically rescan email with SpamAssassin after it has been received
For the past months, the amount of spam I've been receiving has been driving me crazy. Despite running SpamAssassin (with RBL checks) on my Exim4 mailserver, a lot of it has been finding its way to ...
6
votes
3
answers
8k
views
How to reject/detect emails claiming to be from my own domain?
We have following e-mail topology:
Exchange server --------- Sendmail server ---------------Internet
On sendmail server there is no any user mailbox and messages with sender address [email protected]....
6
votes
1
answer
1k
views
Spamassassin: store bayes per user in mysql (with amavis)
I use postfix (mysql virtual users) + amavis + spamassassin and configured spamassassin to use mysql for storing the bayes data:
use_bayes 1
bayes_auto_learn 1
...
6
votes
3
answers
5k
views
postfix skip spam checks for authorized SMTP
Is there any way to configure postfix to skip spam/antivirus checks for those smtp connections that are SMTP-AUTH'ed? I would like to keep all the standard checks for external smtp traffic, but for my ...
5
votes
6
answers
3k
views
Prevent outgoing spam
What are some ways to prevent spam from leaving your servers should a hosting account get compromised?
Have a bunch of clients on a server with cpanel but wondering if there was a way to just ...
5
votes
2
answers
17k
views
SpamAssassin: HTML_IMAGE_ONLY_XX
Spam Assassin is flagging my messages for the following violation:
1.6 HTML_IMAGE_ONLY_24 BODY: HTML: images with 2000-2400 bytes of words
It seems to be telling me, literally, that:
My ...
5
votes
1
answer
11k
views
how to specify a partial domain in blacklist with SpamAssassin
is there a way to specify a partial domain in the spamassassin blacklist?
I get spam from something like [email protected] but I also get junk from [email protected]. if I specify @.xyz ...
5
votes
1
answer
7k
views
What to do with SpamAssassin after installing Amavis?
As far as I know, Amavis has SpamAssassin on his own (I think Perl Mail::SpamAssassin).
Before installing Amavis, I was using SpamAssassin binary and daemon (spamc and spamd) plugged into MTA (...
5
votes
2
answers
974
views
Workaround SpamAssassin Y2K10 Bug (Mac OS X Server)
Bug Report: https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6269
It turns out that SpamAssassin is adding a score of 3.2 (FH_DATE_PAST_20XX) to all email going through my mail server (Mac OS X ...
5
votes
1
answer
569
views
How to match Japanese in spamassassin?
I live in Japan. Recently there has been a lot of spam coming from China with messages written in Chinese. As spamassassin does not contain rules for Chinese, most of those emails pass with low score.
...
5
votes
1
answer
8k
views
Using razor2 with spamassassin
I have installed and configured razor2 according to official doc including editing the v310.pre config file in spamassassin folder.
I ran both of the following commands with success (both indicated ...
5
votes
1
answer
174
views
Blocking, filtering or reducing "tabloid" spam (emails that bypass Spam Assasin)?
In the past few weeks, we've been hit hard by a new class of spam email (or at least new to me/us). I'm calling it "tabloid spam" because they send supermarket-tabloid headlines with tabloid copy, ...
5
votes
3
answers
7k
views
Why does gmail flag my server emails as spam?
I recently moved my server to a new slice at slicehost and since, gmail has been flagging my email as spam. I have added domain keys, created a SPF record, have reverse dns setup, and my ip is not ...
5
votes
3
answers
2k
views
How to modify a message, so it will be for 100% recognizable as spam by Exchange junk e-mail filter
I have an sendmail server, sitting in front of my Exchange server. This server filters spam with SpamAssassin (and does it incredibly well!), but it merely tags spam messages with appropriate header ...
4
votes
1
answer
442
views
What is a valid target for Spam Assassin's sa-learn?
I'd like to train my Spam Assassin with some spam that it's missed, however I'm confused. With sa-learn I could target:
raw message
text-message (body)
html (body)
What one of those options is this ...
4
votes
1
answer
1k
views
How to stop backscatter email spam
I know I can't do anything about people spoofing my email address, but what can I do about all those annoying bounce-mails?
I get 5-10 "Undeliverable mail" a day, but I don't know how I can filter ...
4
votes
2
answers
20k
views
Why do SpamAssassin and Razor2 penalize for specific domain name in HTML body?
We are an ESP provider from Czech Republic, Europe. Our clients are regular Czech companies with their own client database. Since yesterday, we have a problem with our domains used in emails for ...
4
votes
2
answers
12k
views
amavis + SA not marking messages as spam
I'm running Postfix + amavis + SpamAssassin. Messages are coming through just fine, and they're getting X-Spam-Score as I would expect, along with X-Spam-Status values, implying that SA is doing ...
4
votes
1
answer
14k
views
Spamassassin RDNS_NONE matches, but there is a RDNS
I got a a little problem - spam assassin's RDNS_NONE-rule matches on my outgoing mails but there is a RDNS set for all hosts, that are in the delivery-chain.
If I send an Email to "receipient-...
4
votes
7
answers
2k
views
Email Deliverability on Yahoo is very poor. Any suggestions please? [duplicate]
All other ISPs (Google, AOL, Hotmail) are fantastic, hitting 98-100% in the inbox. Yahoo is very random, and lately our deliverability has dropped drastically. All IPs are senders certified by Return ...
4
votes
2
answers
17k
views
Delivered to internal network by a host with no rDNS
Recently our emails started going to spam for recipients at Gmail and Yahoo mail.
I ran a SpamAssassin test, and have found the following:
pts rule name description
0.0 ...
4
votes
1
answer
7k
views
SPF issue with SpamAssassin
I have an internal management app for a small company, written in Python and running on a Linode VPS, with which users can send occasional emails to their customers. The emails are quite ...
4
votes
1
answer
2k
views
SpamAssassin doesn't appear to be 'learning' from forwarded examples of spam
I have spamtrap@ and hamtrap@ addresses set up on my mail server and forward examples of spam to the spamtrap address. I was hoping that after a few examples, SpamAssassin would 'learn' to identify ...
4
votes
1
answer
6k
views
How to find a reason why a email is marked 3.5 BAYES_99 BODY
I am trying to find out why my messages getting marked in http://isnotspam.com with a 3.5 BAYES_99 BODY score. It is nice that the report shows "SpamAssassin Check : ham (non-spam)" However, ...