-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (36 loc) · 945 Bytes
/
Dockerfile
File metadata and controls
45 lines (36 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu
MAINTAINER Johannes <johannes@number13.de>
ENV DEBIAN_FRONTEND noninteractive
ENV VMAIL_DB_NAME vmail
RUN apt-get update && apt-get install -y -qq \
cron \
openssl \
git \
dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved dovecot-antispam \
postfix postfix-mysql \
opendkim opendkim-tools \
amavisd-new amavisd-milter libdbi-perl libdbd-mysql-perl \
gcc libmilter-dev make unzip \
spamassassin \
acl \
razor pyzor \
wget \
mysql-client \
rsyslog mailutils
RUN service dovecot stop
RUN service postfix stop
RUN service opendkim stop
ADD config_files /config_files
ADD care_scripts /care_scripts
ADD init.sh init.sh
ADD start.sh start.sh
ADD init_db.sql init_db.sql
# Enables Pyzor and Razor
USER amavis
RUN razor-admin -create && razor-admin -register && pyzor discover
USER root
RUN ./init.sh
#expose ports
EXPOSE 25 587 110 143 995 991
#START EVERYTHING
CMD ./start.sh