> 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.