-
Hi all, I'm new to Stalwart and am really enjoying it so far while I work to set it up as a replacement for my current Postfix/Dovecot cluster. The current cluster hosts email accounts for many different domains, and Postfix is configured with individual TLS certificates (issued by Let's Encrypt) for each domain, by way of the tls_server_sni_maps option in main.cf. Does Stalwart have a similar feature? I noticed the web UI lets you add multiple certificates but, at least when using the internal directory, there doesn't seem to be a way to designate that a specific certificate is for a specific domain you've already created in the directory. I also know you can use the file macro to retrieve certificate contents from a text file, but I'm unsure how to specify a separate certificate file for each domain, especially in a dynamic fashion (i.e. where the domain name is part of the certificate filename); the docs only give the example of using one certificate file that I assume covers multiple domains. Ideally, I'm looking for a way to do the following:
Is this possible? I appreciate in advance any insights provided. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Each certificate contains information about which domains it's valid for, so Stalwart can automatically select the correct certificate without any manual mapping. Also, TLS configuration is not related to domains from the directory. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info. If that is the case, how would one add multiple certificates (one per domain) to the configuration file? The [example in the docs](https://stalw.art/docs/server/tls/certificates/#configuration) only shows one cert, the default used for the entire instance. Better yet, are there API endpoints for managing certificates? The [API docs](https://stalw.art/docs/api/management/endpoints) don’t seem to mention this functionality.
|
Beta Was this translation helpful? Give feedback.
Just duplicate it as many times as needed, remembering to change the certificate id/name
Since certificates are settings, /api/settings is used to manage them