Skip to content

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

@schweigisito

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=<notification@opencloud.test>, size=3079, nrcpt=1 (queue active)

Setup

Latest docker compose stack with configured and enabled notifications service.

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions