Using Discourse in private VPN: What about email?

That depends on the email server. Let’s suppose you will use a mail service as MailGun, SendGrid, etc. They usually authenticate by an API like URL plus user/password.

There, meanwhile the server can reach outside IPs (only incoming filtering) you shouldn’t have an issue connecting to the mail service.

Specially if the domain resolves to the correct IP.

You’d wouldn’t even need to open the ports for the installation. Because you can reach the domain example.com with the VPN if you have the domain pointing to the private IP when using the VPN Tunnel.

I’m not so sure if Discourse will only use relative URLs, almost certain it won’t. But you change the DNS records in the domain, in such a way you have two A records, one (the first one) pointing to the 10.0.0.1 address, and a second one pointing to the 8.7.6.5 public IP. That might be tricky sometimes when resolving the addresses and cache, and stuff, but you could try.