Re: Inserting a unique ID into the email header with Postfix alone

2016-03-22 Thread Rich Wales
Please also note that adding something like this onto the end of a "Received:" header line will break the syntax. There isn't supposed to be anything extra after the date/time stamp in a "Received:" line. If you feel you need to do this anyway, please consider enclosing your new "unique ID" info

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Istvan Prosinger
On 18.3.2016 15:42, /dev/rob0 wrote: On Fri, Mar 18, 2016 at 09:05:51AM -0500, Noel Jones wrote: On 3/18/2016 6:20 AM, Istvan Prosinger wrote: Hello Everyone! I need to insert something like X-MY-ID-some-unique-ID into each email's header for local tracking purposes. Why a separate heade

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Istvan Prosinger
Thanks Ben. It was a generic example On 18.3.2016 21:14, b...@bitrate.net wrote: On Mar 18, 2016, at 07.20, Istvan Prosinger wrote: Hello Everyone! I need to insert something like X-MY-ID-some-unique-ID into each email's header for local tracking purposes. The unique ID doesn't have to be

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread btb
On Mar 18, 2016, at 07.20, Istvan Prosinger wrote: > > Hello Everyone! > > I need to insert something like > > X-MY-ID-some-unique-ID > > into each email's header for local tracking purposes. > > The unique ID doesn't have to be some complicated hash, it can be something > like the + or ...

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Istvan Prosinger
On 19.3.2016 15:53, /dev/rob0 wrote: On Sat, Mar 19, 2016 at 03:34:28PM +0100, Istvan Prosinger wrote: I've tried what you ask, this is what I got: [root@email ~]# postmap -h -q - pcre:/etc/postfix/stamp.pcre < testheader Received: from localhost (localhost [127.0.0.1]) by email-tes

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Istvan Prosinger
On 19.3.2016 16:02, Wietse Venema wrote: Istvan Prosinger: [root@email ~]# postmap -h -q - pcre:/etc/postfix/stamp.pcre < testheader Received: from localhost (localhost [127.0.0.1]) by email-test.server.com (Postfix) with ESMTP id 3qRyhf4pqCzKmYs for ; Sat, 19 Mar 2016 06:

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Wietse Venema
Istvan Prosinger: > [root@email ~]# postmap -h -q - pcre:/etc/postfix/stamp.pcre < testheader > > Received: from localhost (localhost [127.0.0.1]) > by email-test.server.com (Postfix) with ESMTP id 3qRyhf4pqCzKmYs > for ; Sat, 19 Mar 2016 06:17:54 > -0400 (EDT) Prepend X-DIYL-3q

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread /dev/rob0
On Sat, Mar 19, 2016 at 03:34:28PM +0100, Istvan Prosinger wrote: > I've tried what you ask, this is what I got: > > [root@email ~]# postmap -h -q - pcre:/etc/postfix/stamp.pcre < testheader > > Received: from localhost (localhost [127.0.0.1]) > by email-test.server.com (Postfix) with ESM

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Istvan Prosinger
On 19.3.2016 15:13, Wietse Venema wrote: Istvan Prosinger: [ Charset windows-1252 converted... ] On 19.3.2016 1:18, Wietse Venema wrote: Istvan Prosinger: Why a separate header, why not just: enable_long_queue_ids = yes and use the queue ID that's already in your top Received: header? I

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Wietse Venema
Istvan Prosinger: [ Charset windows-1252 converted... ] > On 19.3.2016 1:18, Wietse Venema wrote: > > Istvan Prosinger: > Why a separate header, why not just: > > enable_long_queue_ids = yes > > and use the queue ID that's already in your top Received: header? > >>> > >>> I

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Noel Jones
On 3/18/2016 6:20 AM, Istvan Prosinger wrote: > Hello Everyone! > > I need to insert something like > > X-MY-ID-some-unique-ID > > into each email's header for local tracking purposes. > > The unique ID doesn't have to be some complicated hash, it can be > something like the + or ... which > w

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Istvan Prosinger
On 19.3.2016 1:18, Wietse Venema wrote: Istvan Prosinger: Why a separate header, why not just: enable_long_queue_ids = yes and use the queue ID that's already in your top Received: header? I would use a header_checks PREPEND action that prepends a header with the long queue ID from the Recei

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread Istvan Prosinger
On 18.3.2016 17:27, Wietse Venema wrote: /dev/rob0: On Fri, Mar 18, 2016 at 09:05:51AM -0500, Noel Jones wrote: On 3/18/2016 6:20 AM, Istvan Prosinger wrote: Hello Everyone! I need to insert something like X-MY-ID-some-unique-ID into each email's header for local tracking purposes. Why

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-19 Thread /dev/rob0
On Fri, Mar 18, 2016 at 09:05:51AM -0500, Noel Jones wrote: > On 3/18/2016 6:20 AM, Istvan Prosinger wrote: > > Hello Everyone! > > > > I need to insert something like > > > > X-MY-ID-some-unique-ID > > > > into each email's header for local tracking purposes. Why a separate header, why not jus

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-18 Thread Wietse Venema
/dev/rob0: > On Fri, Mar 18, 2016 at 09:05:51AM -0500, Noel Jones wrote: > > On 3/18/2016 6:20 AM, Istvan Prosinger wrote: > > > Hello Everyone! > > > > > > I need to insert something like > > > > > > X-MY-ID-some-unique-ID > > > > > > into each email's header for local tracking purposes. > > W

Re: Inserting a unique ID into the email header with Postfix alone

2016-03-18 Thread Wietse Venema
Istvan Prosinger: > >> Why a separate header, why not just: > >> > >> enable_long_queue_ids = yes > >> > >> and use the queue ID that's already in your top Received: header? > > > > I would use a header_checks PREPEND action that prepends a header > > with the long queue ID from the Received: heade