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.0.tar.gz (59.2 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.0-py3-none-any.whl (69.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ign8mail-2.2.0.tar.gz
  • Upload date:
  • Size: 59.2 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.0.tar.gz
Algorithm Hash digest
SHA256 62384727d3beab42dbbf4efa975621c35c8e11440ddbd811ab441621b0d9143e
MD5 0164a496593b80932cdf49c394e12170
BLAKE2b-256 a016c467a9ceb2675c4e00704a7aa4cfcbe1d8d0e5d90153d98e7a3b8d927568

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ign8mail-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 69.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a93affbf338a3e6b9aefcd745cb6e7094eb0563d2341e1074b4338784bf3a2d
MD5 16bedae23f2e947914e28cce5cbd51b6
BLAKE2b-256 415cbfa5539dc821b03b142ca28832eea090088a8b9ae320a525801bf7028bd7

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