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.2.tar.gz (59.7 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.2-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ign8mail-2.2.2.tar.gz
  • Upload date:
  • Size: 59.7 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.2.tar.gz
Algorithm Hash digest
SHA256 d3c34701c36a3e05892e3c37dba0295b166ca676e43d1f80750e7ba7e1a5b8d1
MD5 3d2f20bcb65d30483d55269b40611245
BLAKE2b-256 1918d0a9c99b35377ff295fdfd9658eb632e4b5d0ded15af55743be7a9bfadb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ign8mail-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 70.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7674c59589d56196fa27b13bb9e001e9dc66ca303fcf8c8c9de601bd75675b9b
MD5 f0db0ffeaa48474d657bc3e11aa9a18a
BLAKE2b-256 31b8cb2b8fbbf86b7794265f2458c7877130014fdc4d0455c831524f7aa8eabb

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