Hi, I think I've uncovered an issue with Exim not logging a message's Message-ID in some circumstances and would appreciate people's thoughts…
I'm running Exim 4.82 (distributed with Ubuntu 14.04 LTS) and have pretty much all logging enabled: log_selector = +all -retry_defer -skip_delivery -tls_peerdn When a message arrives over SMTP that *includes* a "Message-ID:" header its value is included in the "<=" incoming message line Exim logs to its mainlog as "id=*messageidvalue*" However if the message arriving over SMTP *does not include* a "Message-ID:" header then no value gets logged. OK, I can understand this if there genuinely is no message-id. However if the connection is accepted by an ACL with "control = submission" Exim fixes this up by generating a message-id, as described in Chapter 47 *Submission mode for non-local messages* <http://www.exim.org/exim-html-current/doc/html/spec_html/ch-message_processing.html#SECTsubmodnon>. The ACL in question in our configuration says: accept hosts = +relay_from_hosts control = submission/sender_retain control = dkim_disable_verify Exim should therefore be generating/fixing up the message-id and I'd expect this (generated) message-id to be logged somewhere: either in the "<=" incoming log line (ideally), or in a separate log line. But it isn't. Not anywhere. :-( (I've peered at the source code, in particular in receive.c, but haven't got very far sadly.) Is this a bug/oversight? Have I missed something? Is it a feature I could request, or are there technical reasons why it couldn't be logged? *Why do I want this?* This is making it a real pain to try and trace a message generated by an on-site system, sent out through Exim on our local gateways to an external host, which (I think, but am trying to prove) is relaying it back to our Google-hosted mailboxes. The message-id would be the information to link the outgoing entry in Exim's logs to the incoming messages in Google's logs whilst having no access to the logs of the intermediate server. Cheers, Mike B-) -- Systems Administrator & Change Manager IT Services, University of York, Heslington, York YO10 5DD, UK Tel: +44-(0)1904-323811 Web: www.york.ac.uk/it-services Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm -- ## List details at https://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/
