mjl- / mox

modern full-featured open source secure mail server for low-maintenance self-hosted email
https://www.xmox.nl
MIT License
3.36k stars 89 forks source link

What's the default domain in an account for? #142

Closed tabatinga0xffff closed 3 months ago

tabatinga0xffff commented 3 months ago

What's it for?

And how to update or change one, when there're multiple ones in an account? I haven't found any property in neither the mox.conf, nor in domains.conf, nor in the UI

Regarding "catchall" -- is the default domain the one that'll receive "catchall" incoming emails for an account and thus for all "catchall" domains in it? Or will "catchall" incoming emails be delivered or forwarded only the corresponing domain and none other?

mjl- commented 3 months ago

hi @tabatinga0xffff, this corresponds to the "Domain" in an "Account", see https://www.xmox.nl/config/#cfg-domains-conf-Accounts-x-Domain. It is marked deprecated: It used to be combined with the configured addresses for an account in Destinations: If there was no "@", the destination would be only a "localpart", and would be combined with the default domain when parsing the config to form the full address. Since quite some releases such destinations are full addresses. However, mox doesn't automatically rewrite the config, and removing this field may break some configs (unlikely, but possible), so I haven't removed it yet.

The default domain also still has some use. It is selected as domain when you're adding a new address to an account, see screenshot. The default domain is set for an account when is created, it is set to the domain name of the email address that the account is created with.

mox-default-domain

I'll remove the mention of the default domain. It's too prominent, you can't currently edit it through the admin interface. It seems fine to just leave it as the domain the account was initially created with.