I am a new user to spamassassin (2.63), and am configuring it for the first 
time for use with Postfix (2.0.11) on Fedora Linux (Core 1) on a home email 
server.

The problem I have is that spamassassin is flagging all incoming email as 
spam.  I have configured it using the following HOWTO:

http://www.spookyhill.net/HOWTO/SpamAssPosfix/postfixSpamassassin.html

The above link outlines the following steps which I have done:

1. As root, create a file at /usr/local/bin/spamfilter.sh with the following 
content:
 
    #!/bin/bash
    /usr/local/bin/spamc | /usr/sbin/sendmail -i "$@"
    exit $?

2. Run "chmod 755 /usr/local/bin/spamfilter.sh"

3. Create a user called 'spamfilter'. Make it a complete user, with home 
directory and shell.

4. Run "chown spamfilter /usr/local/bin/spamfilter.sh"

5. In /etc/postfix/master.cf in the "Services" section, alter the 'smtp' line 
as follows (the " -o con..." SHOULD be on the next line:  NOTE:  there are 
two lines that have smtp.  Make sure it is the inet line.  Usually the first 
line. 
#-----------------------------------------------------------------------------------
    smtp inet n - n - - smtpd
      -o content_filter=spamfilter:   
#-----------------------------------------------------------------------------------

 6. In /etc/postfix/master.cf in the "Interfaces to non-Postfix software" 
section add:   
#-----------------------------------------------------------------------------------
    spamfilter unix - n n - - pipe
      flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} 
-- ${recipient}   
#-----------------------------------------------------------------------------------

I then set up a configuration file using  Michael Moncur's configuration tool 
on http://www.yrex.com/spam/spamconfig.php, which I installed in my home 
directory as: /home/skidmore/.spamassassin/local.cf

======================================================
# SpamAssassin config file for version 2.5x
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)

# How many hits before a message is considered spam.
required_hits           5.0

# Whether to change the subject of suspected spam
rewrite_subject         0

# Text to prepend to subject if rewrite_subject is used
subject_tag             *****SPAM*****

# Encapsulate spam in an attachment
report_safe             1

# Use terse version of the spam report
use_terse_report        0

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
auto_learn              1

# Enable or disable network checks
skip_rbl_checks         0
use_razor2              1
use_dcc                 1
use_pyzor               1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english 
ok_languages            en 

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              en 

=============================================================

Using the above steps, all incoming email is flagged as spam.  What additional 
steps do I need to take?

I should add that it appears the configuration file in my home directory is 
_not_ being read, as the SUBJECT line does not say *****SPAM*****

Thanks,
Barry

Reply via email to