I have exim running in a DMZ relaying for zimbra. I run SA on the DMZ box so that exim can 550 messages that score particularly high. I've modified the exim conf so that messages that are flagged as spam but accepted get a X-Spam-Flag-Ext header.
On the zimbra box I've added:
to /opt/zimbra/conf/salocal.cf.in, restarted zimbra and verified that the lines appear in /opt/zimbra/conf/salocal.cf.Code:bayes_ignore_header X-Spam-Flag-Ext header EXT_SA X-Spam-Flag-Ext =~ /yes/ describe EXT_SA DMZ SA claimed it is spam score EXT_SA 3.0
However, the rule is never applied. Example headers post-amavisd on zimbra:
Any clues as to why the custom rules aren't applied or how I might debug this?Code:Return-Path: firstname.lastname@example.org Received: from zimbra.foo.org (LHLO zimbra.foo.org) (192.168.5.200) by zimbra.foo.org with LMTP; Thu, 8 Jan 2009 01:27:31 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.foo.org (Postfix) with ESMTP id 1BDD8534002 for <email@example.com>; Thu, 8 Jan 2009 01:27:31 +0000 (GMT) X-Virus-Scanned: amavisd-new at foo.org X-Spam-Flag: YES X-Spam-Score: 5.885 X-Spam-Level: ***** X-Spam-Status: Yes, score=5.885 tagged_above=-10 required=5 tests=[AWL=-0.214, BAYES_50=0.001, DRUGS_ERECTILE=0.282, DRUG_ED_CAPS=0.322, HTML_MESSAGE=0.001, IMPOTENCE=1.886, LOW_PRICE=0.001, SUBJ_ALL_CAPS=2.077, SUBJ_BUY=0.001, UPPERCASE_75_100=1.528] Received: from zimbra.foo.org ([127.0.0.1]) by localhost (zimbra.foo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wdqtjEafFGSm; Thu, 8 Jan 2009 01:27:30 +0000 (GMT) Received: from mail.foo.org (mail.foo.org [192.168.0.3]) by zimbra.foo.org (Postfix) with ESMTP id AE591534001 for <firstname.lastname@example.org>; Thu, 8 Jan 2009 01:27:30 +0000 (GMT) Received: from bay0-omc1-s4.bay0.hotmail.com ([188.8.131.52]) by mail.foo.org with esmtp (Exim 4.69) (envelope-from <foo.bar.com>) id 1LKjfh-0002HN-VL for email@example.com; Thu, 08 Jan 2009 01:27:08 +0000 Received: from BAY102-W33 ([184.108.40.206]) by bay0-omc1-s4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Jan 2009 17:26:07 -0800 Message-ID: <BAY102-W33CEFD4EABAA3334DACC5A86DC0@phx.gbl> Content-Type: multipart/alternative; boundary="_7f86a7e1-4c4b-4f58-8f27-99b18f503e2f_" X-Originating-IP: [220.127.116.11] From: foo <firstname.lastname@example.org> To: <email@example.com> Subject: SPAM:This message is spam Date: Thu, 8 Jan 2009 01:26:07 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 08 Jan 2009 01:26:07.0801 (UTC) FILETIME=[14CB5A90:01C97130] X-Spam-Flag-Ext: yes