# Restore Chatmail relay operator's local PC

**URL:** <https://forum.delta.chat/t/restore-chatmail-relay-operators-local-pc/4146>\
**Category:** Chatmail Relays\
**Tags:** chatmail\
**Created:** [September 28, 2025, 3:12am UTC](https://forum.delta.chat/t/restore-chatmail-relay-operators-local-pc/4146 "2025-09-28T03:12:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amuuza](https://forum.delta.chat/user_avatar/forum.delta.chat/amuuza/32/2787_2.png) [@amuuza](https://forum.delta.chat/u/amuuza)\
**Post date:** [September 28, 2025, 3:12am UTC](https://forum.delta.chat/t/restore-chatmail-relay-operators-local-pc/4146/1 "2025-09-28T03:12:49Z")

</div>

Hi.

I have installed a Chatmail relay. I have a backup of the server. I also have a backup of the local PC’s `relay` directory from where the installation was done.

Les assume the local PC now explodes spectacularly. The relay keeps smoothly running.

I manage to get a second PC.

What are the exact steps I should take to have again a local PC from where to tune and update my currently running relay?

And what would be the steps If I did not have a backup of the Local PC’s `relay` directory?

Thank you

---

<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:** [September 28, 2025, 5:02am UTC](https://forum.delta.chat/t/restore-chatmail-relay-operators-local-pc/4146/2 "2025-09-28T05:02:08Z")

</div>

Once you regained root SSH access to the server, all you need is to restore `chatmail.ini` config and rerun `cmdeploy`. Usually setting the domain address in default `chatmail.ini` is enough.

---

<div class="post-metadata">

**Author:** ![amuza](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/9dc877/32.png) [@amuza](https://forum.delta.chat/u/amuza)\
**Post date:** [September 30, 2025, 12:52pm UTC](https://forum.delta.chat/t/restore-chatmail-relay-operators-local-pc/4146/3 "2025-09-30T12:52:39Z")

</div>

Let me verify I understand.

I only have one Chatmail server; I keep safe a backup of my local PC’ `relay` directory and my SSH keys; A burning meteorite falls on my local PC; I want to have a new local PC from where to keep tuning and updating my running Chatmail server.

So on the new local PC:

1. `git clone https://github.com/chatmail/relay`
2. `cd relay`
3. `scripts/initenv.sh`
4. `scripts/cmdeploy init mychatmaildomain.tld`
5. restore `chatmail.ini` file from backup
6. restore SSH keys and check `ssh root@mychatmaildomain.tld`
7. `scripts/cmdeploy run`

Is that correct?

---

<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:** [October 6, 2025, 1:09pm UTC](https://forum.delta.chat/t/restore-chatmail-relay-operators-local-pc/4146/4 "2025-10-06T13:09:17Z")

</div>

> [@amuza](#):
>
> - `scripts/cmdeploy init mychatmaildomain.tld`
> - restore `chatmail.ini` file from backup

`cmdeploy init` generates default config. If you restore `chatmail.ini` anyway from a backup, you don’t need to run `init`.

---

<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, 9:28pm UTC](https://forum.delta.chat/t/restore-chatmail-relay-operators-local-pc/4146/5 "2026-10-06T21:28:53Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
