Skip to main content

An asynchronous, highly configurable SMTP relay

Project description

Modern Relay

Welcome to Modern Relay’s documentation! The intention for this project is to build a mail relay that works seamlessly in the new IT landscape of cloud providers, API access, and the security measures that come with them. I’ve found that federating Microsoft 365 tenants and requiring MFA for all accounts is a great leap forward in securing organizations, but it introduces new strains on IT to integrate legacy devices/applications that an organization may not want to replace.

Modern Relay solves this problem by being a drop in replacement for the IIS-based SMTP relays that an organization likely already has in place. There are configurable “delivery agents” that Modern Relay uses to convert mail coming in from SMTP to different delivery schemes like an HTTP request to an API (e.g. Microsoft Graph). By leveraging APIs to different mail providers, you can skip licensing hassles, 2FA/app password woes, custom Exchange Online connectors, and adding another SPF address to your record.

Features

  • Fully asynchronous

  • Uses customizable delivery actions based on the origin IP address

  • Queues mail in the event of delivery failure for later resending

  • Access control to allow certain origin addresses/subnets or certain destination domains

  • Supports anonymous and plain login schemes

  • Supports STARTTLS if you provide the certs

  • Supports Microsoft Graph API mail delivery

Requirements

You need at least Python 3.6 to use this library

Supported Platforms

ModernRelay is tested on CPython and PyPy3.7 for the following platforms:

  • Windows 10

  • Ubuntu 20.04

  • Ubuntu 18.04

Installation

For Linux or Windows environments where you’re managing your own python installation, install with pip:

pip install modernrelay

You will need to set the appropriate environment variables for your chosen delivery agents. See individual agent documentation for more details.

If an installer is more your speed, go download a Windows msi installer from the releases section and run it.

Building

You can install this package in a virtual environment like so:

$ python3 -m venv /path/to/venv
$ source /path/to/venv/bin/activate
$ git clone https://github.com/blbuford/ModernRelay.git
$ cd ModernRelay
$ pip install -e .[dev]

License

ModernRelay is released under the MIT License.

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

ModernRelay-0.0.1.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

ModernRelay-0.0.1-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file ModernRelay-0.0.1.tar.gz.

File metadata

  • Download URL: ModernRelay-0.0.1.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for ModernRelay-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a4e7e9e634cd368a3698522849202ef71f84e1cd7abc3d68574dc0d4756dbf18
MD5 1c3b3c41c9b8a1435ad7039e15144868
BLAKE2b-256 b4508fb3cc3d872086d1920eef3461efcf53b64130f1830384147d3046a21278

See more details on using hashes here.

File details

Details for the file ModernRelay-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ModernRelay-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for ModernRelay-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55d7c62e278de97fc6df47787a0f1c4ee6aaa23df3ec18ab22205b92b06d29b6
MD5 07e699640e50cd4e72249651e0459acf
BLAKE2b-256 15e6dfacdeb6106526a970ec485379d892ad4d77f4c7542135eb9af3352f3e40

See more details on using hashes here.

Supported by

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