SA and Exim

rldev

Verified User
Joined
May 26, 2004
Messages
1,003
SA and Exim Problem

Well I have read every post. I'm a little dizzy :)

I can't get SA to scan emails, at least there is no info in the headers indicationg SA is working.

I installed the lastest SA (.spam.sh)
I shut off firewall for testing:

Spamd is running

[root@tp sbin]# ps awx|grep spamd
8313 ? S 0:00 /usr/bin/spamd -d -c -m 5
14688 ? S 0:00 spamd child
17177 ? S 0:00 spamd child
21024 ? S 0:00 spamd child
23966 ? S 0:00 spamd child
6352 ? S 0:00 spamd child
8363 pts/0 S 0:00 grep spamd

exim.conf

# Spam Assassin
begin transports

spamcheck:
driver = pipe
batch_max = 100
command = /usr/sbin/exim -oMr spam-scanned -bS
current_directory = "/tmp"
group = mail
home_directory = "/tmp"
log_output
message_prefix =
message_suffix =
return_fail_output
no_return_path_add
transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners$
use_bsmtp
user = mail
# must use a privileged user to set $received_protocol on the way back in!


Email Header

Return-path: <[email protected]>
Envelope-to: [email protected]
Delivery-date: Fri, 14 Jan 2005 11:36:32 -0600
Received: from host2.rsinternet.com ([209.239.35.23])
by tp.web-host-servers.com with esmtp (Exim 4.43)
id 1CpVNA-0004Lj-PN
for [email protected]; Fri, 14 Jan 2005 11:36:32 -0600
Received: from alydar (pcp09395151pcs.verona01.nj.comcast.net [69.141.56.192])
by host2.rsinternet.com (8.12.10/8.12.9) with ESMTP id j0EGr8N7028801
for <[email protected]>; Fri, 14 Jan 2005 11:53:08 -0500

OS RHE / EXIM 4.43

Anything else I can check?
 
Last edited:
Look for the section of exim.conf that includes:

spamcheck_director:

and make sure that section is NOT commented out.

Jeff
 
If I uncomment that line out. Exim reports an error. This line only appears in the following section:

# Spam Assassin
# spamcheck_director:
# driver = accept
# condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} $
# retry_use_local_part
# transport = spamcheck
# no_verify


I thought this is supposed to be commented out in the new exim.conf
If I uncomment this section it works. I'm not sure where I got the idea above. Maybe too much reading. I'm tired today:)

I just wonder why:

# Spam Assassin
# spamcheck_director:
# driver = accept
# condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} $
# retry_use_local_part
# transport = spamcheck
# no_verify

isn't with the rest of the SA info in the conf.
 
Last edited:
The section is commented out in the distribution file because both the folk at DirectAdmin (who wrote the first exim.conf file for DirectAdmin) and I (who rewrote it completely as the current version) believe that using SA should be optional, just as I left the /etc/virtual/use_rbl_domains file empty, as I believe using SpamBlocker should be optional as well.

The reason the two SA sections are separated is because they have to be; that's how the exim.conf file is designed.

Jeff
 
Back
Top