Jesper Knudsen wrote:
> I have created two default procmail templates that I install
> in the script only when running SME 6.0. The first makes sure
> to send incomming email through SpamAssassin to get the X-Spam
> header on the mail. The second rules will delete email that
> have a hit above 15 (according to Spamassassin.org this only
> gives a 0.05% chance to delete non-spam emails) or move them
> into the "junkmail" folder.
Jesper,
I setup a new 6.0 final server today, and installed your latest spamassassin script. The script ran flawlessly. I set up a black list account and sent mail to it. It was tagged as spam - [SPAM 100.00] test 3 - but still showed up in my inbox and not my junkmail folder. So, with the above statement of, "or move them into the junkmail folder", what is needed to make sure this function is enabled.
Here is a copy of my procmail rules copied from the user-manager panel, advanced panel:
Current procmail rules file
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see
http://www.e-smith.org/custom/#
# copyright (C) 1999-2003 Mitel Networks Corporation
#------------------------------------------------------------
# ---------------------------------------
# Default Shell, Program & file locations
# ---------------------------------------
SHELL=/bin/bash
DEFAULT=$HOME/Maildir/
FORMAIL=/usr/bin/formail
MAILDIR=$HOME/Maildir/
PMDIR=$HOME
SENDMAIL=/usr/sbin/sendmail
# ------------
# some logging
# ------------
VERBOSE=no
LOGFILE=$HOME/procmail.log
# ----------------------------------------------------------------------
# Route email to SpamAssassin Router
# 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.
# ----------------------------------------------------------------------
:0fw
* < 256000
| /usr/bin/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 or simply delete them. (This one is optional.)
# --------------------------------------------------------------------------
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
\dev\null
# -------------------------------------------------------------------------
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to spam@ mailbox
# -------------------------------------------------------------------------
#:0
#* ^X-Spam-Status: Yes
#! spam@domain.com
# -------------------------------------------------------------------------
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the junkmail folder
# -------------------------------------------------------------------------
:0
* ^X-Spam-Status: Yes
$MAILDIR/;junkmail/
# --------------------------
# all else goes to the inbox
# --------------------------
:0
$DEFAULT
Thanks,
JB