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