I would like to install a Chatmail server under a reverse proxy, but I am having problems with the certificate.
My reverse proxy is already forwading traffic to my other backend servers, so I cannot directly stream port 80 and 443 towards the chatmail server in order to let Chatmail handle its own certificates.
I guess one solution would be to make the reverse proxy manage Chatmail’s certificates.
Would that be a problem?
Is there anything at cmdeploy I could easily modify -without breaking anything- so that Chatmail forgets about certificates and everything works ok?
I am using Nginx Proxy Manager. I created a Proxy Host (http/80) with the three hostnames mychatmail.mydomain.tld, mta-sts.mychatmail.mydomain.tld and www.mychatmail.mydomain.tld and then, on the advanced tab I added:
My previous post only solved passing the scripts/cmdeploy run but when I ran scripts/cmdeploy test I got errors.
So, the final solution was a proxy host https/443 for domain names mychatmail.mydomain.tld, mta-sts.mychatmail.mydomain.tld and www.mychatmail.mydomain.tld, letting NPM request letsencrypt certificate and adding the following custom configuration on the Advanced tab: