Skip to main content

FastSMTP

A TLS-capable, async SMTP server that receives email, verifies DKIM and SPF, and forwards the contents to configurable webhooks. Built for Python 3.12+ and for integration with n8n and other webhook-based workflow platforms.

This is the server package. The remote CLI client is a separate distribution, fastsmtp-cli, which talks to a running server over HTTP and does not depend on this one.

Install

pip install fastsmtp

On Alpine and other musl-based distributions, note that google-re2 publishes manylinux wheels but no musllinux wheels, so pip has to build it: install a compiler and the RE2 library first, or use the container image instead.

Container images are published to ghcr.io/jsenecal/fastsmtp.

Run

export FASTSMTP_DATABASE_URL=postgresql+asyncpg://user:pass@localhost/fastsmtp
export FASTSMTP_ROOT_API_KEY=$(python -c "import secrets; print(secrets.token_urlsafe(32))")

fastsmtp db upgrade head   # apply migrations first, every time
fastsmtp serve

Configuration is read from FASTSMTP_* environment variables and from a .env file in the working directory. Migrations are never applied automatically: run fastsmtp db upgrade head before starting a newer version, or the server refuses to start against a database behind it.

Documentation

Full documentation, including the configuration reference, the HTTP API and the rules engine, is at https://jsenecal.github.io/fastsmtp/.

Source and issue tracker: https://github.com/jsenecal/fastsmtp.

License

AGPL-3.0-or-later - this program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See LICENSE.

Download files

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

Source Distribution

fastsmtp-0.6.0.tar.gz (324.2 kB view details)

Uploaded Source

Built Distribution

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

fastsmtp-0.6.0-py3-none-any.whl (168.7 kB view details)

Uploaded Python 3

File details

Details for the file fastsmtp-0.6.0.tar.gz.

File metadata

  • Download URL: fastsmtp-0.6.0.tar.gz
  • Upload date:
  • Size: 324.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fastsmtp-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f6c1a27760716366c433cf920f7e65114536ea89f04f5389f1de2a1824f9c9c4
MD5 47452225d69d1bea17a3f95e8ec3a38f
BLAKE2b-256 1c82a0f54bb689d0ed9eeacdcb8139dbc9a5860376e17164fcb89dd559ae1b48

See more details on using hashes here.

File details

Details for the file fastsmtp-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: fastsmtp-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 168.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fastsmtp-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf7a67c2f87eab4357c1edc5e926f5a8ac170aa7c4578bf82e8233a414c09f4b
MD5 12453ef7a1909ef23f2611ab701376ce
BLAKE2b-256 f27a5fc969c06f4866dc25a2ed77f52aa0a2846d3cd205621b565c5281e33365

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.0

2 files

This release

0.6.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page