-
I have a setup with multiple catchall domains for receiving mails and I want to allow clients to send mail from any address within their domains. An added complication is that I have a spamtrap subdomain set up. Let's say the domains are
I'm unsure how to fix this. I looked through the documentation at the different SMTP Inbound stages and Sieve Filters, but didn't find anything that looks obvious. Can someone give me pointers please? I should add: Looking at the relevant code https://github.com/stalwartlabs/mail-server/blob/5885eaf3f8ce6e2cb330d3c9f3ab338e76968f8e/crates/smtp/src/inbound/mail.rs#L115 I don't see an obvious way to customize this either. Best I could do is disable the "auth_match_sender" option, but that feels like overshooting. And according to the documentation of that option, it seems that it should match anyway because the sending user is trying to send It appears to come down to https://github.com/stalwartlabs/mail-server/blob/5885eaf3f8ce6e2cb330d3c9f3ab338e76968f8e/crates/smtp/src/inbound/mail.rs#L112C20-L112C76 not matching catchall addresses, as they are not contained but need to be matched ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
There is no need to disable |
Beta Was this translation helpful? Give feedback.
I've just pushed a commit that allows catch-all accounts to send e-mails from any address in the domain. This should fix the issue you're having I believe.
Not at the moment but there are plans to add a test environment to the webadmin.