foxcpp / maddy

✉️ Composable all-in-one mail server.
https://maddy.email
GNU General Public License v3.0
5.13k stars 249 forks source link

Accept self-signed local certificates for local LDAP or database communication #709

Open chlarsen opened 5 months ago

chlarsen commented 5 months ago

Use case

I am running Maddy inside a FreeBSD 14.1 jail, with other mails (one the same physical server serving PostgreSQL and OpenLDAP. The communication between those jails should be encrypted, using locally produced certificated and a local certificate authority. As the latter cannot be verified via the Internet, Go routinely complains, and a "accept_insecure_certs" or something similar has to be added (as seen on Grafana, etc). Maddy does not yet have this switch to accept "insecure" certificates.

The workaround is to disable encryption, which is not really desirable.

Your idea for a solution

Simple add a toggle to the tls_client settings to accept "insecure" certfificates, as seen with other Go applications.