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 header, why not just:

enable_long_queue_ids = yes

and use the queue ID that's already in your top Received: header?

(Legacy note: that option was introduced in the now-EOL Postfix
version 2.9.  If you're not on 2.10 or later you should be.)

I have v3.1 running on that box. A long queue was in my mind all day, but as I need that header in a specific format (I don't have control over that as that part is not my work), I was thinking of copying it, but still digging on that matter.

Thanks


The unique ID doesn't have to be some complicated hash, it can be
something like the <message-id>+<date> or <date><time> ... which
would be mostly unique.

Any ideas if such a thing could be done with just prepending in
header checks, without external filtering?


You can't do this with postfix alone.
You would not need a full external filter, but you could use a
policy service or a tcp table, either of which are fairly simple and
lightweight.

Or you could just use the Message-ID as your mostly-unique identifier.

Reply via email to