SpamAssassin is a computer program released under the Apache License 2.0 used for e-mail spam filtering based on content-matching rules.

learn more… | top users | synonyms

12
votes
10answers
2k 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 ...
11
votes
2answers
697 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 ...
10
votes
5answers
7k 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 ...
8
votes
1answer
223 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, ...
7
votes
5answers
5k views

Is there any alternative to SpamAssassin? [closed]

I'm looking for an alternative to Spamassassin. Anyone tried rspamd ?
7
votes
1answer
499 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
1answer
1k 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 ...
6
votes
1answer
990 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
1answer
303 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 ...
5
votes
6answers
1k 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
2answers
896 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
2answers
3k 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 ...
5
votes
1answer
1k 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 ...
5
votes
3answers
4k 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
3answers
813 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
1answer
728 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
6answers
1k views

Email Deliverability on Yahoo is very poor. Any suggestions please?

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
3answers
1k 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 ...
4
votes
2answers
1k 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 ...
4
votes
1answer
632 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 ...
3
votes
5answers
1k views

Best practices for mass email platform [duplicate]

I am in the process of setting up mass email service. My question is: what are the best practices to achieve maximum deliver-ability. More precisely - what should I do/know to prevent spam filters ...
3
votes
2answers
2k views

Bayesian filtering for Exchange 2010

So here's the deal. Basically, I am looking for a convenient way to get spam from my Exchange 2010 mail server to my spam filter/proxy (whatever you want to call it) in a mail format for ...
3
votes
2answers
5k 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 ...
3
votes
1answer
1k views

Quarantined mail retrieval from SpamAssassin/ClamAV/Postfix

We run a mail relay service in a multi tenant deployment for clients. We started doing this because commercially available relay services were silly money when compared to the costs of building one ...
3
votes
1answer
180 views

SpamAssassin coming back with zero scores

When I run tests (spamassassin -t) on obvious spam, I get results like this: Content analysis details: (2.0 points, 5.0 required) pts rule name description ---- ...
3
votes
1answer
908 views

SpamAssassin - ready to give up - extremely unreliable, marking spam as ham

I run a VPS, and I have to say that by far, getting SpamAssassin working right has been the most frustrating thing of all. It keeps missing spam mails and I see autolearn=ham in the header, yet when I ...
3
votes
1answer
1k 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 ...
3
votes
2answers
1k views

Strip SpamAssassin headers before processing

I have a server running cPanel/WHM with exim and SpamAssassin. I've been noticing an issue where emails coming in with forged spamassassin headers bypassing some of the filtering. I want to strip out ...
3
votes
1answer
270 views

Force users to use BCC

I want to force users sending mail to my server to use BCC (we're getting a lot of internal spam created by mailings to 30+ mailing lists which then reply to all). I thought spamassassin could be a ...
3
votes
1answer
1k views

Spamassassin? update channels?

I know this was asked here: but things seem to have changed. It appears that the old SARE rules are listed as broken The recommended SOUGHT channels seem to be down and DNS is broken for ...
3
votes
1answer
210 views

Migrate and merge SpamAssassin

I have two separate SpamAssassin configurations that I need to merge into one. Since both of them have seen gzillion mails I'd feel stupid to dismiss one of them. Is it possible to merge their ...
2
votes
1answer
365 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 ...
2
votes
5answers
6k views

Open Source or lower-cost alternatives to Barracuda Spam Filter

I'm aware of SpamAssassin-based solutions, but I'm looking for a free or low(er) cost spam filtering solution that's similar in functionality to the Barracuda Spam Filter. The Barracuda works well, ...
2
votes
2answers
728 views

Spamassassin filter systematically produces negative (ham) scores for spam messages

I have problem with lots of spam. My server setup is VPS with CentOS 6.5 and Dovecot+Postfix+Spamassassin. Here is source of one of the messages: Return-Path: <nancy_mitchell@tagbook.co.nz> ...
2
votes
2answers
1k 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 ...
2
votes
2answers
213 views

How is spamassasin called by amavisd-new?

I initially thought amavisd passed incoming email message through to spamassin via the spamd daemon but now the spamd daemon is down on my new test email relay and the messages are still being flagged ...
2
votes
1answer
774 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 ...
2
votes
2answers
60 views

Order emails from online shop not delivered due to SPF errors

I have my domain served by two servers with different IP addresses: one for main website and another for online shop. When a customer places an order, among other things, an email is being sent to an ...
2
votes
1answer
47 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 ...
2
votes
2answers
114 views

How does amavis talk to spamassassin?

I'm going through all the amavisd-new config files, and I can't find anything that tells amavis to talk to spamassassin/spamd to get a spam score. The reason I ask is because I'd like to swap out ...
2
votes
1answer
1k 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 ...
2
votes
1answer
23 views

Spamassassin filter based on destination domain

I am trying to configure my SpamAssassin (running in combo with amavisd) in order to lower the spam score limit assigned to emails directed to a specific domain (lower required_score only for incoming ...
2
votes
1answer
118 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 ...
2
votes
1answer
636 views

Can SpamAssassin be configured to filter on Subject lines?

Is it possible to configure SpamAssassin to filter incoming email, based on specific words in the subject line? For instance, all emails with the words "orange delight" anywhere in the subject, would ...
2
votes
2answers
579 views

Exim4, move all messages with X-Spam-Status set to “Yes” to .Junk folder in user's mail folder

How can I set up a site-wide rule to deliver all messages marked as Spam to the user's .Junk folder? And if the folder doesn't exist, create it. I know I can make a .forward file in the user's home ...
2
votes
1answer
622 views

Can I remove emails from /var/spool/sa-exim/SApermreject?

I have a lot of emails in /var/spool/sa-exim/SApermreject. Can I remove these emails or will this lead to some kind of nasty spam problem? Or is this just a history of all the emails that were never ...
2
votes
2answers
717 views

SpamAssassin (spampd) ignoring user_prefs

I have an Ubuntu (12.10) server running postfix and SpamAssassin. I've set up spampd following these directions on the SpamAssassin wiki: http://wiki.apache.org/spamassassin/IntegratePostfixViaSpampd ...
2
votes
1answer
2k views

Why does Exchange 2003 silently reject emails with large attachments?

Our environment: Exchange Server 2003 Standard, single instance, running on Windows Server 2003 Standard. configured to not send/receive mail with attachments larger than 10 MB. NDRs are not ...
2
votes
0answers
62 views

Spamassassin not respecting my blacklist

I've tried putting my blacklist_from and whitelist_from lines in ~/.spamassassin/user_prefs and in /etc/spamassassin/local.cf, but they appear to be ignored. This is from postfix's master.cf: smtp ...
2
votes
0answers
608 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 ...