Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Logging particular header | returning message ID

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


abgrund at silberdrache

May 14, 2008, 2:16 AM

Post #1 of 4 (298 views)
Permalink
Logging particular header | returning message ID

Hello,

I need to find a way to identify emails that exim handles with messages
the mailing system produced. The purpose is mostly to be able to trace
the fate of an email on click.

For that I need either the exim process to return the message ID (if it
is called with the /usr/bin/sendmail method) or I need exim to log one
particular header of the mail that contains the platforms internal
message ID.

While both would work logging the message ID (of the sending program)
would make it easier...

Does anyone have an idea how that can be done?

Greetings
Björn


--
## List details at http://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/


dot at dotat

May 14, 2008, 2:46 AM

Post #2 of 4 (280 views)
Permalink
Re: Logging particular header | returning message ID [In reply to]

On Wed, 14 May 2008, Björn Keil wrote:
>
> For that I need either the exim process to return the message ID (if it
> is called with the /usr/bin/sendmail method) or I need exim to log one
> particular header of the mail that contains the platforms internal
> message ID.

Ideally, the sender would put its message ID in the Message-ID header,
which Exim always logs when it receives a message. Alternatively,
use logwrite in acl_not_smtp to log the contents of other headers.

Tony.
--
<fanf[at]exim.org> <dot[at]dotat.at> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}


graeme at graemef

May 14, 2008, 2:52 AM

Post #3 of 4 (280 views)
Permalink
Re: Logging particular header | returning message ID [In reply to]

On Wed, 2008-05-14 at 11:16 +0200, Björn Keil wrote:
> While both would work logging the message ID (of the sending program)
> would make it easier...

Is this message ID normally added as a specific header, like, erm,
Message-ID: <blablah> ?

If it is, you can do something like this in the DATA ACL:

warn log_message = INFO: $h_message-id:
condition = ${if eq{$h_message-id:}{} {0}{1}}

[untested]

That pretty much says: if the header line Message-ID: isn't empty, log
it but prefix it with INFO:. You can use any header you like.

There's bound to be more than one way to do it though :)

Graeme


--
## List details at http://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/


abgrund at silberdrache

May 14, 2008, 5:01 AM

Post #4 of 4 (276 views)
Permalink
Re: Logging particular header | returning message ID [In reply to]

Am Mittwoch, den 14.05.2008, 10:46 +0100 schrieb Tony Finch:
> On Wed, 14 May 2008, Björn Keil wrote:
> >
> > For that I need either the exim process to return the message ID (if it
> > is called with the /usr/bin/sendmail method) or I need exim to log one
> > particular header of the mail that contains the platforms internal
> > message ID.
>
> Ideally, the sender would put its message ID in the Message-ID header,
> which Exim always logs when it receives a message. Alternatively,
> use logwrite in acl_not_smtp to log the contents of other headers.
>
> Tony.

Thank you... which basically means my problem is already solved if I
just had my eyes kept open.

I've never used


--
## List details at http://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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.