You started with a single Plesk node — web, mail, DNS, MySQL all on one host. It worked for six months. Then you crossed five hundred mailboxes; the same node is now answering DNS for every domain you host, accepting SMTP from the internet, terminating TLS for Apache, and running MySQL for every WordPress install at the same time. A backup of the DB lasts ninety minutes during which mysqldump holds metadata locks that stall sites. A spam wave hits the mail queue and the panel UI starts timing out because Postfix is starving the box. One disk event takes everything down at once: web, mail, DNS, customer self-service. The architecture that worked for one customer does not work for two hundred — not because Plesk can’t, but because nobody split the roles.
What’s happening
A Plesk multi-server topology is the same single panel, just talking to remote services. The web panel node runs plesk + Apache/Nginx and serves the customer UI and the websites. The mail node runs Postfix/Dovecot and is the MX target for every domain. The DNS slave nodes answer authoritative NS queries; the web node remains the hidden primary that Plesk writes zones to. The DB node runs MySQL with remote-access enabled for the Plesk web nodes only, on a private network, with TLS. Plesk knows about all of these through a small number of entries in Tools & Settings → External Databases / Mail Settings / DNS Template and the Tools & Settings → DNS Template → Add Nameservers screen. Each role node is hardened the same way (UFW closed to the public except for the protocol it serves), and the panel node is the only one a customer or reseller ever logs into. The win is not just scale — it’s a blast radius: a mail spam wave saturates the mail node only; a DB upgrade reboots one node, not the panel; a DDoS at ns1.example.com hits a server that is not on the same VLAN as customer data.
How to verify
From the web panel node, every remote service should be reachable on the internal network and unreachable from the public:
# DB node — reachable from web only
nc -zv 10.10.0.20 3306 # OK from web node
nc -zv 203.0.113.20 3306 # connection refused
# Mail node — public 25/465/587/993/995, internal 8443 admin only
nc -zv 10.10.0.30 8443 # OK from web node
nc -zv 203.0.113.30 8443 # connection refused
Plesk should report each remote service as the configured destination:
plesk db -e "SELECT * FROM misc WHERE param IN ('mail_server','dns_master','default_database_server');"
A DNS zone Plesk wrote should be answered by every slave:
for ns in ns1.example.com ns2.example.com ns3.example.com; do
dig @${ns} customer.example.org SOA +short
done
If any slave returns SERVFAIL or a different serial, the AXFR/notify channel is broken — fix the slave’s named.conf or the master’s allow-transfer before more zones are written.
The fix
Run the per-role installer on each node, then wire Plesk on the web node to the remote services. The installers are short — they assume the base hardening from the standalone Plesk install (UFW, fail2ban, SSH key-only) is already in place; we only add the role-specific bits.
DB node (MySQL with remote access for the panel)
#!/usr/bin/env bash
set -euo pipefail
PANEL_IPS=("10.10.0.10") # private IPs of every panel node that talks to this DB
DB_ROOT_PASSWORD="${DB_ROOT_PASSWORD:-$(openssl rand -base64 24)}"
PLESK_DB_USER="${PLESK_DB_USER:-plesk_remote}"
PLESK_DB_PASSWORD="${PLESK_DB_PASSWORD:-$(openssl rand -base64 24)}"
apt-get update && apt-get -y install mysql-server
# Listen on the internal IP only
INTERNAL_IP="$(ip -o -4 addr show | awk '$2 !~ /lo/ && $4 ~ /^10\./ {print $4}' | cut -d/ -f1 | head -n1)"
sed -i "s|^bind-address.*|bind-address = ${INTERNAL_IP}|" /etc/mysql/mysql.conf.d/mysqld.cnf
# Allow only the panel IPs through UFW
ufw allow from "${PANEL_IPS[0]}" to any port 3306 proto tcp
systemctl restart mysql
mysql <<SQL
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY '${DB_ROOT_PASSWORD}';
CREATE USER IF NOT EXISTS '${PLESK_DB_USER}'@'${PANEL_IPS[0]}'
IDENTIFIED WITH caching_sha2_password BY '${PLESK_DB_PASSWORD}';
GRANT ALL PRIVILEGES ON *.* TO '${PLESK_DB_USER}'@'${PANEL_IPS[0]}' WITH GRANT OPTION;
FLUSH PRIVILEGES;
SQL
echo "DB node ready. Connect from panel as ${PLESK_DB_USER}@${INTERNAL_IP}:3306"
echo "Root password (move to secrets manager): ${DB_ROOT_PASSWORD}"
Mail node (Postfix + Dovecot + Plesk mail components only)
Install Plesk on this node using the standalone installer from the previous article, then strip everything that isn’t mail and re-point DNS so the MX records use this node’s public IP. Plesk has a “mail server” role in Tools & Settings → Services Management — disable the panel-side mail server on the web node, and let the mail node accept incoming SMTP.
#!/usr/bin/env bash
set -euo pipefail
# Mail node retains: postfix, dovecot, spamassassin, dkim, rspamd if installed
# Mail node disables: apache, nginx-customer-vhosts, named (DNS), MySQL
for svc in apache2 nginx named mariadb mysql; do
systemctl disable --now "${svc}" 2>/dev/null || true
done
# Public mail ports only
ufw --force reset
ufw default deny incoming
ufw default allow outgoing
ufw allow 22/tcp
ufw allow 8443/tcp from 10.10.0.0/16 # panel admin from internal network only
ufw allow 25/tcp
ufw allow 465/tcp
ufw allow 587/tcp
ufw allow 110/tcp
ufw allow 995/tcp
ufw allow 143/tcp
ufw allow 993/tcp
ufw --force enable
# Postfix must accept relay from the panel node only on submission
postconf -e "mynetworks = 127.0.0.0/8 10.10.0.0/16"
postconf -e "smtpd_helo_required = yes"
postconf -e "smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination"
systemctl reload postfix
# Verify
ss -lntp | grep -E ':(25|465|587|110|143|993|995)\b'
NS slave node (BIND / named with AXFR from the panel)
A Plesk-managed master uses BIND on the web panel node. Each slave node is a plain BIND install configured to slave every zone, and Plesk is told about it via the DNS template.
#!/usr/bin/env bash
set -euo pipefail
PANEL_MASTER_IP="${PANEL_MASTER_IP:-10.10.0.10}"
THIS_NS_NAME="${THIS_NS_NAME:-ns2.example.com}"
apt-get update && apt-get -y install bind9 bind9-utils
cat > /etc/bind/named.conf.options <<EOF
options {
directory "/var/cache/bind";
recursion no;
allow-query { any; };
allow-transfer { ${PANEL_MASTER_IP}; };
listen-on { any; };
listen-on-v6 { any; };
dnssec-validation auto;
version "Custom";
};
EOF
# Slave zones are pushed via the Plesk side as "additional nameserver"
# This file is appended to by Plesk via TSIG/secret as it provisions
cat > /etc/bind/named.conf.local <<'EOF'
// Plesk-managed slave zones land here.
// Initial bootstrap is empty; Plesk pushes the include after first zone.
EOF
ufw allow 53/tcp
ufw allow 53/udp
ufw allow from "${PANEL_MASTER_IP}" to any port 953 proto tcp # rndc
named-checkconf
systemctl enable --now named
systemctl reload named
echo "NS slave ready. From the panel: Tools & Settings -> DNS Template -> Add Nameserver"
echo " Nameserver: ${THIS_NS_NAME}"
echo " Allow AXFR from ${PANEL_MASTER_IP}"
Wiring the web panel node
On the web panel node, after running the standalone installer:
# Point Plesk at the remote DB node
plesk bin database_server --add \
-host 10.10.0.20 \
-port 3306 \
-admin "${PLESK_DB_USER}" \
-admin-passwd "${PLESK_DB_PASSWORD}" \
-default true \
-type mysql
# Confirm the remote DB is now the default
plesk bin database_server --info
# Configure the mail node as a remote mail server entry
# (Plesk treats the mail node like a Plesk "additional node" if you also installed Plesk there;
# otherwise, point MX at the mail node's public IP and use Plesk Mail Services -> Use IMAP/POP3 on remote)
plesk bin mailserver --set-default-mailserver "qmail-or-postfix"
plesk bin mailserver --set-relay-host 10.10.0.30
# Add the slave NS entries to the default DNS template
plesk bin server_dns --add \
-ns "ns2.example.com"
plesk bin server_dns --add \
-ns "ns3.example.com"
# Validate
plesk bin server_dns --info
After the wiring is done, create a single test domain in Plesk and watch it propagate:
plesk bin domain --create test.example.org -hosting true -ip 10.10.0.10
# Zone should appear in BIND on ns2 and ns3 within seconds via NOTIFY
for ns in ns2.example.com ns3.example.com; do
dig @${ns} test.example.org SOA +short
done
# The customer DB lives on the DB node
mysql -h 10.10.0.20 -u "${PLESK_DB_USER}" -p"${PLESK_DB_PASSWORD}" \
-e "SHOW DATABASES LIKE 'test_example_org%'"
# MX records resolve to the mail node
dig MX test.example.org +short
If any of those four checks fail, fix the role that failed before scaling. The most common failure is the slave NS not getting AXFR — the panel master has to explicitly allow-transfer to the slave’s IP, and the slave has to listen-on for NOTIFY from the master. Both ends or the zones drift.
Running this many roles is what Stack Harbor’s environment management plane is built for — per-role patching windows, replication-aware backups, and on-call coverage spanning panel + mail + DNS + DB at once. Map the topology with us if you’d like a second pair of eyes on the split before you cut traffic over.