From 3adfda1bc661f35af0b5e1da54a43d982ebf2168 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 20 Dec 2014 17:39:11 -0800 Subject: Creating docker-pysmtpmock. --- Dockerfile | 7 +++++++ README.md | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md 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 ------------ -- cgit v1.2.3