From 844df42b3e0cac808119a17379724e862a504e24 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 25 Jun 2015 20:22:54 +0800 Subject: [PATCH] add tmail --- tmail/Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tmail/Dockerfile diff --git a/tmail/Dockerfile b/tmail/Dockerfile new file mode 100644 index 0000000..cd7a564 --- /dev/null +++ b/tmail/Dockerfile @@ -0,0 +1,30 @@ +# +# Dockerfile for tmail +# + +FROM alpine +MAINTAINER kev + +RUN apk add --update build-base \ + python \ + python-dev \ + openssl \ + && wget -O- https://bootstrap.pypa.io/get-pip.py | python \ + && pip install twisted \ + && apk del --purge build-base \ + python-dev \ + openssl \ + && rm -rf /var/cache/apk/* + +ENV MAIL_NAME datageek.info +ENV MAIL_PATH /var/mail +ENV MAIL_USER admin +ENV MAIL_PASS admin + +VOLUME /var/mail +EXPOSE 25 + +CMD twistd -n mail --smtp=tcp:25 \ + --maildirdbmdomain=$MAIL_NAME=$MAIL_PATH \ + --user $MAIL_USER=$MAIL_PASS \ + --bounce-to-postmaster