Re: [exim] How to log the generated outgoing message-id?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Ferenc Wagner
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] How to log the generated outgoing message-id?
Jeremy Harris <jgh@???> writes:

> Ferenc Wagner wrote:
>
>> For tracking email, I'd like to log the message-id generated by Exim
>> for mail submitted by a local process. How could I achieve this?
>
> Look in the docs at http://exim.org for "log_message" and "$message_id"


OK, I cooked up this:

acl_not_smtp = acl_log_message_id
begin acl
acl_log_message_id:
warn log_message = Generated message id: $message_id
accept

And mainlog says:

2008-08-22 15:53:12 1KWX4i-0002NF-0C U=wferi Warning: Generated message id: 1KWX4i-0002NF-0C
2008-08-22 15:53:12 1KWX4i-0002NF-0C <= wferi@mydomain U=wferi P=local S=341

Which makes me feel stupid. Apparently each log line is prefixed with
the message id, sort of. Because in the received mail I find:

Message-Id: <E1KWX4i-0002NF-0C@mydomain>

Where does the E prefix come from?
--
Thanks,
Feri.