I have two (virtual) hosts running behind a firewall. One is a webserver, the other a mailserver. The appropriate ports of my single public IPv4 address are forwarded at the firewall to the hosts.
Now I want to automatically obtain letsencrypt certificates for both hosts (for the domains www.my.foo and mail.my.foo). The problem is, that the mailserver is not reachable via port 80 or 443 (since those are forwarded to the webserver) and I am not able to automatically update my DNS settings via some API.
Is there some trick in the ACME protocol to obtain a certificate on the mailserver without manual intervention?