Have to admit, I do this the same way, though I capitalise ID:
Ie:
# But do add Message-ID: and Date: headers for hosts in relay_hosts
warn hosts = +relay_from_hosts
condition = ${if !def:h_Message-ID: {1}}
message = Message-ID: <E$message_id@$primary_hostname>
warn hosts = +relay_from_hosts
condition = ${if !def:h_Date: {1}}
message = Date: $tod_full
-----Original Message-----
From: exim-users-admin@??? [
mailto:exim-users-admin@exim.org] On
Behalf Of Mark Smith
Sent: 19 August 2004 14:53
To: Elsner@???
Cc: exim-users@???
Subject: RE: [Exim] Message-ID header
> I do it this way:
>
> | ...
> | acl_smtp_data = check_message
> | ..
> | # ACL that is used after the DATA command
> | check_message:
> | warn condition = ${if !def:h_Message-Id: {1}}
> | message = Message-Id: <E$message_id@$primary_hostname>
> (auto-added)
> | log_message = Added Message-Id <E$message_id@$primary_hostname>
> | ..
Thanks for your help. However I tried this and it still doesn't add the
header, and nothing gets written to the log.
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##
--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.
MailScanner is part of the Mail Filtering service from Nexent Internet.
___________________________________________________________________
The contents of this e-mail may be privileged and are confidential.
It may not be disclosed to or used by anyone other than the
addressee(s), nor copied in any way. Any views or opinions
presented are solely those of the author and do not necessarily
represent those of Knowledge Limited.
If received in error, please advise the sender, then delete it from
your system.
___________________________________________________________________