Skip to main content

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.

Metadata

Release files for flyingrat 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flyingrat 0.1.0
File Size Uploaded
flyingrat-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flyingrat 0.1.0
File Interpreter ABI Platform
flyingrat-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 15.9 kB

Release files / flyingrat-0.1.0.tar.gz

Download URL flyingrat-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ebf6a8c4206054f12a1745beb7a069ad6b9b815f88b78805d8efa18070a29e29
BLAKE2b-256 checksum
How to use checksums
eb423cc1fb51039e890c2a3e436402fff6a92a8c98822a811a76bab37d4ed4c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / flyingrat-0.1.0-py2.py3-none-any.whl

Download URL flyingrat-0.1.0-py2.py3-none-any.whl
Size 9.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ccc4c2ef9c573a74526e992dea897a8d4756866f41238d4780b86ddec0182dc9
BLAKE2b-256 checksum
How to use checksums
e926217d08bb88cf76f1f419e7b8d9a0d1449804ee8874439d08b946785ab469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page