Issue Description
Stalwart lets anything to be typed as the sender e-mail. Like for example when I am composing an e-mail, overriding the sender identity and typing in something like [email protected], Stalwart will accept this and send the mail without a problem. But of course the receiver receives it right into the spam/junk directory because of obvious reasons.
Expected Behavior
Stalwart should block users from using unauthorized addresses.
Actual Behavior
In the mean time, when a user is a member of a mailing list, and the user tries to use that mailing list address as their sender address (by overriding the sender address, just as I described in the above example), the receiver servers return:
host ‘mx.yandex.net’ rejected command ‘DATA’ with code 550 (5.7.1) 'Email rejected per DMARC policy for example.com
OR:
host ‘gmail-smtp-in.l.google.com’ rejected command ‘BDAT 1288 LAST’ with code 550 (5.7.26) 'Unauthenticated email from example.com is not accepted due to domain’s DMARC policy. Please contact the administrator of example.com domain if this was a legitimate mail.
BUT, when the very same user receives a message that is sent to the mailing list, then the user can reply to that message and for example Bulwark automatically overrides the user identity to use the mailing list address as the sender; and it is then sent.
The receiver this time receives the message legitimately and doesn’t complain about dmarc policy; although both situations have overridden the sender address with the mailing list address. When I check the original message, I can see the user identity in the headers (that’s why they don’t complain about the dmarc policy this time because the user is present and they are authorized now); but the mail clients like Google and Yandex does not indicate that the message is actually sent by the user on behalf of the mailing list; rather they show the mailing list as the sender.
I think this should be addressed so that the receiving party would know who from the mailing list actually replied. Otherwise they don’t know who replied their message.
Stalwart Version
v0.16.x
Installation Method
Binary (Linux)
Database Backend
PostgreSQL
Blob Storage
PostgreSQL
Search Engine
PostgreSQL
Directory Backend
Internal
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on