Hi Bob,
Yes, that works in the free (community) edition, and you don’t need any Enterprise feature for it.
Stalwart checks the envelope sender of authenticated mail, the address your client gives in MAIL FROM, against the addresses of your account. That check is the mustMatchSender setting and it’s on by default. Thunderbird uses the address you type in the From field as the envelope sender, so with the default a made-up address like [email protected] would be refused with 501 5.5.4 You are not allowed to send from this address.
Since you’re the only user, you can turn the check off for your own account and domain. mustMatchSender is an expression, so something like this (with your account name and domain) does it:
{
"match": {
"0": {"if": "authenticated_as == '[email protected]' && sender_domain == 'example.org'", "then": "false"}
},
"else": "true"
}
Anyone else who logs in still gets the normal check. DKIM is not affected: outgoing mail is signed with the keys of the sender’s domain whatever the part before the @ is, so those messages are signed like any other. Together with a catch-all address on the domain, replies to those invented addresses land in your mailbox too.