make it possible to serve https on a different port than 443 through configuration

so you can run mox on openbsd with port redirects in pf.conf.

in the future, starting as root, binding the sockets, and passing the bound
sockets to a new unprivileged process should be implemented, but this should
get openbsd users going.

from discussion with mteege
This commit is contained in:
Mechiel Lukkien
2023-02-18 16:53:06 +01:00
parent a289a3e771
commit cc3a2c9bc8
3 changed files with 29 additions and 8 deletions

View File

@ -66,6 +66,12 @@ describe-static" and "mox config describe-domains":
# in such notification emails not arriving.
ContactEmail:
# TLS port for ACME validation, 443 by default. You should only override this if
# you cannot listen on port 443 directly. ACME will make requests to port 443, so
# you'll have to add an external mechanism to get the connection here, e.g. by
# configuring port forwarding. (optional)
Port: 0
# File containing hash of admin password, for authentication in the web admin
# pages (if enabled). (optional)
AdminPasswordFile:
@ -228,11 +234,23 @@ describe-static" and "mox config describe-domains":
AutoconfigHTTPS:
Enabled: false
# Serve MTA-STS policies describing SMTP TLS requirements, will use port 443.
# Requires a TLS config. (optional)
# TLS port, 443 by default. You should only override this if you cannot listen on
# port 443 directly. Autoconfig requests will be made to port 443, so you'll have
# to add an external mechanism to get the connection here, e.g. by configuring
# port forwarding. (optional)
Port: 0
# Serve MTA-STS policies describing SMTP TLS requirements. Requires a TLS config.
# (optional)
MTASTSHTTPS:
Enabled: false
# TLS port, 443 by default. You should only override this if you cannot listen on
# port 443 directly. MTA-STS requests will be made to port 443, so you'll have to
# add an external mechanism to get the connection here, e.g. by configuring port
# forwarding. (optional)
Port: 0
# Destination for emails delivered to postmaster address.
Postmaster:
Account: