diff options
-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 ------------ |