Skip to content

fix(mailer): use noreply@bewelcome.org as From to pass DMARC - #471

Merged
thisismeonmounteverest merged 1 commit into
masterfrom
blackfalconx/fix-contact-form-from-dmarc
Aug 5, 2026
Merged

fix(mailer): use noreply@bewelcome.org as From to pass DMARC#471
thisismeonmounteverest merged 1 commit into
masterfrom
blackfalconx/fix-contact-form-from-dmarc

Conversation

@Neophytis

Copy link
Copy Markdown
Contributor

Contact form submissions from Yahoo/Gmail/Outlook users were silently rejected by Mailcow (score 31+/15) because Rspamd enforces DMARC policy. When Lion relays with From: user@yahoo.fr, SPF and DKIM both fail for yahoo.fr → DMARC p=reject triggers.

Fix: sendFeedbackEmail and sendCommentReportedFeedbackEmail now send with
From: noreply@bewelcome.org (which Lion is authorised to sign) and add
Reply-To: so staff can still reply directly to the user.

Also adds the reporter email to the feedback email body so Znuny can attribute the ticket correctly after the From change.

Adds unit tests covering From/Reply-To headers for both methods.

Contact form submissions from Yahoo/Gmail/Outlook users were silently
rejected by Mailcow (score 31+/15) because Rspamd enforces DMARC policy.
When Lion relays with From: user@yahoo.fr, SPF and DKIM both fail for
yahoo.fr → DMARC p=reject triggers.

Fix: sendFeedbackEmail and sendCommentReportedFeedbackEmail now send with
From: noreply@bewelcome.org (which Lion is authorised to sign) and add
Reply-To: <reporter> so staff can still reply directly to the user.

Also adds the reporter email to the feedback email body so Znuny can
attribute the ticket correctly after the From change.

Adds unit tests covering From/Reply-To headers for both methods.
@thisismeonmounteverest
thisismeonmounteverest merged commit ec31a52 into master Aug 5, 2026
0 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants