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.1.0.tar.gz (58.1 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.1.0-py3-none-any.whl (68.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ign8mail-2.1.0.tar.gz
Algorithm Hash digest
SHA256 5af077eac9c7387184b93f24baa43b273bbdf1643d2e48c92b5486bc7c418fb5
MD5 82cfa54662cafe5a47530d3abdf3afbf
BLAKE2b-256 cd2597e548601c316bc7c86994c0b21ca825c015d3450ca180b03beeee8e121c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ign8mail-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 68.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3035d876f6c0511df36ca23b65e1a4bf56b258364a51bb8e45ee4f49d651ce5
MD5 4aaff811c91e6e9cfe200007aaeb5dc7
BLAKE2b-256 6cd368b88305e585e3fa5c8ad68e47103367e1d7002a63374aa8e87dbb645dfc

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