2016-12-09 20:39:02 +01:00
|
|
|
From ubuntu:xenial
|
|
|
|
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2016-12-13 12:26:10 +01:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y install dovecot-common \
|
|
|
|
dovecot-core \
|
|
|
|
dovecot-imapd \
|
|
|
|
dovecot-lmtpd \
|
|
|
|
dovecot-managesieved \
|
|
|
|
dovecot-sieve \
|
|
|
|
dovecot-mysql \
|
|
|
|
dovecot-pop3d \
|
|
|
|
dovecot-dev \
|
|
|
|
wget \
|
|
|
|
build-essential \
|
|
|
|
autotools-dev \
|
|
|
|
automake
|
2016-12-09 20:39:02 +01:00
|
|
|
|
2016-12-13 12:26:10 +01:00
|
|
|
WORKDIR /tmp
|
|
|
|
RUN wget http://hg.dovecot.org/dovecot-antispam-plugin/archive/tip.tar.gz -O - | tar xvz \
|
|
|
|
&& cd /tmp/dovecot-antispam* \
|
|
|
|
&& ./autogen.sh \
|
|
|
|
&& ./configure --prefix=/usr \
|
|
|
|
&& make \
|
|
|
|
&& make install
|
2016-12-09 20:39:02 +01:00
|
|
|
|
2016-12-13 12:26:10 +01:00
|
|
|
ADD rspamd-pipe /usr/local/bin/rspamd-pipe
|
|
|
|
|
|
|
|
RUN chmod +x /usr/local/bin/rspamd-pipe
|
2016-12-09 20:39:02 +01:00
|
|
|
RUN groupadd -g 5000 vmail
|
|
|
|
RUN useradd -g vmail -u 5000 vmail -d /var/vmail
|
|
|
|
|
|
|
|
EXPOSE 24 10001
|
|
|
|
|
|
|
|
CMD ["/usr/sbin/dovecot", "-F"]
|