Simple mail server for local development
Project description
Flying Rat is a simple mail server for local development. It supports both SMTP to send messages and POP3 to fetch them.
All messages over SMTP are dropped into a single (local) mailbox, which allows you to test your application with real email addresses without running the risk of actually sending messages to those recipients. Running a simple mail server also means it’s a lot easier to configure your application to send those messages during local development. The SMTP server runs on localhost at port 5050 by default and that’s all you need to configure.
When a message is received it’s stored on disk, either to a temporary directory or a directory of your choosing:
$ flyingrat Running from directory /var/folders/zg/jx_p4s0s79j50bmrdlk404j00000gn/T/tmpop5Chy ^C $ flyingrat testrun/
This means you can examine the contents of the directory to view the actual message. But by default Flying Rat will also run a basic POP3 server on port 5051. So instead of having to watch the directory, just hook up your favorite email client (if you have one) to localhost:5051 with any username and password.
Installing
Flying Rat runs on Python 2. The easiest way to install is through pipsi:
$ pipsi install flyingrat
Options
The most reliable source for possible options is the application itself. Just pass in the --help option:
$ flyingrat --help Usage: flyingrat [OPTIONS] [DIRECTORY] Runs an SMTP server, POP3 server or both based on a directory. When no directory is supplied, a temporary directory will be created and used. The POP3 server accepts any username and password combination by default. Options: --version Print version and exit -m, --mode [smtp|pop3|both] Run smtp, pop3 or both (default) -sa, --smtp-address TEXT Address to run the SMTP server on. Defaults to localhost:5050 -pa, --pop3-address TEXT Address to run the POP3 server on. Defaults to localhost:5051 -pu, --pop3-user TEXT Username for the POP3 server (default: <any>) -pp, --pop3-password TEXT Password for the POP3 server (default: <any>) --help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flyingrat-0.1.0.tar.gz
.
File metadata
- Download URL: flyingrat-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf6a8c4206054f12a1745beb7a069ad6b9b815f88b78805d8efa18070a29e29 |
|
MD5 | b85a2d1d8a62d9e68e4cdf6656c145f4 |
|
BLAKE2b-256 | eb423cc1fb51039e890c2a3e436402fff6a92a8c98822a811a76bab37d4ed4c8 |
File details
Details for the file flyingrat-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: flyingrat-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccc4c2ef9c573a74526e992dea897a8d4756866f41238d4780b86ddec0182dc9 |
|
MD5 | 31f8e0fc546e92496790d9cd62f1bc18 |
|
BLAKE2b-256 | e926217d08bb88cf76f1f419e7b8d9a0d1449804ee8874439d08b946785ab469 |