You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 952B

12345678910111213141516171819202122232425262728293031323334353637
  1. FROM debian:jessie
  2. MAINTAINER Robin Thoni <robin@rthoni.com>
  3. RUN groupadd -r email --gid=7788 && useradd -r -g email --uid=7788 email
  4. RUN echo "postfix postfix/main_mailer_type string Internet site" > preseed.txt &&\
  5. echo "postfix postfix/mailname string mail.example.com" >> preseed.txt
  6. RUN debconf-set-selections preseed.txt
  7. RUN DEBIAN_FRONTEND=noninteractive apt-get update &&\
  8. apt-get install -y postfix postfix-pgsql rsyslog &&\
  9. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  10. RUN rm -rf /etc/postfix/*
  11. RUN rm -rf /var/log/* &&\
  12. mkfifo /var/log/mail.info &&\
  13. ln -s /dev/null /var/log/mail.log &&\
  14. ln -s /dev/stderr /var/log/mail.err &&\
  15. ln -s /dev/null /var/log/syslog &&\
  16. ln -s /dev/null /var/log/messages
  17. COPY ./config/ /etc/postfix/
  18. COPY ./vars-vars /etc/vars-vars
  19. COPY ./vars-files /etc/vars-files
  20. COPY ./run.sh /run.sh
  21. EXPOSE 25 587
  22. CMD ["/run.sh"]
  23. COPY ./certs/ /etc/ssl/private/