Getting Started

Quick Deploy

Go from zero to a fully working Cleanmails instance in under 10 minutes. No coding required — just a VPS and your license key.

What is a VPS?

A VPS (Virtual Private Server) is a computer that stays on 24/7 in a data center. Instead of running Cleanmails on your laptop, you run it on a VPS so it can handle thousands of emails while you sleep.

Recommended VPS Providers

We recommend Contabo, Hetzner, or DigitalOcean. Choose a plan with at least 1GB RAM (4GB recommended) and Ubuntu 22.04 as the operating system.

Step-by-Step Setup

1

Get your VPS & connect via SSH

Purchase a VPS with Ubuntu 22.04. You'll receive an IP address and root password.

Windows users: Download Putty, enter your VPS IP, click Open, login as root.

Mac/Linux users: Open Terminal and run:

bash
ssh root@YOUR_VPS_IP
How to paste in terminal

In most terminals (Putty, etc.), you don't use Ctrl+V. Just right-click inside the terminal window to paste.

2

Point your domain to your VPS IP

Create an A record pointing your domain to your VPS IP address before running the installer. This is needed for SSL provisioning.

TypeNameValue
Aapp (or @)YOUR_VPS_IP
3

Run the installer

Use the command generator below to create your personalized install command, then paste it into your terminal.

Auto-Deploy

Installation Command Generator

Fill in your details to generate a one-click installation command with automatic SSL.

Terminal
curl -sSL https://cleanmails.online/install.sh | bash -s -- --key {LICENSE_KEY} --domain {YOUR_DOMAIN}

rDNS Configuration

Set your server's Reverse DNS (PTR) record to: {YOUR_DOMAIN}

The installer will:

  1. Run preflight checks (root, RAM, disk, port availability)
  2. Install Docker Engine and Docker Compose (if not present)
  3. Download the latest release from the Cleanmails S3 bucket
  4. Build Docker images (API, Worker, Frontend)
  5. Generate secure secrets (AES-256 encryption key, JWT secret, DB password)
  6. Configure Caddy reverse proxy with security headers
  7. Start the full stack (PostgreSQL, Redis, API, Worker, Frontend, Caddy)
  8. Auto-provision SSL certificate via Let's Encrypt
4

Point your domain

Create an A record pointing your domain to your VPS IP address:

TypeNameValue
Aapp (or @)YOUR_VPS_IP
5

Set Reverse DNS (rDNS/PTR)

Go to your VPS provider's control panel and set the PTR record to your domain. This is critical for email deliverability.

6

Complete the setup wizard

Open your domain in a browser. You'll see the initialization page where you create your admin account.

Save your password!

There is no "Forgot Password" button because your data is private and self-hosted. Write down your admin credentials.

What's Next?