When a MTA client lib (I wrote) is used to send email via an SMTP connection to CPANEL/WHM Mail there is an issue when there is no message-id (case insensitive).
The below BAD h record is added by a Cpanel/WHM module(?please verify) and a Message-ID (big D) header is created. Outlook, hotmail, google, and yahoo all report DKIM:fail:
BAD
h=Content-Type:MIME-Version:Date:Subject:To:From:Sender:Reply-To:Message-ID:Cc:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
GOOD
h=Content-Type:MIME-Version:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive;
The GOOD header passes DKIM Signature verification because the MTA was modified to add a Message-Id (not lowercase d) header in the msg.
documentation.cpanel.net
says
"If an existing DKIM key does not meet the server's security requirements, the system replaces the existing DKIM key. If no DKIM key exists, the system creates a new key for the domain."
Could this API be connected with this behaviour?
Does the order or position or case of message-id make any difference to the behaviour of this module?
The below BAD h record is added by a Cpanel/WHM module(?please verify) and a Message-ID (big D) header is created. Outlook, hotmail, google, and yahoo all report DKIM:fail:
BAD
h=Content-Type:MIME-Version:Date:Subject:To:From:Sender:Reply-To:Message-ID:Cc:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
GOOD
h=Content-Type:MIME-Version:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive;
The GOOD header passes DKIM Signature verification because the MTA was modified to add a Message-Id (not lowercase d) header in the msg.
WHM API 1 Functions - ensure_dkim_keys_exist - Developer Documentation - cPanel Documentation
"If an existing DKIM key does not meet the server's security requirements, the system replaces the existing DKIM key. If no DKIM key exists, the system creates a new key for the domain."
Could this API be connected with this behaviour?
Does the order or position or case of message-id make any difference to the behaviour of this module?