# An admin setting or allow-list for internal push targets

**URL:** https://support.stalw.art/t/an-admin-setting-or-allow-list-for-internal-push-targets/2368
**Category:** Feature Ideas
**Created:** [November 14, 2026, 8:22pm UTC](https://support.stalw.art/t/an-admin-setting-or-allow-list-for-internal-push-targets/2368 "2026-11-14T20:22:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oli\_is\_cool](https://support.stalw.art/letter_avatar_proxy/v4/letter/o/ce73a5/32.png) [@oli\_is\_cool](https://support.stalw.art/u/oli_is_cool)
#### Post date: [November 14, 2026, 8:22pm UTC](https://support.stalw.art/t/an-admin-setting-or-allow-list-for-internal-push-targets/2368/1 "2026-11-14T20:22:10Z")

</div>

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:

```plaintext
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`](https://support.stalw.art/t/outboundpolicy-for-notifications-is-hard-coded-to-outboundpolicy-publiconly/2151)

Thanks!
