opstacle
An SMTP proxy built around inbox.py 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.
Installation
pip install opstacle
Configuration
opstacle is configured only by environment variables, and our contestants are:
Pretty things
OPSTACLE_FROM_ADDRESS
Most messages will be simply relayed without modification, but we need our own name when we send rolled up emails
Sample Value: “Opstacle opstacle@opstacle.io”
Threshold configuration
OPSTACLE_INTERVAL
Interval to keep counters when messages have been sent, in seconds
Sample Value: 30
OPSTACLE_MESSAGE_CAP
Max number of messages to send in a given OPSTACLE_INTERVAL
Sample Value: 5
“Fake” SMTP server (where opstacle will listen)
OPSTACLE_LISTEN_HOST
Sample Value: “127.0.0.1”
OPSTACLE_LISTEN_PORT
Sample Value: 9025
“Real” SMTP server
OPSTACLE_SMTP_USER
Sample Value: “postmaster@smtp.opstacle.org”
OPSTACLE_SMTP_PASS
Sample Value: “stopTheInsanity”
OPSTACLE_SMTP_HOST
Sample Value: “smtp.opstacle.org”
OPSTACLE_SMTP_PORT
Sample Value: “587”
Running
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
Metadata
Release files for opstacle 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opstacle-1.1.0.tar.gz | 4.1 kB | Without provenance | Details for opstacle-1.1.0.tar.gz |
Release files / opstacle-1.1.0.tar.gz
| Download URL | opstacle-1.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74a4e401e1c818593d3d00b118d77d2341e498e7094b74cf2ed3d4d2a5de0572
|
|
BLAKE2b-256 checksum How to use checksums |
452f741ee9b8512b6f3c1a865c08ff19750c2e3cbb495a24ad51327077f16b7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for opstacle 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.