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.)

> > 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.
-- 
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

Reply via email to