diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2014-12-20 17:39:11 -0800 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2014-12-20 17:39:11 -0800 |
commit | 3adfda1bc661f35af0b5e1da54a43d982ebf2168 (patch) | |
tree | 2b62e92809ffb499313e9f88df27458acaecfbf5 |
-rw-r--r-- | Dockerfile | 7 | ||||
-rw-r--r-- | README.md | 15 |
2 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..71e5be1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM debian:jessie + +RUN apt-get update && apt-get -y install python + +EXPOSE 25 + +CMD ["python", "-m", "smtpd", "-n", "-c", "DebuggingServer", "0.0.0.0:25"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..921a7b3 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +Mock SMTP Server which displays the received messages on stdout. + +The server is the python smtpd module in debug mode. The default command is: + + python -m smtpd -n -c DebuggingServer localhost:25 + +The received message looks something like: + + ---------- MESSAGE FOLLOWS ---------- + from: test@example.com + to: test2@example.com + subject: Hello + + Hello World + ------------ END MESSAGE ------------ |