Need to migrate your e-mails to a new server? Free and paid versions of our online tool available.
Hero Image

Server Setup Guides

Configure OpenSMTPD on Debian 12

Configure OpenSMTPD on Debian 12

Install

# OpenBSD – built-in:
rcctl enable smtpd && rcctl start smtpd

# Other platforms:
# Ubuntu/Debian:
apt install opensmtpd
# AlmaLinux/RHEL:
dnf install opensmtpd
# Arch:
pacman -S opensmtpd

Basic /etc/mail/smtpd.conf

pki mail.example.com cert "/etc/ss...
7th May 2026

Harden SSH on Debian 12

Harden SSH on Debian 12

Back up config

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak

Key settings (/etc/ssh/sshd_config)

Port 2222
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
AllowUsers deploy alice
Protocol 2
ClientAliveInterval 600
ClientAliveCountMax 0
X11Fo...
7th May 2026

Install Docker on Debian 12

Install Docker on Debian 12

Step 1 – Install

install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release && echo "$ID")/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture...
7th May 2026

Install Fail2Ban on Debian 12

Install Fail2Ban on Debian 12

Step 1 – Install

apt install -y fail2ban
systemctl enable --now fail2ban

Step 2 – /etc/fail2ban/jail.local

[DEFAULT]
bantime  = 3600
findtime = 600
maxretry = 5
banaction = iptables-multiport
ignoreip = 127.0.0.1/8 192.168.1.0/24

[sshd]
enabled  = true
port...
7th May 2026

Install Gitea on Debian 12

Install Gitea on Debian 12

Step 1 – Create git user and download binary

useradd -r -m -d /home/git -s /bin/bash git
VERSION=1.22.0
wget -O /usr/local/bin/gitea https://dl.gitea.com/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
chmod +x /usr/local/bin/gitea

Step 2 – Directories

mkdir -p /var/...
7th May 2026

Install Grafana on Debian 12

Install Grafana on Debian 12

Step 1 – Install

wget -q -O - https://packages.grafana.com/gpg.key | gpg --dearmor | tee /usr/share/keyrings/grafana.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/grafana.gpg] https://packages.grafana.com/oss/deb stable main" | tee /etc/apt/sources.list.d/...
7th May 2026

Install HAProxy on Debian 12

Install HAProxy on Debian 12

Step 1 – Install

apt update && apt upgrade -y
apt install -y haproxy
systemctl enable --now haproxy

Step 2 – Basic /etc/haproxy/haproxy.cfg

global
    log /dev/log local0
    chroot /var/lib/haproxy
    stats socket /run/haproxy/admin.sock mode 660 level admin...
7th May 2026