Topic: Not all junk being filtered
==== Provide basic information to help troubleshoot and get quick answer ====
- iRedMail version: 0.7.3
- Linux/BSD distribution name and version: Red Hat Enterprise Linux 5 - 64 bit
- Any related log? Log is helpful for troubleshooting.
====
Hi
I've enabled the junk mail filtering into the junk folder by renaming the dovecot.sieve file. It seems to be working but not all of the junk is being filtered. All junk is being flagged with ***SPAM*** in the subject, but only some of the junk goes into the junk folder.
Here's the bit I've edited in my amavisd.conf file:
$sa_tag_level_deflt = -100; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 5; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 5; # triggers spam evasive actions (e.g. blocks mail)
$sa_dsn_cutoff_level = 8; # spam level beyond which a DSN is not sent
$sa_crediblefrom_dsn_cutoff_level = 18; # likewise, but for a likely valid From
# $sa_quarantine_cutoff_level = 25; # spam level beyond which quarantine is off
$penpals_bonus_score = 8; # (no effect without a @storage_sql_dsn database)
$penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi spam
$bounce_killer_score = 100; # spam score points to add for joe-jobbed bounces
This is the header from an email that *did* get moved to the junk folder:
Return-Path: <xcmkyurzvsyai@faqserv.com>
Delivered-To: matt.xxx@xxx.net
Received: from localhost (localhost [127.0.0.1])
by xxx.xxx.net (Postfix) with ESMTP id DE4309582DD
for <matt.xxx@xxx.net>; Tue, 6 Dec 2011 14:02:09 +0000 (GMT)
X-Quarantine-ID: <pa0WVw6VioML>
X-Virus-Scanned: amavisd-new at xxx.xxx.net
X-Amavis-Alert: BAD HEADER SECTION, MIME error: error: unexpected end of
header
X-Spam-Flag: YES
X-Spam-Score: 21.783
X-Spam-Level: *********************
X-Spam-Status: Yes, score=21.783 tagged_above=-100 required=5
tests=[EMPTY_MESSAGE=0.607, INVALID_MSGID=2.603, MISSING_HB_SEP=2.5,
MISSING_SUBJECT=1.285, MSGID_SHORT=0.232, RCVD_NUMERIC_HELO=2.599,
RDNS_NONE=0.1, SPF_FAIL=5, TT_MSGID_TRUNC=1.874,
TVD_SPACE_RATIO=2.899, UNCLOSED_BRACKET=2.083,
UNPARSEABLE_RELAY=0.001] autolearn=spam
Subject: ***SPAM***
Received: from xxx.xxx.net ([127.0.0.1])
by localhost (xxx.xxx.net [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id pa0WVw6VioML for <matt.xxx@xxx.net>;
Tue, 6 Dec 2011 14:02:09 +0000 (GMT)
This is the header from an email that *did not* get moved to the junk folder but did have the subject marked as ***spam***:
Return-Path: <c48scshito@ezweb.ne.jp>
Delivered-To: matt.xxx@xxx.net
Received: from localhost (localhost [127.0.0.1])
by xxx.xxx.net (Postfix) with ESMTP id CC2CD9582DD
for <matt.xxx@xxx.net>; Tue, 6 Dec 2011 16:33:02 +0000 (GMT)
X-Quarantine-ID: <XEaWjhS0AlxI>
X-Virus-Scanned: amavisd-new at xxx.xxx.net
X-Amavis-Alert: BAD HEADER SECTION, Non-encoded 8-bit data (char 90 hex):
From: "\220\274\223\207 \216u\225\344\227\242" <hy[...]
X-Spam-Flag: YES
X-Spam-Score: 9.993
X-Spam-Level: *********
X-Spam-Status: Yes, score=9.993 tagged_above=-100 required=5
tests=[FROM_ILLEGAL_CHARS=3.999, RCVD_IN_BL_SPAMCOP_NET=2.188,
RDNS_NONE=0.1, SPF_SOFTFAIL=0.654, TVD_SPACE_RATIO=2.899,
URIBL_WS_SURBL=0.1533] autolearn=no
Received: from xxx.xxx.net ([127.0.0.1])
by localhost (xxx.xxx.net [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id XEaWjhS0AlxI for <matt.xxx@xxx.net>;
Tue, 6 Dec 2011 16:32:58 +0000 (GMT)
Any ideas?
Thanks
Matt
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.