Skip to main content

A dangerous and probably broken SMTP proxy that attempts to keep you sane

Project description

An SMTP proxy built around which attempts to maintain some sanity as your servers begin to send thousands of emails just cause.

The basic premise is emails from a given server or process will happen, but all 1300 aren’t really necessary right this instant. god forbid if you pay by the smtp delivery.


pip install opstacle


opstacle is configured only by environment variables, and our contestants are:

Pretty things

  • Most messages will be simply relayed without modification, but we need our own name when we send rolled up emails
  • Sample Value: “Opstacle

Threshold configuration

  • Interval to keep counters when messages have been sent, in seconds
  • Sample Value: 30
  • Max number of messages to send in a given OPSTACLE_INTERVAL
  • Sample Value: 5

“Fake” SMTP server (where opstacle will listen)

  • Sample Value: “”
  • Sample Value: 9025

“Real” SMTP server

  • Sample Value: “
  • Sample Value: “stopTheInsanity”
  • Sample Value: “”
  • Sample Value: “587”


Once installed, opstacle can be invoked by calling opstacle.

Logs are spit directly to YOU! Right there on STDOUT, and no you can’t turn them down

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

opstacle-1.1.0.tar.gz (4.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page