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: <[email protected]> Envelope-to: [email protected] Delivery-date: Mon, 03 Aug 2015 20:49:18 -0400 Received: from nobody by host1.widgethost.com with local (Exim 4.85) (envelope-from <[email protected]>) id 1ZMQPu-0004Ry-Rm for [email protected]; Mon, 03 Aug 2015 20:49:18 -0400 To: [email protected] 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: <[email protected]> Reply-To: <[email protected]> Message-Id: <[email protected]> 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: <[email protected]> Envelope-to: [email protected] Delivery-date: Mon, 03 Aug 2015 20:49:18 -0400 To: [email protected] 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: <[email protected]> Reply-To: <[email protected]> Message-Id: <[email protected]> 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. -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
