# Error when deploying an email relay server

**URL:** <https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026>\
**Category:** Chatmail Relays\
**Tags:** chatmail\
**Created:** [August 18, 2025, 6:53pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026 "2025-08-18T18:53:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 18, 2025, 6:53pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/1 "2025-08-18T18:53:35Z")

</div>

## ![Снимок экрана 2025-08-18 203951](https://support.delta.chat/uploads/default/original/2X/e/e9257b5e766885a523f773dc57965aadee73cd45.png) Good day to all! On the final command “scripts/cmdeploy run” I get this error. Tell me how to fix it so that the installation continues?

Ubuntu 24.03  
Ssh-key ed25519 with a passphrase for the key

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [August 18, 2025, 6:54pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/2 "2025-08-18T18:54:39Z")

</div>

If you don’t want to remove passphrase from the key, use ssh-agent and add the key to ssh-agent before deploying using `ssh-add`.

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 20, 2025, 11:15am UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/3 "2025-08-20T11:15:22Z")

</div>

![Снимок экрана 2025-08-20 131327](https://support.delta.chat/uploads/default/original/2X/8/8be971fabc95787ed4f59a2e05a848b3b4023ed2.png)  
I’ve figured out the ssh key. However, I’m still unable to execute the “scripts/cmdeploy run” command, and my DNS records are resolving properly. UFW is not active. I suspect that my test VPS from Russia is unable to access the Delta Chat frontend, correct? Additionally, I’d like to know how Delta Chat relay is handling the blockages in Russia. I would appreciate your response.

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [August 20, 2025, 12:27pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/4 "2025-08-20T12:27:03Z")

</div>

Red line in your log “Can’t install unbound …” says that standart chatmail installation wants it’s own DNS server (unbound).  
Try to disable DNS server from your Linux distro with  
`systemctl stop systemd-resolve`  
`systemctl disable systemd-resolve`  
`systemctl mask systemd-resolve`  
and repeat install process.

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 24, 2025, 6:51pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/5 "2025-08-24T18:51:08Z")

</div>

![Снимок экрана 2025-08-24 140655](https://support.delta.chat/uploads/default/original/2X/b/b63b0f4269eb8f0942713d7fe4f629c809a9465e.png)  
Thanks to everyone for their help, I think I’ve figured everything out and launched “Chatmail relays” for testing. However, there are still a few questions (marked in the screenshots), is that normal?  
1.When checking “scripts/cmdeploy dns”, it complains about letsencrypt, but the nginx certificate is present, and the page at “https:/my-domain/index.html” opens fine with the QR code. I also noticed that running this script periodically sometimes randomly shows no records at all (A, SRV, TXT, etc.). However, my DNS records are definitely correct and present. What could be the reason for this?  
2. “No privacy settings” - what does this mean?

 ![Снимок экрана 2025-08-24 205819](https://support.delta.chat/uploads/default/original/2X/1/1e876ffda7bb3afca28d3bcfc29e56647d841a35.png)  
3. When I run “scripts/cmdeploy test”, I get 5 missing, is that normal?  
 ![Снимок экрана 2025-08-24 214018](https://support.delta.chat/uploads/default/original/2X/3/3fe82ce6491c15bf864abf305978033f7475eb6c.png)  
4.Running “scripts/cmdeploy bench” runs without any problems, and the test values are normal.  
 ![Снимок экрана 2025-08-24 215045](https://support.delta.chat/uploads/default/original/2X/6/62fa0125582ebd40d88756cad283b1bed163fa75.png)

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [August 26, 2025, 7:12am UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/6 "2025-08-26T07:12:39Z")

</div>

> [@Alvx](#):
>
> 1. “No privacy settings” - what does this mean?

If you are on unix system, or have unix tools installed - go to your chatmail/relay source dir and execute:  
`grep -H -n -r -i -C4 --exclude-dir='.git' 'No privacy'`  
In short, it will search for text ‘No privacy’ in script files.

Result will be:

> cmdeploy/src/cmdeploy/cmdeploy.py-149- if args.config.privacy\_mail:  
> cmdeploy/src/cmdeploy/cmdeploy.py-150- out.green(“privacy settings: present”)  
> cmdeploy/src/cmdeploy/cmdeploy.py-151- else:  
> cmdeploy/src/cmdeploy/cmdeploy.py:152: out.red(“no privacy settings”)

So, now you get that this warning depends on some `privacy_mail` argument, Search for it:  
`grep -H -n -r -i -C4 --exclude-dir='.git' privacy_mail`

Results:

> chatmaild/src/chatmaild/config.py:54: self.privacy\_mail = params.get(“privacy\_mail”)

> www/src/info.md-34-If you have any further questions or requests regarding account deletion  
> www/src/info.md:35:please send a message from your account to {{ config.privacy\_mail }}.

> cmdeploy/src/cmdeploy/cmdeploy.py-148- out.green(f"chatmail domain: {args.config.mail\_domain}")  
> cmdeploy/src/cmdeploy/cmdeploy.py:149: if args.config.privacy\_mail:  
> cmdeploy/src/cmdeploy/cmdeploy.py-150- out.green(“privacy settings: present”)

> www/src/info.md-34-If you have any further questions or requests regarding account deletion  
> www/src/info.md:35:please send a message from your account to {{ config.privacy\_mail }}.

> www/src/privacy.md:51:E-mail: {{ config.privacy\_mail }}  
> www/src/privacy.md-53-We have appointed a data protection officer:

> www/src/privacy.md-252-If you have any questions or complaints,  
> www/src/privacy.md-253-please feel free to contact us by email:  
> www/src/privacy.md:254:{{ config.privacy\_mail }}

I hope now you know what this warning means, and the way to fix it if needed.

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [August 26, 2025, 7:32am UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/7 "2025-08-26T07:32:08Z")

</div>

> [@Alvx](#):
>
> 1. When I run “scripts/cmdeploy test”, I get 5 missing, is that normal?

Do you mean ‘5 skipped’ ?

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 26, 2025, 7:59am UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/9 "2025-08-26T07:59:12Z")

</div>

Yes, I’m using Debian 12. In general, as I understand it, these are the default settings, and there’s no need to modify them. Does this have any impact on the relay’s functionality? The same applies to the third screenshot.

Yes, I’m confused by the single error and the five missing entries in the screenshot.

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 26, 2025, 8:36am UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/10 "2025-08-26T08:36:33Z")

</div>

I have two more important security questions:

1. I can’t change the SSH port 22 in sshd\_config, otherwise I can’t log in to the relay, and I can’t even view the “cmdeploy status”. Is this a feature of relay operation, or is there a solution?
2. My private key id\_ed25519 is currently stored on the VPS in ~/.ssh/, and it is also registered in ssh-agent. However, I am unable to register the public key, as I receive the error message: WARNING: UNPROTECTED PRIVATE KEY FILE! The private key must be stored in ~/.ssh/ (which is not secure) for the relay to function properly. Have I misunderstood something or made a mistake?

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [August 26, 2025, 8:36am UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/11 "2025-08-26T08:36:34Z")

</div>

> [@Alvx](#):
>
> I’m confused by the single error and the five missing entries

Cause of that error is probably a bug in the script.

For tests that where skipped on your screenshot, try to run  
`CHATMAIL_DOMAIN2=nine.testrun.org cmdeploy test --slow`

Did you try to use DC app with your new server?

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 26, 2025, 8:53am UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/12 "2025-08-26T08:53:46Z")

</div>

Yes, the app works on two devices, and messages are delivered instantly. There are no visible issues with this.

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [August 26, 2025, 3:27pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/13 "2025-08-26T15:27:28Z")

</div>

> [@Alvx](#):
>
> My private key id\_ed25519 is currently stored on the VPS in ~/.ssh/,

For SSH to work it’s enough to have your private SSH key on your workstation / mobile, and copy your public SSH key to the server / VPS.  
There is no need to put private key on the server.

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 29, 2025, 2:34pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/14 "2025-08-29T14:34:37Z")

</div>

Can you tell me, I am on a remote VPS, where the relay is deployed, I want to change the standard SSH port (22) to my own. In what place of the locally cloned repository from “github” can I do this? I did not find this in chatmail.ini.

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [August 29, 2025, 3:03pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/15 "2025-08-29T15:03:04Z")

</div>

You should edit your /etc/ssh/sshd\_config file. …  
(Here was not relevant instruction; deleted.)

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 29, 2025, 3:20pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/16 "2025-08-29T15:20:17Z")

</div>

You didn’t quite understand me, or it’s not a correct translation, but I can easily change the SSH port on my remote VPS. However, when I try to log in from my local PC, where the local “reley” repository is not authorized, for example, when running the command “scripts/cmdeploy status”, it fails. Similarly, other commands also fail. I receive an error message stating that port 22 is unavailable.

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 29, 2025, 3:31pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/17 "2025-08-29T15:31:14Z")

</div>

Where on the local PC in the cloned “relay” repository, can I change or specify a different SSH port than 22? That’s what I need!

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [August 29, 2025, 3:42pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/18 "2025-08-29T15:42:54Z")

</div>

> **[Deploying chatmail on hardened server](https://forum.delta.chat/t/deploying-chatmail-on-hardened-server/3319/2)**
>
> For alternative port, you can specify it in .ssh/config in the host settings. Deploying using sudo instead of SSH to root is not supported currently.

(This sould be in README.md, but still not there yet.)

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 29, 2025, 3:49pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/19 "2025-08-29T15:49:12Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![Alvx](https://forum.delta.chat/user_avatar/forum.delta.chat/alvx/32/2802_2.png) [@Alvx](https://forum.delta.chat/u/Alvx)\
**Post date:** [August 30, 2025, 11:21am UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/20 "2025-08-30T11:21:22Z")

</div>

I want to deploy a remote chat mail relay server on a non-standard SSH port(22) from a local PC. Is this possible, or can only the 22 port be used for deployment?

 ![Снимок экрана 2025-08-30 141715](https://support.delta.chat/uploads/default/original/2X/3/3b0ac47ae4f71ad1c0bd1bcd09da39d671ae8c3a.png)

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [August 30, 2025, 12:16pm UTC](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026/21 "2025-08-30T12:16:35Z")

</div>

Edit ~/.ssh/config file, add

```
Host *
Port 2222

```

Use your chatmail server’ SSH port number instead of 2222.  
‘~’ means your home directory (if you’re using Linux OS).

This will change default remote port number to all your SSH connections, so better comment it out after you not needed anymore. Or read about ‘Host’ option in `man ssh\_config’, adn edit it accordingly.

[Next page](https://forum.delta.chat/t/error-when-deploying-an-email-relay-server/4026.md?page=2)
