summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2014-12-20 17:39:11 -0800
committerJesse Morgan <jesse@jesterpm.net>2014-12-20 17:39:11 -0800
commit3adfda1bc661f35af0b5e1da54a43d982ebf2168 (patch)
tree2b62e92809ffb499313e9f88df27458acaecfbf5
Creating docker-pysmtpmock.HEADmaster
-rw-r--r--Dockerfile7
-rw-r--r--README.md15
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 ------------