[exim] Filtering on Received: header

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Rob Gunther
Dátum:  
Címzett: Exim Mailing List
Tárgy: [exim] Filtering on Received: header
I am attempting to implement a filtering rule, using the value in the
received: headers.

If a message is sent from a script on the same server as Exim, the message
header might look something like this.

Return-path: <nobody@???>
Envelope-to: jason@???
Delivery-date: Mon, 03 Aug 2015 20:49:18 -0400
Received: from nobody by host1.widgethost.com with local (Exim 4.85)
(envelope-from <nobody@???>)
id 1ZMQPu-0004Ry-Rm
for jason@???; Mon, 03 Aug 2015 20:49:18 -0400
To: jason@???
Subject: Message from Cafe
X-PHP-Script: www.example.com/index.php/contact-us for 74.74.141.151
MIME-Version: 1.0
Content-type:text/html;charset=UTF-8
From: <jason@???>
Reply-To: <jason@???>
Message-Id: <E1ZMQPu-0004Ry-Rm@???>
Date: Mon, 03 Aug 2015 20:49:18 -0400

I have been successful in working with filters on received headers, except
this time. I can't get anything to match on the sample received header
above.

When exim runs the filters, does the received header actually exist yet?
The most recent Received header is added by Exim, so I am wondering if the
filter is running before the Received header is added, so what the filter
is running on is more like this:

Return-path: <nobody@???>
Envelope-to: jason@???
Delivery-date: Mon, 03 Aug 2015 20:49:18 -0400
To: jason@???
Subject: Message from Cafe
X-PHP-Script: www.example.com/index.php/contact-us for 74.074.141.151
MIME-Version: 1.0
Content-type:text/html;charset=UTF-8
From: <jason@???>
Reply-To: <jason@???>
Message-Id: <E1ZMQPu-0004Ry-Rm@???>
Date: Mon, 03 Aug 2015 20:49:18 -0400

So any search in the Received: header will not find a match?

Am I right or wrong? Either the received header Exim adds is not yet
there, or I've got something else wrong.



Robert G.