Where should a Message-ID be added on an outbound SMTP message?

jeremy156

Verified User
Joined
Jun 30, 2011
Messages
6
If I submit a message into localhost using SMTP, it appears Exim is not creating a Message-ID as I thought it should. My understanding is that it should always create a Message-ID for a message in which it's missing.

Here's the header of a message submitted in this way, to a Gmail recipient - you see Google had to create a Message-ID. The same behaviour for other receiving mail servers - they all have to add their own Message-ID.

Surely the Exim server on localhost should create the Message-ID?

Delivered-To: [email protected]
Received: by 10.76.72.101 with SMTP id c5csp11056oav;
Wed, 8 May 2013 08:05:46 -0700 (PDT)
X-Received: by 10.180.183.133 with SMTP id em5mr11111688wic.26.1368025545215;
Wed, 08 May 2013 08:05:45 -0700 (PDT)
Return-Path: <[email protected]>
Received: from hostname.sender.com (hostname.sender.com. [89.145.86.xxx])
by mx.google.com with ESMTPS id o4si9553430wjo.79.2013.05.08.08.05.44
for <[email protected]>
(version=TLSv1 cipher=RC4-SHA bits=128/128);
Wed, 08 May 2013 08:05:45 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 89.145.86.xxx as permitted sender) client-ip=89.145.86.xxx;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [email protected] designates 89.145.86.xxx as permitted sender) [email protected];
dkim=policy (weak key) [email protected]
Date: Wed, 08 May 2013 08:05:45 -0700 (PDT)
Message-Id: <[email protected]>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; [email protected]; s=x;
h=To:From:Subject; bh=I3H+2RR4Gh+ISvkep1BNhywvLlNcy8ptbpJ3zaZuKCQ=;
b=qn7yUvKHKsdQZ/pjeb+FiOzLw4trz3HENtk+RXroMTfMD5g+3DxP+uFDkfjR921ENG+LyyWhb77lIpj37EBvvNshFziY/4vdGOZyRj9L3eYC93nz5zLt8J4IB6XUBWNq;
Received: from localhost ([127.0.0.1])
by hostname.sender.com with smtp (Exim 4.76)
(envelope-from <[email protected]>)
id 1Ua5vq-0000Ck-RZ
for [email protected]; Wed, 08 May 2013 16:05:44 +0100
Subject: test1
From: [email protected]
To: [email protected]
 
How are you creating the email? Did you look at the exim logs yet?

The behaviour is the same if I create the message by hand, or using the Perl module Mail::Sendmail which uses SMTP to submit (not the Sendmail binary).

The Exim "mainlog" appears to show as normal, although I don't honestly know what I'd be looking to see differently there.
 
Good spot - that's exactly it, thank you! I didn't realise I was confusing two things.
 
Back
Top