Here’s what we use when we send an email
post_identifier = "<topic/#{topic_id}/#{post_id}@#{host}>"
@message.header['Message-ID'] = post_identifier
This looks correct to me, we set the Message-Id
header to the Id of the post. Your mail client should use that as the In-Reply-To
header.