Koozali.org: home of the SME Server

Spam not being moved to junkmail

wouterhoek

Spam not being moved to junkmail
« on: February 04, 2005, 01:59:36 AM »
Spamassassin does email subject change to ***SPAM***{restoforiginalsubject}
but the autodelete to junkmail folder is broken. Tried the lat trick of swert knurdtsen, no go.
Has it something to do with procmail settings? Where to look for.
Also, is there an working spamassassin sme 6.5b2 server panel contrib out yet?

Offline Curly

  • ***
  • 114
  • +0/-0
Spam not being moved to junkmail
« Reply #1 on: February 04, 2005, 06:42:26 PM »
Every user should have a .procmailrc file in his home-directory, and there could also be a procmail.log file and a file named .qmail which invokes procmail. Perhaps the logfile shows some helfull errors ?
.......................................

wouterhoek

Spam not being moved to junkmail
« Reply #2 on: February 04, 2005, 07:37:56 PM »
I found that one and it seems there is no rule that moves or deletes the spam to another folder.
Am I the only one who has this with the new 6.5beta2 image?

Can someone post a working procmail.rc that actually moves or deletes the ***SPAM*** mail.

B.T.W. is Spamassassin auto-learning if I manually move a not recognized spam message to the junkmail folder or do I have to use some kind of a script?

Or maybe there is already a contrib that actually does this?

Offline Curly

  • ***
  • 114
  • +0/-0
Spam not being moved to junkmail
« Reply #3 on: February 04, 2005, 07:47:33 PM »
.procmailrc (version 6.01 !):
Code: [Select]

#------------------------------------------------------------
# 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



# -------------------------------------------------------------------------
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the junkmail folder
# Configured by SME-SpamFilter from sme.swerts-knudsen.dk
# -------------------------------------------------------------------------
:0
* ^.*X-Spam-Flag: YES
$MAILDIR/;junkmail/


# --------------------------
# all else goes to the inbox
# --------------------------
:0
$DEFAULT


Spamassassin doesn't learn when you move a mail yourself, you shoud use sa-learn for this.
.......................................

wouterhoek

Spam not being moved to junkmail
« Reply #4 on: February 05, 2005, 12:02:47 AM »
ok, thanks for this one. I'll try it next week.
I think I'll try to write a script that runs every 30 minutes en checks the junkmail folder and feed the contents to sa-learn. That way a user can easily mark unknow spam to the spamlist.

jontylovell

Re: Spam not being moved to junkmail
« Reply #5 on: March 03, 2005, 10:36:29 AM »
Quote from: "wouterhoek"
Spamassassin does email subject change to ***SPAM***{restoforiginalsubject}
but the autodelete to junkmail folder is broken. Tried the lat trick of swert knurdtsen, no go.
Has it something to do with procmail settings? Where to look for.
Also, is there an working spamassassin sme 6.5b2 server panel contrib out yet?


If you install the laest beta release from swerts you can then run the following commands to get the procmail rules working:

/sbin/e-smith/signal-event spamfilter-init-procmail
/sbin/e-smith/signal-event spamfilter-modprocmail

Not sure if you need the second one, but this seems to get everything working.