-
The caddy certificate integration works well and DMS starts without any problems, but the certificates do not allow proper mail exchange. When testing the certificates I get the following errors:
This is my compose file extract:
My Caddyfile extract is:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
OK - here is the solution. In your Caddyfile replace I dont know why the DMS handbook recoomends |
Beta Was this translation helpful? Give feedback.
-
Thanks for the input. I would assume that the default intention for DMS
users is that they want to use letsencrypr certificates. That's also the
assumption of all the other certificate setup options mentioned in the DMS
handbook. Only Caddy setup instructions create a setup that does not work.
All I am saying is that you can provide a default setup by just removing
the word internal in your suggested Caddy line. The TLS can remain and
Caddy works well now with valid certificates.
…On Sat, 4 Jan 2025, 23:14 Brennan Kinney, ***@***.***> wrote:
I dont know why the DMS handbook recoomends internal but Caddy will only
create a self-sgned internal certificate which is not usable for email
exzchange. Maybe worth updating the DMS handbook here
<https://docker-mailserver.github.io/docker-mailserver/latest/config/security/ssl/#caddy>
image.png (view on web)
<https://github.com/user-attachments/assets/2bebc91c-7cbd-406e-a26a-fca4d3e00e5a>
Please pay attention to the information at the end of that screenshot from
the referenced docs, it clearly explains what tls internal is doing.
It links to the Caddy official docs for more information, but if you're
wanting to use public CA like LetsEncrypt, you should be able to just
remove the tls line and use the default key type and length (*which might
be ECDSA instead of RSA, if so some older mail servers may not support it
and fallback to delivering mail on port 25 without TLS established*).
You can remove the internal part of this directive if you want to set the
key type for this site-address, or you could configure that in your global
Caddy settings instead.
—
Reply to this email directly, view it on GitHub
<#4304 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMNNHGQXFRFVH3IWNESMNIL2JBTOFAVCNFSM6AAAAABUSNNALGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZTGYYTQNI>
.
You are receiving this because you authored the thread.Message ID:
<docker-mailserver/docker-mailserver/repo-discussions/4304/comments/11736185
@github.com>
|
Beta Was this translation helpful? Give feedback.
OK - here is the solution. In your Caddyfile
replace
tls internal {
with
tls {
I dont know why the DMS handbook recoomends
internal
but Caddy will only create a self-sgned internal certificate which is not usable for email exzchange. Maybe worth updating the DMS handbook here