# Multiple PostgrSQL IPs

**URL:** https://support.stalw.art/t/multiple-postgrsql-ips/946
**Category:** Questions
**Created:** [July 5, 2026, 2:35pm UTC](https://support.stalw.art/t/multiple-postgrsql-ips/946 "2026-07-05T14:35:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Lukas\_Hagen](https://support.stalw.art/user_avatar/support.stalw.art/lukas_hagen/32/211_2.png) [@Lukas\_Hagen](https://support.stalw.art/u/Lukas_Hagen)
#### Post date: [July 5, 2026, 2:35pm UTC](https://support.stalw.art/t/multiple-postgrsql-ips/946/1 "2026-07-05T14:35:48Z")

</div>

### Your question

Hi Team,

Can Stalwart handle multiple IP addresses for a PostgreSQL Cluster?

Kind regards

---

<div class="post-metadata">

### Author: ![helpbot](https://support.stalw.art/user_avatar/support.stalw.art/helpbot/32/13_2.png) [@helpbot](https://support.stalw.art/u/helpbot)
#### Post date: [July 5, 2026, 2:36pm UTC](https://support.stalw.art/t/multiple-postgrsql-ips/946/2 "2026-07-05T14:36:10Z")

</div>

The `host` field on the PostgreSQL DataStore accepts a single hostname or IP, but Stalwart does support connecting to multiple PostgreSQL instances through **read replicas** (Enterprise Edition only). You configure a primary `host` for writes, and add a `readReplicas` list with additional host/port/database/credentials for each replica, and Stalwart will distribute reads across them.

If your goal is instead pointing at a PostgreSQL cluster behind a virtual/floating IP (e.g. Patroni + HAProxy/pgpool), that’s typically handled outside Stalwart at the network/proxy layer rather than by listing multiple IPs directly in the `host` field, since only one `host` value is accepted per connection entry.

More detail here: [PostgreSQL | Stalwart](https://stalw.art/docs/storage/backends/postgresql#read-replicas)

_This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong._
