1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-11-29 22:38:35 +02:00
This commit is contained in:
kev
2015-06-25 20:34:33 +08:00
parent 844df42b3e
commit 07534d6e9f
2 changed files with 22 additions and 1 deletions

View File

@@ -22,9 +22,10 @@ ENV MAIL_USER admin
ENV MAIL_PASS admin
VOLUME /var/mail
EXPOSE 25
EXPOSE 25 110
CMD twistd -n mail --smtp=tcp:25 \
--pop3=tcp:110 \
--maildirdbmdomain=$MAIL_NAME=$MAIL_PATH \
--user $MAIL_USER=$MAIL_PASS \
--bounce-to-postmaster

20
tmail/README.md Normal file
View File

@@ -0,0 +1,20 @@
twistd-mail
===========
## docker-compose.yml
```
tmail:
image: vimagick/tmail
ports:
- "25:25"
- "110:110"
volumes:
- mail:/var/mail
environment:
- MAIL_NAME=domain.org
- MAIL_PATH=/var/mail
- MAIL_USER=user
- MAIL_PASS=pass
restart: always
```