# caddy won't actually handle mail (in terms of reverse proxy, etc), it's simply here so caddy can generate certificates for us # that will be reused for the mailserver # we use a daily cronjob to copy the certificates to the proper location because by default they're stored somewhere else # that literally Nobody (except root) but caddy can access mx1.synth.download { # Optional, can be useful for troubleshooting # connection to Caddy with correct certificate: respond "Hello DMS" } # mta-sts stuff mta-sts.synth.download { root * /var/www/mta-sts file_server import common-settings import log mta-sts import robots-txt }