You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Gary Manigault <ma...@dunncenter.org> on 2004/10/27 17:03:14 UTC

Spamc / Spamd

Several problems.  

1.  I want to use the configuration of Postfix, Procmail Spamd /Spamc.
I have the spamd daemon running.  I tried to have the box start spamc to
check for spam.  I am not sure that I have set it up correctly. 

Below is my procmailrc script to call spamassasin.  

=====

cat procmailrc


# The # denotes the original info in the file.
#DROPPRIVS=yes
#:0fwHB
#| /usr/bin/spamassassin
#:0
#* ^X-Spam-Status: Yes
#$HOME/spam

####################################################################
#
#  This is the new procmail procedure.
#
####################################################################
DROPPRIVS=yes
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with
'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
#:0fw: spamassassin.lock
:0fw: spamc.lock
* < 256000
#| spamassassin
|spamc

# Mails with a score of 15 or higher are almost certainly spam (with
0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in
a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam

# All mail tagged as spam (eg. with a score higher than the set
threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
probably-spam

# Work around procmail bug: any output on stderr will cause the "F" in
"From"
# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "

  :0 fhw
  | sed -e '1s/^/F/'
}


=====

If you need more information please let me know.  Thanks. 


 

Gary Manigault 
Sr. Systems Analyst 
765.983.8146