forked from dinkel/docker-spamassassin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
39 lines (29 loc) · 1.1 KB
/
Dockerfile
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
FROM debian:stretch
MAINTAINER Christian Luginbühl <[email protected]>
ENV SPAMASSASSIN_VERSION 3.4.1
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
gpg \
libio-socket-ip-perl \
libmail-dkim-perl \
libnet-ident-perl \
libsocket-getaddrinfo-perl \
pyzor \
razor \
spamassassin=${SPAMASSASSIN_VERSION}* && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/spamassassin/sa-update-keys && \
chmod 700 /etc/spamassassin/sa-update-keys && \
chown debian-spamd:debian-spamd /etc/spamassassin/sa-update-keys && \
mkdir -p /var/lib/spamassassin/.pyzor && \
chmod 700 /var/lib/spamassassin/.pyzor && \
echo "public.pyzor.org:24441" > /var/lib/spamassassin/.pyzor/servers && \
chmod 600 /var/lib/spamassassin/.pyzor/servers && \
chown -R debian-spamd:debian-spamd /var/lib/spamassassin/.pyzor
RUN sed -i 's/^logfile = .*$/logfile = \/dev\/stderr/g' /etc/razor/razor-agent.conf
COPY spamd.sh /
COPY rule-update.sh /
COPY run.sh /
EXPOSE 783
CMD ["/run.sh"]