Skip to main content

Spin up a fully configured mail server in minutes — Hetzner Cloud infra, Cloudflare DNS, all from one CLI command.

Project description

ign8mail

Ignite a production-grade mail server in minutes.

What it does in one command:

  1. Generates an SSH keypair
  2. Provisions a Hetzner Cloud VPS via Pulumi
  3. Creates all required Cloudflare DNS records (A, MX, SPF, DKIM, DMARC, autoconfig)
  4. SSHs into the server and installs + configures Postfix, Dovecot, rspamd, and Let's Encrypt TLS

Install

pip install ign8mail

Quickstart

cp .env.example .env
# Fill in .env with your tokens and domain

ign8mail up \
  --domain mail.example.com \
  --admin-email admin@example.com \
  --hetzner-token $HETZNER_TOKEN \
  --cloudflare-token $CF_TOKEN \
  --cloudflare-zone-id $CF_ZONE_ID

Or use environment variables (all flags have IGN8_ prefixed env var equivalents):

export IGN8_DOMAIN=mail.example.com
export IGN8_ADMIN_EMAIL=admin@example.com
export IGN8_HETZNER_TOKEN=...
export IGN8_CLOUDFLARE_TOKEN=...
export IGN8_CLOUDFLARE_ZONE_ID=...

ign8mail up

Teardown

ign8mail destroy

This removes the Hetzner server. DNS records are left intact.

Requirements

  • Python 3.11+
  • A Hetzner Cloud account and API token
  • A domain managed by Cloudflare (API token + Zone ID)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ign8mail-2.2.1.tar.gz (59.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ign8mail-2.2.1-py3-none-any.whl (70.0 kB view details)

Uploaded Python 3

File details

Details for the file ign8mail-2.2.1.tar.gz.

File metadata

  • Download URL: ign8mail-2.2.1.tar.gz
  • Upload date:
  • Size: 59.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ign8mail-2.2.1.tar.gz
Algorithm Hash digest
SHA256 d729b629687567644b6bdc6117177610d06e7913e8cf99606e626c057444db86
MD5 ab37c40cb0bd02cd33fb94228fc380b2
BLAKE2b-256 6c9d57a42515dbe7273f750ed0ada6d95c9348bcdc8305a1c785a2860e81b682

See more details on using hashes here.

File details

Details for the file ign8mail-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: ign8mail-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 70.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ign8mail-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91d7b2ba454dca72379b282c27227743b71ed2adcc25c3b000a1eb678c48e7c0
MD5 9abc5acc8e322f61fbbb54305550684e
BLAKE2b-256 7efb677dc880351a656116c8e0874f13c039ef6764452cd3e47a0731a8b3a9f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page