Email - Message Id

1 - About

A Message-ID is an email identifier. It is generated by the client sending the mail and added in the Message-ID header

3 - Structure

An message id is generally the concatenation of:

  • a timestamp
  • the local hostname of the sender

4 - Example

Examples of two differents message id header

4.1 - Postfix

Generated by postfix


Message-ID: <[email protected]>

This id seems to follow the algorithm describe in Recommendations for generating Message IDs where:

  • 20200612190818 is the current (wall-clock) time in the highest resolution to which you have access (most systems can give it to you in milliseconds, but seconds will do)
  • 3E16E1FBE8 comes from:
    • the random generation of 64 bits (for postfix, 60, 4 bits for one character)
    • encoded to base 36 characters (0-9 and A-Z)

4.2 - Javax Mail

Generated by Javax Mail


Message-ID: <[email protected]>
Message-ID: <hashcode>.<id>.<currentTime>@<hostname>

where:

  • hashcode is the hash code of the new java object created to build the id
  • id is a global ID (incremented on every use)
  • currentTime is the current time (in milliseconds)
  • hostname is the host name where the program is running

5 - Management

5.1 - See

6 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap