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

1234567891011121314151617181920212223242526272829
  1. FROM debian:jessie
  2. MAINTAINER Robin Thoni <robin@rthoni.com>
  3. RUN apt-get update &&\
  4. apt-get install -y opendkim opendkim-tools openssl libopendbx1-pgsql rsyslog &&\
  5. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  6. RUN rm /etc/opendkim.conf &&\
  7. ln -s /etc/opendkim/opendkim.conf /etc/opendkim.conf
  8. RUN rm -rf /var/log/* &&\
  9. mkfifo /var/log/syslog &&\
  10. ln -s /dev/null /var/log/mail.log &&\
  11. ln -s /dev/null /var/log/mail.err &&\
  12. ln -s /dev/null /var/log/main.info &&\
  13. ln -s /dev/null /var/log/messages
  14. RUN sed -e 's/\(\$ModLoad imklog.*\)/#\1/' -i /etc/rsyslog.conf
  15. COPY ./config /etc/opendkim/
  16. RUN chown -R opendkim:opendkim /etc/opendkim
  17. COPY ./run.sh /run.sh
  18. VOLUME ["/etc/opendkim/keys"]
  19. CMD ["/run.sh"]