Re: [Exim] Routing with Spamcop

Top Page
Delete this message
Reply to this message
Author: Mark Edwards
Date:  
To: exim-users
CC: Philip Hazel
Subject: Re: [Exim] Routing with Spamcop
On Friday, August 2, 2002, at 02:30 AM, Philip Hazel wrote:

> On Thu, 1 Aug 2002, Mark Edwards wrote:
>> # Exim filter
>>
>> # Ignore error messages
>> if error_message then finish endif
>>
>> # Copy if this is the first delivery attempt
>> if first_delivery then
>>    unseen deliver backup@??? errors_to postmaster@???
>> endif

>>
>>
>> This backup copy does not contain the X-Warning: headers that get
>> assigned in my ACL if hosts are in the blacklist.
>
> ... but the other copies do? That is inexplicable, because headers added
> by ACLs are put into the message when it is received and put on Exim's
> spool. The reception process then ends.
>
> The filter is run during a subsequent delivery process, and it must
> perforce operate on the same copy of the message for all recipients.


I was wrong in my first assessment. Mail that gets an X-Warning: header
does not get copied by the system-filter at all. Here is a log sample:

2002-08-04 14:06:31 H=(qqhrmc.net.cn) [61.138.3.251] Warning: found in bl.
spamcop.net
2002-08-04 14:06:32 H0C7YV-0001JU-00 <= 104034.1703urj@???
H=(qqhrmc.net.cn) [61.138.3.251] P=esmtp S=7908 id=200208042157.FAA25978@q
qhrmc.net.cn
2002-08-04 14:06:32 H0C7YV-0001JU-00 => spam <system-filter> R=localuser T=
local_delivery
2002-08-04 14:06:32 H0C7YV-0001JU-00 Completed

I'm guessing that this is because of the "if first_delivery then" clause in
my system-filter. Does that make sense?

--
Mark Edwards
San Francisco, CA