Ok. I changed the rule order as mentioned below, but I'm still confused. It
looks like spam assassin passes the message back to Exim, but it just ends
in a routing loop rather than rewriting/delivering using the forwarddomain.
I've got local_domains = testshield.xyzzy.com if that makes a difference.
The box actually has two IP addresses. Exim is bound to the one listed as
testshield using the "local interfaces = " directive and Sendmail is bound
to the one labelled spamshield. Here's what I'm seeing in exim_mainlog:
2002-01-02 15:16:28 16LskN-00042Q-00 <= steelrat@???
H=ns1.xyzzy.com [192.35.251.22] P=esmtp S=1222
id=Pine.LNX.4.33.0201021516020.21813-100000@???
2002-01-02 15:16:45 16Lske-00042c-00 <= nobody@spamshield U=nobody P=local
S=4885 id=Pine.LNX.4.33.0201021501380.21813-100000@???
2002-01-02 15:16:45 16Lsk8-000428-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:16:45 16Lsk8-000428-00 Completed
2002-01-02 15:16:59 16Lskt-00042h-00 <= nobody@spamshield U=nobody P=local
S=1481 id=Pine.LNX.4.33.0201021516020.21813-100000@???
2002-01-02 15:16:59 16LskN-00042Q-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:17:00 16LskN-00042Q-00 Completed
2002-01-02 15:17:16 16LslA-00042n-00 <= nobody@spamshield U=nobody P=local
S=5040 id=Pine.LNX.4.33.0201021501380.21813-100000@???
2002-01-02 15:17:17 16Lske-00042c-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:17:17 16Lske-00042c-00 Completed
2002-01-02 15:17:31 16LslP-00042u-00 <= nobody@spamshield U=nobody P=local
S=1636 id=Pine.LNX.4.33.0201021516020.21813-100000@???
2002-01-02 15:17:31 16Lskt-00042h-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:17:31 16Lskt-00042h-00 Completed
2002-01-02 15:17:48 16Lslg-000430-00 <= nobody@spamshield U=nobody P=local
S=5195 id=Pine.LNX.4.33.0201021501380.21813-100000@???
2002-01-02 15:17:49 16LslA-00042n-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:17:49 16LslA-00042n-00 Completed
2002-01-02 15:18:13 16Lsm5-000435-00 <= nobody@spamshield U=nobody P=local
S=1791 id=Pine.LNX.4.33.0201021516020.21813-100000@???
2002-01-02 15:18:13 16LslP-00042u-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:18:13 16LslP-00042u-00 Completed
2002-01-02 15:18:20 16LsmC-00043A-00 <= nobody@spamshield U=nobody P=local
S=5350 id=Pine.LNX.4.33.0201021501380.21813-100000@???
2002-01-02 15:18:20 16Lslg-000430-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:18:20 16Lslg-000430-00 Completed
2002-01-02 15:18:45 16Lsmb-00043G-00 <= nobody@spamshield U=nobody P=local
S=1946 id=Pine.LNX.4.33.0201021516020.21813-100000@???
2002-01-02 15:18:45 16Lsm5-000435-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:18:45 16Lsm5-000435-00 Completed
2002-01-02 15:18:52 16Lsmi-00043L-00 <= nobody@spamshield U=nobody P=local
S=550
5 id=Pine.LNX.4.33.0201021501380.21813-100000@???
2002-01-02 15:18:52 16LsmC-00043A-00 => kevtest
<kevtest@???> D=spamcheck_director T=spamcheck
2002-01-02 15:18:52 16LsmC-00043A-00 Completed
2002-01-02 15:19:21 Start queue run: pid=15588
2002-01-02 15:19:21 16Lsmb-00043G-00 Spool file is locked (another process
is handling this message)
2002-01-02 15:19:21 16LqND-0003Qq-00 Message is frozen
2002-01-02 15:19:21 16LnmJ-00030i-00 Message is frozen
2002-01-02 15:19:21 16LnVE-0002wy-00 Message is frozen
2002-01-02 15:19:21 16LnZA-0002ys-00 Message is frozen
2002-01-02 15:19:21 16Lshz-000417-00 Message is frozen
2002-01-02 15:19:21 16Lsmi-00043L-00 Spool file is locked (another process
is ha
ndling this message)
2002-01-02 15:19:21 End queue run: pid=15588
2002-01-02 15:19:27 16LsnH-00043Y-00 <= nobody@spamshield U=nobody P=local
S=210
1 id=Pine.LNX.4.33.0201021516020.21813-100000@???
2002-01-02 15:19:27 16Lsmb-00043G-00 => kevtest
<kevtest@???> D=
spamcheck_director T=spamcheck
2002-01-02 15:19:27 16Lsmb-00043G-00 Completed
2002-01-02 15:19:34 16LsnO-00043d-00 <= nobody@spamshield U=nobody P=local
S=566
0 id=Pine.LNX.4.33.0201021501380.21813-100000@???
2002-01-02 15:19:34 16LsnO-00043d-00 ** Too many "Received" headers -
suspected
mail loop
2002-01-02 15:19:34 16Lsmi-00043L-00 => kevtest
<kevtest@???> D=
spamcheck_director T=spamcheck
2002-01-02 15:19:34 16Lsmi-00043L-00 Completed
2002-01-02 15:19:34 16LsnO-00043f-00 <= <> R=16LsnO-00043d-00 U=root P=local
S=6
471
2002-01-02 15:19:34 16LsnO-00043d-00 Error message sent to nobody@spamshield
2002-01-02 15:19:35 16LsnO-00043d-00 Completed
-----Original Message-----
From: Phil Pennock [
mailto:Phil.Pennock@globnix.org]
Sent: Thursday, December 27, 2001 5:31 AM
To: Rice, Kevin
Cc: 'exim-users@???'
Subject: Re: [Exim] Using Spam Assassin with Exim for remote addresses
On 2001-12-21 at 13:03 -0600, Rice, Kevin wrote:
> What I was using as examples was the following director for forwarding:
>
> forwarddomain:
> driver = smartuser
> domains = testshield.xyzzy.com
> new_address = $local_part@???
>
> ..and the director from the docs from Andi Gohr for using Spam Assassin
for
> filtering:
>
> #Spam Assassin
> spamcheck_director:
> condition = "${if eq {$received_protocol}{spam-scanned} {0}{1}}"
> driver = smartuser
> transport = spamcheck
> This didn't seem to work in that the forwarddomain director overrode the
> spamcheck one. So I tried to combine the two directors and came up with
the
> following:
To quote from the default configuration file:
######################################################################
# DIRECTORS CONFIGURATION #
# Specifies how local addresses are handled #
######################################################################
# ORDER DOES MATTER #
# A local address is passed to each in turn until it is accepted. #
######################################################################
Order matters. Put spamcheck_director before forwarddomain. Second
time around, the $received_protocol should be "spam-scanned", so the
condition will be 0 and fail, so the director will be skipped and only
then will forwarddomain be seen.
--
I pretend to work. They pretend to pay me.