I would appreciate a setting to either turn off the OutboundPolicy::PublicOnly policy or be able to configure an allowlist of hostnames and/or IP addresses for push subscription URLs.
I am hosting Stalwart and ihasmail on the same machine, reachable only via internal addresses. Ever since Stalwart 1.x, push notifications have OutboundPolicy::PublicOnly, which means ihasmail can no longer register itself as a push subscription, as the logs show:
DEBUG Push subscription error (push-subscription.error) details = "HTTP POST failed", url = "https://mail.example.com/api/push/G2O6l807imNRE1hE83PRoNXBhH7uIzhEkzp06xootSM", reason = "error sending request for url (https://mail.example.com/api/push/G2O6l807imNRE1hE83PRoNXBhH7uIzhEkzp06xootSM): client error (Connect): dns error: error resolving DNS: Destination is a local or reserved IP address"
Posting a feature idea here was recommended in OutboundPolicy for notifications is hard-coded to `OutboundPolicy::PublicOnly`
Thanks!