https://github.com/srittau/fakesmtpd
SMTP server for testing mail functionality
https://github.com/srittau/fakesmtpd
mail mailserver python smtp testing
Last synced: 10 months ago
JSON representation
SMTP server for testing mail functionality
- Host: GitHub
- URL: https://github.com/srittau/fakesmtpd
- Owner: srittau
- License: mit
- Created: 2017-06-19T13:52:34.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T06:41:36.000Z (almost 2 years ago)
- Last Synced: 2024-04-08T07:43:09.168Z (almost 2 years ago)
- Topics: mail, mailserver, python, smtp, testing
- Language: Python
- Homepage:
- Size: 476 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# FakeSMTPd
[](https://pypi.python.org/pypi/FakeSMTPd/)

[](https://github.com/srittau/FakeSMTPd/releases/)
[](https://pypi.python.org/pypi/FakeSMTPd/)
[](https://travis-ci.org/srittau/FakeSMTPd)
FakeSMTPd is an SMTP server for testing mail functionality. Any mail sent via
this server will be saved, but will not be forwarded any further.
Mail is printed to stdout by default in default mbox format, as defined in
[RFC 4155](https://www.ietf.org/rfc/rfc4155.txt). The SMTP mail receivers
are added in X-FakeSMTPd-Receiver headers.
Usage
-----
`fakesmtpd [OPTIONS]`
Supported options:
* `-o`, `--output-filename [FILENAME]` mbox file for output, default: stdout
* `-b`, `--bind [ADDRESS]` IP addresses to listen on, default: 127.0.0.1
* `-p`, `--port [PORT]` SMTP port to listen on
Docker image [available](https://hub.docker.com/r/srittau/fakesmtpd/).