Bug 57953 - Self-service emails rejected by Gmail
Summary: Self-service emails rejected by Gmail
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: Self Service
Version: UCS 5.0
Hardware: Other Mac OS X 10.1
: P5 normal
Target Milestone: UCS 5.0-9-errata
Assignee: Christian Castens
QA Contact: Ole Schwiegert
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on: 57512
Blocks:
  Show dependency treegraph
 
Reported: 2025-02-12 08:49 CET by Christian Castens
Modified: 2025-02-12 12:20 CET (History)
7 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.257
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2025-02-12 08:49:14 CET
+++ This bug was initially created as a clone of Bug #57512 +++

The emails generated by the self-service (maybe elsewhere, too) are rejected by Gmail's SMTP servers for lack of a proper `Message-Id` in their header:

> Aug 13 12:14:03 postfix postfix/smtp[1252]: 4AB65C466981: to=<xxxx-value-removed-xxxx@gmail.com>, relay=gmail-smtp-in.l.google.com[142.250.147.27]:25, delay=1.5, delays=0.35/0.34/0.29/0.52, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[142.250.147.27] said: 550-5.7.1 [194.76.91.97] Messages missing a valid Message-ID header are not 550-5.7.1 accepted. For more information, go to 550-5.7.1  https://support.google.com/mail/?p=RfcMessageNonCompliant and review 550 5.7.1 RFC 5322 specifications. a640c23a62f3a-a80f3fa7d31si92176566b.238 - gsmtp (in reply to end of DATA command))

It might be necessary to generate a message-id for outgoing messages, e.g. using a helper function from Python: https://docs.python.org/3/library/email.utils.html#email.utils.make_msgid


This bug was reported by Johannes Bornhold on behalf of a customer.
Comment 1 Christian Castens univentionstaff 2025-02-12 08:58:46 CET
cloned #57512 to be able to release the changes in 5.0errata and 5.2errata

UCS 5.0
univention-self-service (5.0.11-3)
19e95a97cfa4 | Bug #57512: add Message-ID header to emails sent via Self Service

univention-self-service.yaml
e53793cc1343 | Bug #57953: add Message-ID header to emails sent via Self Service