Hello all,

I've successfully setup exim and spamassassin on a Debian Woody x86 to
scan all incoming mail (which is delivered locally, eventually to a
mailing list server).  

I am now trying to configure a new Debian Woody x86 to be an email
gateway.  It will have the lowest MX on the domain, and all incoming
mail will be routed through this box.  In exim, I added the following
lines into the top of the routers configuration:

#### Router Section ####
# Jeremy added this in

spamcheck_director:
  condition = "${if and { {!def:h_X-Spam-Flag:} {!eq
{$received_protocol}{spam-scanned}} } {1}{0}}"
  driver = lookuphost
  transport = spamcheck

And then I added the following to the top of the transport section:

#### Transport Section ####
# Spamassassin Transport
spamcheck:
  driver = pipe
  command = /usr/sbin/exim -oMr spam-scanned -bS
  transport_filter = "/usr/bin/spamc"
  bsmtp = all
  
  home_directory = "/tmp"
  current_directory = "/tmp"
  user = mail
  group = mail
  return_path_add = false
  log_output = true
  return_fail_output = true
  #prefix =
  #suffix =


When email goes through exim to a non-local destination, it is scanned
properly, but there is a break in the email header:

#### Begin Email ####
Received: from gateway1 ([205.143.222.7]) by esusa.oc.edu with Microsoft
        SMTPSVC(5.0.2195.4905); Tue, 24 Sep 2002 05:59:58 -0500
Received: from mail by gateway1 with spam-scanned (Exim 3.35 #1
(Debian))
        id 17tnQ6-0002oa-00 for <[EMAIL PROTECTED]>; Tue, 24 Sep 2002
05:59:58
        -0500
Message-Id: <E17tnQ6-0002oa-00@gateway1>
From: [EMAIL PROTECTED]
Bcc: 
Date: Tue, 24 Sep 2002 05:59:58 -0500
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 24 Sep 2002 10:59:58.0134 (UTC)
        FILETIME=[8599BD60:01C263B9]
X-Evolution-Source: imap:[EMAIL PROTECTED]/
Subject: No Subject
Mime-Version: 1.0

>From [EMAIL PROTECTED] Tue Sep 24 05:59:58 2002
Received: from root by gateway1 with local (Exim 3.35 #1 (Debian))
        id 17tnQ6-0002oV-00
        for <[EMAIL PROTECTED]>; Tue, 24 Sep 2002 05:59:58 -0500
From: [EMAIL PROTECTED] (Cron Daemon)
To: [EMAIL PROTECTED]
Subject: Cron <root@gateway1>    test -x /usr/sbin/ntpdate &&
/usr/sbin/ntpdate facstaf1.oc.edu
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env:
<PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
Message-Id: <E17tnQ6-0002oV-00@gateway1>
Date: Tue, 24 Sep 2002 05:59:58 -0500
X-Spam-Status: No, hits=0.0 required=5.0 tests= version=2.20
X-Spam-Level: 

24 Sep 05:59:57 ntpdate[10818]: step time server 205.143.220.12 offset
-3.437680 sec
#### End Email ####

I'm stumped.  I've googled and googled, and the manual is even on order
from Amazon.  I wanted to see if anyone has gone through this same
process or something similar and who could help.  It appears that
spamassassin is adding in the extra line break, but I'm not an expert on
exim so I can't rule either out.  I can send my full exim.conf off list,
but it is only the stock conf besides what I've modified.  Anyone have
any ideas?

Jeremy


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to