# Chatmail deploy problem: port 53 \[is occupied by: systemd-resolve, named\]

**URL:** <https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269>\
**Category:** Chatmail Relays\
**Created:** [October 29, 2025, 4:41pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269 "2025-10-29T16:41:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![e1i0asfmd](https://forum.delta.chat/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@e1i0asfmd](https://forum.delta.chat/u/e1i0asfmd)\
**Post date:** [October 29, 2025, 4:41pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/1 "2025-10-29T16:41:35Z")

</div>

Hello,

I am trying to deploy my own chatmail instance, but I am stuck because of port 53 being unavailable:

```auto
[$ pyinfra --ssh-user root test.com /Users/test/relay/cmdeploy/src/cmdeploy/deploy.py -y]

--> Loading config...

--> Loading inventory...

--> Connecting to hosts...

[**test.com**] Connected

--> Preparing operation files...

Loading: **/Users/test/relay/cmdeploy/src/cmdeploy/deploy.py**

Checking if port 25 is available for ['master', 'smtpd']...

Checking if port 53 is available for unbound...

Deploy failed: port 53 is occupied by: systemd-resolve

--> Disconnecting from hosts...

Deploy failed

```

Any ideas how to fix this? Many thanks! 🙂

---

<div class="post-metadata">

**Author:** ![alxndr](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@alxndr](https://forum.delta.chat/u/alxndr)\
**Post date:** [October 29, 2025, 8:40pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/2 "2025-10-29T20:40:13Z")

</div>

You can disable the resolver by running `systemctl stop systemd-resolved`, `systemctl disable systemd-resolved`, and replacing the symlink at `/etc/resolv.conf` with a regular file containing some `nameserver` statements. If you want to keep using the same nameservers, check the output of `resolvectl` before doing all of that.

The deployment process always adds `9.9.9.9` to `resolv.conf`, IIRC.

---

<div class="post-metadata">

**Author:** ![alxndr](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@alxndr](https://forum.delta.chat/u/alxndr)\
**Post date:** [November 2, 2025, 2:22pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/3 "2025-11-02T14:22:44Z")

</div>

One thing to look out for: on my installation (Ubuntu 24.04), the deployment script installed Unbound, but `resolv.conf` remained unchanged. So it might be a good idea to make sure that `resolv.conf` points to `127.0.0.1` after successful deployment.

---

<div class="post-metadata">

**Author:** ![titi](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@titi](https://forum.delta.chat/u/titi)\
**Post date:** [December 11, 2025, 4:56pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/4 "2025-12-11T16:56:54Z")

</div>

Hi, I have the same problem.

`Deploy failed: port 53 is occupied by: systemd-resolve`

But the suggested solution does not work for me. Look what I have here:

```auto
root@chatmail:~# systemctl status systemd-resolved
Unit systemd-resolved.service could not be found.

```

What should I do?

Thank you

---

<div class="post-metadata">

**Author:** ![alxndr](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@alxndr](https://forum.delta.chat/u/alxndr)\
**Post date:** [December 17, 2025, 9:53pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/5 "2025-12-17T21:53:18Z")

</div>

Odd. What does `netstat -lnpt` or `ss -lnpt` say is listening on local port 53?

---

<div class="post-metadata">

**Author:** ![titi](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@titi](https://forum.delta.chat/u/titi)\
**Post date:** [December 18, 2025, 10:25am UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/6 "2025-12-18T10:25:59Z")

</div>

Hey, thank you @alxndr for your message. The thing is that problem disappeared and did not manage to know why, I was troubleshooting different things.

Sorry, I should have mentioned it here.

---

<div class="post-metadata">

**Author:** ![lol](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/5daacb/32.png) [@lol](https://forum.delta.chat/u/lol)\
**Post date:** [April 5, 2026, 4:21pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/7 "2026-04-05T16:21:14Z")

</div>

Hi, sorry for reviving. I seem to be stuck at the same point of deployment as @titi ,

different error msg thou

```auto
Checking if port 53 is available for unbound...
Deploy failed: port 53 is occupied by: named

```

here comes desired output

```auto
$ ss -lnpt | grep :53
LISTEN 0 10 10.169.10.1:53 0.0.0.0:*                                           
LISTEN 0 10 10.169.10.1:53 0.0.0.0:*                                           
LISTEN 0 10 172.20.0.1:53 0.0.0.0:*                                           
LISTEN 0 10 172.20.0.1:53 0.0.0.0:*                                           
LISTEN 0 10 10.7.0.1:53 0.0.0.0:*                                           
LISTEN 0 10 10.7.0.1:53 0.0.0.0:*                                           
LISTEN 0 10 152.66.129.211:53 0.0.0.0:*                                           
LISTEN 0 10 152.66.129.211:53 0.0.0.0:*                                           
LISTEN 0 10 172.21.0.1:53 0.0.0.0:*                                           
LISTEN 0 10 172.21.0.1:53 0.0.0.0:*                                           
LISTEN 0 10 127.0.0.1:53 0.0.0.0:*                                           
LISTEN 0 10 127.0.0.1:53 0.0.0.0:*                                           
LISTEN 0 10 [2a01:4f9:1d17:7ae2::1]:53 [::]:*                                           
LISTEN 0 10 [2a01:4f9:1d17:7ae2::1]:53 [::]:*                                           
LISTEN 0 10 [::1]:53 [::]:*                                           
LISTEN 0 10 [::1]:53 [::]:*                                           
LISTEN 0 10 [fe80::f2fa:c8df:fedb:d72d]%docker0:53 [::]:*                                           
LISTEN 0 10 [fe80::f2fa:c8df:fedb:d72d]%docker0:53 [::]:*                                           
LISTEN 0 10 [fddd:2c4:2c4:2c4::1]:53 [::]:*                                           
LISTEN 0 10 [fddd:2c4:2c4:2c4::1]:53 [::]:*                                           
LISTEN 0 10 [fe80::9400:ff:fe10:682f]%eth0:53 [::]:*                                           
LISTEN 0 10 [fe80::9400:ff:fe10:682f]%eth0:53 [::]:*                                           
LISTEN 0 10 [fe80::38f1:91ff:fe65:d2fc]%br-fe89270caa35:53 [::]:*                                           
LISTEN 0 10 [fe80::38f1:91ff:fe65:d2fc]%br-fe89270caa35:53 [::]:*                                           
LISTEN 0 10 [fe80::ba2a:8d4:833:b071]%tun0:53 [::]:*                                           
LISTEN 0 10 [fe80::ba2a:8d4:833:b071]%tun0:53 [::]:*

```

---

<div class="post-metadata">

**Author:** ![alxndr](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@alxndr](https://forum.delta.chat/u/alxndr)\
**Post date:** [April 5, 2026, 5:07pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/8 "2026-04-05T17:07:29Z")

</div>

I don’t see process names in your output, but `named` sounds like you have `bind9` running. If this server is hosting other services, it might not be a good idea to run the Chatmail installer on it.

---

<div class="post-metadata">

**Author:** ![lol](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/5daacb/32.png) [@lol](https://forum.delta.chat/u/lol)\
**Post date:** [April 5, 2026, 5:13pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/9 "2026-04-05T17:13:19Z")

</div>

yeah it’s `bind9`. thanks for bothering!

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:41pm UTC](https://forum.delta.chat/t/chatmail-deploy-problem-port-53-is-occupied-by-systemd-resolve-named/4269/10 "2026-10-06T15:41:18Z")

</div>


