Solved

SpamAssasin is doing NOTHING!

Posted on 2013-11-19
3
654 Views
Last Modified: 2013-11-20
No doubt it's my configuration that's at fault ...

Ubuntu Linux 10.04.2
dovecot 1.2.9
Postfix 2.7.0
SpamAssassin 3.3.1

I get hundreds of spam messages / day.  The sort that SpamAssassin was created to assassinate.

Here's my /etc/spamassassin/local.cf file:
#
# Sample SpamAssassin rules. It should be localted at:
#   /etc/mail/spamassassin/local.cf
#
# Shipped within iRedMail project:
#   * http://iRedMail.googlecode.com/
#
# See also:
#    $ man Mail::SpamAssassin::Conf
#


# These two lines will not affect due to Amavisd use its
# own variables setting in /etc/amavisd.conf.
required_score      5.0
rewrite_header      subject [ SPAM ]

report_safe         0
lock_method         flock

use_bayes           1
bayes_auto_learn    1
bayes_auto_expire   0

score ALL_TRUSTED -10.000

#skip_rbl_checks  1
score URIBL_AB_SURBL 0 0.3306 0 0.3812
score URIBL_JP_SURBL 0 0.3360 0 0.4087
score URIBL_OB_SURBL 0 0.2617 0 0.3008
score URIBL_PH_SURBL 0 0.2240 0 0.2800
score URIBL_SBL 0 0.1094 0 0.1639
score URIBL_SC_SURBL 0 0.3600 0 0.4498
score URIBL_WS_SURBL 0 0.1533 0 0.2140

# For Mail::SPF
spf_timeout         5

# For SpamAssassin-3.2.x. Reference:
# http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Plugin_SPF.html
#do_not_use_mail_spf 0
#do_not_use_mail_spf_query   1
#ignore_received_spf_header  1

score SPF_PASS -10.000
score SPF_FAIL 5.00

# Whitelist from SPF.
#whitelist_from_spf     joe@example.com fred@example.com
whitelist_from_spf      *@gmail.com
whitelist_from_spf      *@126.com *@163.com
whitelist_from_spf      *@sina.com *@sohu.com *@tom.com
whitelist_from_spf      *@live.com *@hotmail.com

# Whitelist from DKIM.
whitelist_from_dk       *@gmail.com *@paypal.com

# Whitelist domains.
# Reference: http://wiki.apache.org/spamassassin/ManualWhitelist
#whitelist_from         *@gmail.com

# Locales.
ok_locales          all

Open in new window


So ... somewhere I must be failing to tell spam assassin something it needs to interact with dovecot correctly.  What am I missing?

Thanks!
0
Comment
Question by:Daniel Wilson
3 Comments
 
LVL 19

Accepted Solution

by:
xterm earned 300 total points
ID: 39661307
Dovecot has no interaction with SpamAssassin - it is only a pop3/imap server which makes mail which has already been received available to connecting clients.  You need to configure Postfix to pipe the messages to the SpamAssassin client so that it scans them as they arrive.

This page here describes it:
http://www.akadia.com/services/postfix_spamassassin.html

It's not the simplest process - I personally find it much easier to use sendmail with procmail, where a simple .procmailrc recipe will post-process the mail after sendmail delivers it and do whatever you want with it (discard it, quarantine it, or just tag the subject line for example.)
0
 
LVL 77

Assisted Solution

by:arnold
arnold earned 200 total points
ID: 39661598
Your spamassassin config whitelisting might be your issue.

You are also missing the Bayesian analysis features
http://wiki.apache.org/spamassassin/BayesInSpamAssassin

You have to train spam assassin to statistically detect spam.

Not that using auto-learn is a two edged sword.

Procmail is a filter that can be used with any mail server not just sendmail.

Maildrop is another tool though have not looked at it for some time.
0
 
LVL 32

Author Closing Comment

by:Daniel Wilson
ID: 39663313
Thanks!

I'm reviewing those and trying to implement the instructions.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data‚Ķ
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question