From: "=?utf-8?q?K=C4=81rlis_Repsons?=" on 8 Jan 2010 15:14 Just I wanted to know if there is currently a good way to tie messages with log files? I mean, to see that ID (like 8BA216E7D7) into some mail header or similar... Perhaps add it with maildrop -A?
From: Noel Jones on 8 Jan 2010 15:20 On 1/8/2010 2:14 PM, KÄrlis Repsons wrote: > Just I wanted to know if there is currently a good way to tie messages with > log files? I mean, to see that ID (like 8BA216E7D7) into some mail header or > similar... Perhaps add it with maildrop -A? The QUEUEID is logged in the Received: header. This will show the various log lines associated with that message. Note the QUEUEID is not globally unique -- once a message has been removed from the queue the QUEUEID can be reused by another message. -- Noel Jones
From: mouss on 8 Jan 2010 15:21 Kārlis Repsons a écrit : > Just I wanted to know if there is currently a good way to tie messages with > log files? I mean, to see that ID (like 8BA216E7D7) into some mail header or > similar... No. the queue id is not in the delivered message. note that the queue id is not unique. > Perhaps add it with maildrop -A? if you go this road, then better generate a unique Id and put it in a header. you could do this at LDA level (maildrop or other), policy server or a content filter.
From: mouss on 8 Jan 2010 15:25 mouss a écrit : > Kārlis Repsons a écrit : >> Just I wanted to know if there is currently a good way to tie messages with >> log files? I mean, to see that ID (like 8BA216E7D7) into some mail header or >> similar... > > No. the queue id is not in the delivered message. argh. of course, the queue id is in the headers. > note that the queue id is not unique. > >> Perhaps add it with maildrop -A? > > if you go this road, then better generate a unique Id and put it in a > header. > > you could do this at LDA level (maildrop or other), policy server or a > content filter. > > >
From: Noel Jones on 8 Jan 2010 15:27
On 1/8/2010 2:21 PM, mouss wrote: > KÄrlis Repsons a écrit : >> Just I wanted to know if there is currently a good way to tie messages with >> log files? I mean, to see that ID (like 8BA216E7D7) into some mail header or >> similar... > > No. the queue id is not in the delivered message. Sure it is. Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by mailgate.vbhcs.org (Postfix) with ESMTP id 936E379789F for <njones(a)megan.vbhcs.org>; Fri, 8 Jan 2010 14:22:40 -0600 (CST) > note that the queue id > is not unique. Right. > >> Perhaps add it with maildrop -A? > > if you go this road, then better generate a unique Id and put it in a > header. > > you could do this at LDA level (maildrop or other), policy server or a > content filter. > > Well, you can always look up the Message-ID: header, which is logged by qmgr, and find the QUEUEID that way. -- Noel Jones |