• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question Missing Message ID email header?

safemoon

Basic Pleskian
This question may be out of topic but I was wondering if there is any setting that removes "message-id" header from the incoming emails on the server?
Currently, I am using the following PHP library to receive read emails using IMAP but for some reason the message id is missing from all emails.

It may be an error from the PHP library or in my code, and many other reasons but I would like to know for sure if the server could be the reason so I can exclude it from the list.

Are there any settings that could interfere with the email headers in Plesk?
 
Basically, it's the job of the application that creates the mail to add a valid message-id header. Did you examine the raw headers of your mails? Do you see any "Message-Id:" header in there?
And who is generating those mails? Are you receiving the mails from an external source?
As a quick workaround you can add this to your Postfix main.cf:
always_add_missing_headers = yes

This will instruct Postfix to add missing headers such as Date or Message-ID to incoming messages.
 
Basically, it's the job of the application that creates the mail to add a valid message-id header. Did you examine the raw headers of your mails? Do you see any "Message-Id:" header in there?
And who is generating those mails? Are you receiving the mails from an external source?
As a quick workaround you can add this to your Postfix main.cf:
always_add_missing_headers = yes

This will instruct Postfix to add missing headers such as Date or Message-ID to incoming messages.
I have examined the raw headers using the library mentioned above and its always missing. However, when I examine the email headers through the email client (e.g Gmail, Spark, Outlook) the message id DOES exist.

So my conclusion is that the message id is getting stripped somehow.

I’ve tried sending emails from different services such as gmail, outlook to the domains (server) email address.
 
Back
Top