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
- Receive an email sent via a mailing list or distribution list.
- Click "Reply" to answer the email.
- Send the email.
- 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
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
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
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 theReturn-Path,Sender, orFromheaders of the original incoming email.Screenshots
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