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

12345678910111213141516171819202122232425262728
  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 apt-get update &&\
  5. apt-get install -y dovecot-imapd dovecot-pop3d dovecot-sieve dovecot-managesieved dovecot-pgsql dovecot-lmtpd exim4 &&\
  6. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  7. RUN sed -e "s/dc_eximconfig_configtype=.*/dc_eximconfig_configtype='internet'/" -i /etc/exim4/update-exim4.conf.conf &&\
  8. sed -e "s/dc_other_hostnames=.*/dc_other_hostnames=''/" -i /etc/exim4/update-exim4.conf.conf &&\
  9. update-exim4.conf
  10. COPY ./run.sh /run.sh
  11. RUN rm -rf /etc/dovecot/*
  12. COPY ./config/ /etc/dovecot/
  13. COPY ./certs/ /etc/ssl/private/
  14. VOLUME ["/var/email", "/etc/dovecot/sieve"]
  15. EXPOSE 110 143 993 995 4190
  16. CMD ["/run.sh"]