Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Fakemail : an asynchronous command line email proxy ####################################################
Fakemail is a simple SMTP server that runs as a command line script, relaying incoming messages to an upstream server, to an HTTP endpoint or to stdout.
Fakemail is useful for testing emails during development: it can rewrite the envelope-to address on all messages to a single address, ensuring messages cannot be sent to real users.
Fakemail is useful for processing inbound messages in a web application, by acting as an SMTP-to-HTTP proxy.
Caution: Fakemail always runs as an open relay. Ensure you do not expose fakemail on a public address.
pip install -r requirements.txt
To see an up to date list of command line options, run::
python fakemail.py --help
Redirect emails for development:
python fakemail.py --bind 127.0.0.1:2525 --relay 127.0.0.1:25 --rewrite-to=myaddress@example.org
View emails on stdout::
python fakemail.py --bind 127.0.0.1:2525 --stdout
Feed emails into an HTTP endpoint (SMTP-to-HTTP)::
python fakemail.py --bind 127.0.0.1:2525 --relay-url="https://mywebservice.example.org/mail-in"
python fakemail.py --bind 127.0.0.1:2525 --relay-url="https://user:pass@mywebservice.example.org/mail-in"
Multiple relays are possible: you can relay via SMTP, to an HTTP endpoint, and log to stdout in a single process. If any one relay fails the mail will be rejected, even if other relays succeed.
FAQs
A fake SMTP server
We found that fakemail demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.