The recipient of a catchall address should be able to send from any email that would deliver to it

I have a catchall email address configured on my domain (Stalwart 0.16).

When trying to send from an email address which is not my main account email and not an alias, it rejects the mail when I try to send it, with the message “You are not allowed to send from this address.. Please verify that your email address is correct in your account settings and try again.”

Adding that address as an explicit alias to the main account allows me to send from it.

Overall this is a good thing, and I like that it’s doing this.

But if there’s a catchall address configured, then the account that the catchall is delivering to should be able to send from any address that isn’t assigned to another user. Otherwise I can’t reply to email that came into the catchall with the same address it was sent to.

While it feels like this ought to be automatic, I figured out I can work around this by going to Settings > MTA > AUTH Stage and adding a condition to the Must match Sendersection:

IF authenticated_as == “[email protected]
THEN false

This feature had previously been working with v0.15, and I have used it extensively with nullmailer and sendmail to send failures from my servers. I don’t just want to special case these servers to be able to impersonate anyone from my mail server in case by using sendmail so just blanket allowing them to do so is not the solution.

This feels like a regression from v0.15 to me in which catch-all domains were associated e-mail addresses for the users.