Skip to content

Notification email doesn't contain Message-Id header #1698

Description

@schweigisito

Describe the bug

Mail notifications don't have a Message-Id header. Although RFC 5322 doesn't say there MUST be a Message-Id, there are several reasons why an email should have a unique identifier, which is essential for

  • tracking message threads and conversations
  • detecting duplicate messages
  • creating proper reply chains (along with In-Reply-To and References headers)
  • debugging mail delivery issues
  • proper spam detection systems

Steps to reproduce

  1. Enable mail notifications on OC instance
  2. Share file with user
  3. Mail notification is sent

Expected behaviour

  • an email containing a Message-Id header.

Actual behaviour

  • Mail doesn't have a Message-Id header
  • receiving MTA also logs
Oct 23 16:33:17 mail postfix/smtpd[3264004]: 45B42856898: client=unknown[172.18.0.4], sasl_method=PLAIN, sasl_username=relay
Oct 23 16:33:17 mail postfix/cleanup[3264026]: 45B42856898: message-id=<>
Oct 23 16:33:17 mail postfix/qmgr[107384]: 45B42856898: from=<[email protected]>, size=3079, nrcpt=1 (queue active)

Setup

Latest docker compose stack with configured and enabled notifications service.

Activity

  1. added theissue type on Oct 23, 2025
  2. self-assigned this
    on Oct 23, 2025
  3. added a commit that references this issue on Oct 23, 2025
    5d39f1b
  4. schweigisito commented on Oct 23, 2025

    @schweigisito
    MemberAuthor

    This fix adds a Message-Id header to outgoing notification mails, e.g.:

    Subject: Admin shared 'New file.txt' with you
    Message-Id: <[email protected]>
    Content-Type: multipart/alternative;
     boundary=ea061767579b269ff770f377117963c089f13b12d6d469257f52a8a4ff5d
    Date: Thu, 23 Oct 2025 18:53:45 +0000
    MIME-Version: 1.0
    From: "Admin via" <[email protected]>
    

    And the MTA logs:

    Oct 23 20:53:45 mail postfix/cleanup[2308403]: D413784199A: message-id=<[email protected]>
    
  5. changed the title [-]Notification email doesn't contain Message-ID header[/-] [+]Notification email doesn't contain Message-Id header[/+] on Oct 23, 2025
  6. moved this from Qualification to In Progress in OpenCloud Team Boardon Oct 23, 2025
  7. added a commit that references this issue on Oct 27, 2025
    e7a4cba
  8. added a commit that references this issue on Oct 27, 2025
    10e7776
  9. added 2 commits that reference this issue on Oct 13, 2026
    d653d73
    d96f72c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions