Skip to content

BUG: Replying to a mailing list uses the list's address as the SMTP MAIL FROM (Causes 554 Error) #1274

@OverStyleFR

Description

@OverStyleFR

Describe the bug

Description :
When replying to an email received from a distribution/mailing list, Matcha incorrectly sets the SMTP envelope sender (MAIL FROM) to the address of the mailing list, rather than the configured email address of the user's account.

This causes the outgoing SMTP server (e.g., Postfix) to reject the message with a 554 error, as the user is not authenticated/authorized to send emails on behalf of the mailing list domain.

Actual Behavior :

Matcha attempts to send the email using the mailing list's address as the MAIL FROM. The SMTP server rejects the transaction.

Error from the logs:
2026/05/11 11:49:00 Failed to send email: 554 Transaction failed. Please report this error to your system administrator (223E)

To reproduce

  1. Receive an email sent via a mailing list or distribution list.
  2. Click "Reply" to answer the email.
  3. Send the email.
  4. The email fails to send, and an error is logged.

Expected behavior

When composing any reply, Matcha should strictly force the SMTP MAIL FROM (envelope sender) to match the user's configured account email address, regardless of the Return-Path, Sender, or From headers of the original incoming email.

Screenshots

Image

Matcha version

0.37.0

Go version

1.25.9

OS

Linux

OS version

Fedora 43

Architecture

amd64 (x86_64)

Terminal

Kitty

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch/amd64amd64 / x86_64area/senderSMTP send pathbugSomething isn't workingneeds-triageAwaiting maintainer reviewos/linuxLinux-specific

    Type

    No type

    Projects

    Status

    In review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions