[exim] Spamassassin forgets to scan some mails

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Oliver Kötter
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Spamassassin forgets to scan some mails

OK, folks,

I have one problem I cannot solve myself.

I use Exim 4.34 and Spamassassin 3.0.2 on Debian Woody 3.0.

My problem is that some messages get scanned my SA and some are not. A lot
of mails get forwarded from another account (gmx.de) where I switched off
spam detection, hence the header "X-GMX-Antispam: -2 (not scanned, spam
filter disabled)".

The difference in the headers are that the scanned message have "with
spam-scanned (Exim 4.34)" and the "X-Spam-" headers.
It is not only a problem of the forwarded messages, but also mails that
are sent directly to the server where exim runs on are sometimes checked
and sometimes not.

I would be extremely grateful for any help.

Regards,

Oliver




The Messages that are scanned have these headers (excerpt):

----------------------------------------------------------------------
Return-path: <bounce=ckrdia#aziegler.net=391=1ee2={my old email}>
Envelope-to: {my new email}
Received: from mx0.gmx.net ([213.165.64.100])
     by {my URL} with smtp (Exim 4.34)
     id 1DDoGJ-0002XW-So
     for {my new email} ; Tue, 22 Mar 2005 19:37:55 +0100
Received: (qmail 6952 invoked by alias); 22 Mar 2005 18:37:55 -0000
Delivered-To: GMX delivery to {my old email}
{...}
From: "Amabel" <ckrdia@???>
To: "Hal" <{my old email}>
Subject: the best online casinos
Date: Tue, 22 Mar 2005 18:50:51 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.2.2
X-Originating-IP: 197.209.13.56
X-GMX-Antispam: -2 (not scanned, spam filter disabled)
X-Resent-By: Forwarder <forwarder@???>
X-Resent-For: {my old email}
X-Resent-To: {my new email}
----------------------------------------------------------------------


and those that are not scanned have these:
----------------------------------------------------------------------
Return-path: <bounce=shizukogravois#amail.bulgaria.com=391=ae05={my old
email}>
Envelope-to: {my new email}
Delivery-date: Tue, 22 Mar 2005 12:42:12 +0100
Received: from Debian-exim by {my URL} with spam-scanned (Exim 4.34)
     id 1DDhlq-0002c9-Kx
     for {my new email} ; Tue, 22 Mar 2005 12:42:12 +0100
Received: from mx0.gmx.net ([213.165.64.100])
     by {my URL} with smtp (Exim 4.34)
     id 1DDhlq-0001AN-AM
     for {my new email} ; Tue, 22 Mar 2005 12:42:02 +0100
Received: (qmail 28499 invoked by alias); 22 Mar 2005 11:42:01 -0000
Delivered-To: GMX delivery to {my old email}
{...}
From: "freeman wilson" <shizukogravois@???>
To: "Ismael Bailey" <cynicism@???>
Subject: Your Friends Will Envy You
Date: Tue, 22 Mar 2005 15:16:50 -1100
MIME-Version: 1.0
Content-Type: text/plain;
     charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-GMX-Antispam: -2 (not scanned, spam filter disabled)
X-Resent-By: Forwarder <forwarder@???>
X-Resent-For: {my old email}
X-Resent-To: {my new email}
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on {my URL}
X-Spam-Status: No, score=3.5 required=5.0
tests=BAYES_60,DATE_IN_FUTURE_12_24,
     RCVD_IN_SBL autolearn=no version=3.0.2
X-Spam-Level: ***


----------------------------------------------------------------------

My Exim-Config:

30_exim4-config_spamcheck:
spamcheck:
      debug_print = "T: spamassassin_pipe for $local_part@$domain" driver
= pipe
      command = /usr/sbin/exim4 -oMr spam-scanned -bS
      use_bsmtp
      transport_filter = /usr/bin/spamc -u ${local_part}
      home_directory = "/tmp"
      current_directory = "/tmp"
      user = Debian-exim
      group = Debian-exim
      return_fail_output
      message_prefix =
      message_suffix =
      log_output = true
----------------------------------------------------------------------
850_exim4-config_spamcheck_router:
spamcheck_router:
        no_verify
        check_local_user
        # When to scan a message :
        #   -   it isn't already flagged as spam
        #   -   it isn't already scanned
        condition = "${if and { {!def:h_X-Spam-Flag:} {!eq
{$received_protocol}{spam-scanned}}} {1}{0}}"
        # condition = "${if !def:h_X-Spam-Flag: {1}{0}}"
        driver = accept
        transport = spamcheck
----------------------------------------------------------------------







--
Oliver Kötter
oliver.koetter@???