Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Dockerfile 884B

123456789101112131415161718192021222324252627282930313233
  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 ./certs/ /etc/ssl/private/
  19. COPY ./run.sh /run.sh
  20. EXPOSE 25 587
  21. CMD ["/run.sh"]