From ff016f9dee14dc821c417dcf6125c77c804fadee Mon Sep 17 00:00:00 2001 From: Robert Bill Date: Sun, 8 Jun 2025 09:28:06 +0200 Subject: [PATCH 1/2] Update mox installation on debian --- .../01.en.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tutorials/install-and-configure-mailserver-mox-on-debian/01.en.md b/tutorials/install-and-configure-mailserver-mox-on-debian/01.en.md index 47a87866f..82f08c7bc 100644 --- a/tutorials/install-and-configure-mailserver-mox-on-debian/01.en.md +++ b/tutorials/install-and-configure-mailserver-mox-on-debian/01.en.md @@ -44,6 +44,7 @@ To access the management UI of Mox, a WireGuard network is strongly recommended. As an alternative you can connect via SSH port re-direction. For further help, see: +* Hetzner community tutorial [Installing and configuring a WireGuard VPN server on Debian](https://community.hetzner.com/tutorials/install-and-configure-wireguard-vpn-debian) * [WireGuard on Debian](https://wiki.debian.org/WireGuard) ยป "Step 2 - Alternative A - Manual Configuration" * [Step-by-step setup of WireGuard](https://www.server-world.info/en/note?os=Debian_12&p=wireguard&f=1) @@ -205,7 +206,7 @@ hcloud server set-rdns --hostname mail.example.com --ip 203.0.113.1 hcloud server set-rdns --hostname mail.example.com --ip 2001:db8:5678::1 ``` -> **Advanced and out-of-scope**: This setup demonstrates the installation of Mox in a basic, but still safe way. Consider hardening the server even more (e.g. root access, local firewall). If you consider a proxy, please be aware that the mail server needs the real IP of the connection. +> **Advanced and out-of-scope**: This setup demonstrates the installation of Mox in a basic, but still safe way. Consider hardening the server even more (e.g. root access, local firewall). If you consider a proxy, please be aware that the mail server needs the real IP of the remote connection for reputation management. ### Step 2.1 - Reputation of IP addresses @@ -287,7 +288,7 @@ chmod +x ./mox Mox is a single binary file, so that's all. -Use the [`quickstart` command](https://www.xmox.nl/commands/) to generate the setup: +Use the [`quickstart` command](https://www.xmox.nl/commands/#hdr-mox-quickstart) to generate the setup: ```bash su - mox @@ -397,7 +398,7 @@ cd /home/mox * **Import and export** - Check [Import mailboxes](https://www.xmox.nl/commands/#hdr-mox-export-maildir) to import mails, e.g. for a Dovecot migration. + Check [Import mailboxes](https://www.xmox.nl/commands/#hdr-mox-import-maildir) to import mails, e.g. for a Dovecot migration.
@@ -417,7 +418,7 @@ cd /home/mox * **Backup** - As a *starting point* for a backup, use this script + As a *starting point* for a backup, use this script (mox version v0.0.15 or higher is required): ```bash #!/bin/bash @@ -426,10 +427,9 @@ cd /home/mox rm -rf ${MOXBACKUPDIR} /home/mox/mox backup ${MOXBACKUPDIR}/data /home/mox/mox verifydata ${MOXBACKUPDIR}/data - cp -rp ${MOXDIR}/config/ ${MOXBACKUPDIR}/config ``` - Now backup `MOXBACKUPDIR` to another server (e.g with `restic` or other backup tools). + Now backup `MOXBACKUPDIR` to another server (e.g with `restic` or other backup tools). As the backup destination needs to be cleared for each mox backup you may need to adapt your backup tool call for incremental/differential backups, e.g. with `restic` ignore inodes with `restic backup --ignore-inode ... ${MOXBACKUPDIR}`. ## Conclusion From 1e7d6a56374ba3e8098346490ad3e8e672c0cea2 Mon Sep 17 00:00:00 2001 From: Robert Bill Date: Sun, 8 Jun 2025 09:32:25 +0200 Subject: [PATCH 2/2] Fix backup dir --- .../install-and-configure-mailserver-mox-on-debian/01.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/install-and-configure-mailserver-mox-on-debian/01.en.md b/tutorials/install-and-configure-mailserver-mox-on-debian/01.en.md index 82f08c7bc..5c0366a56 100644 --- a/tutorials/install-and-configure-mailserver-mox-on-debian/01.en.md +++ b/tutorials/install-and-configure-mailserver-mox-on-debian/01.en.md @@ -425,7 +425,7 @@ cd /home/mox MOXDIR=/home/mox MOXBACKUPDIR=${MOXDIR}/data/tmp/backup rm -rf ${MOXBACKUPDIR} - /home/mox/mox backup ${MOXBACKUPDIR}/data + /home/mox/mox backup ${MOXBACKUPDIR} /home/mox/mox verifydata ${MOXBACKUPDIR}/data ```