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 659B

1234567891011121314151617181920212223242526
  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. COPY ./run.sh /run.sh
  11. RUN rm -rf /etc/postfix/*
  12. COPY ./config/ /etc/postfix/
  13. COPY ./certs/ /etc/ssl/private/
  14. EXPOSE 25 587
  15. CMD ["/run.sh"]