-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
34 lines (28 loc) · 1.01 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
FROM docker.io/alpine:3.21.0
RUN apk --no-cache add exim tini && \
mkdir /var/spool/exim && \
chmod 777 /var/spool/exim && \
ln -sf /dev/stdout /var/log/exim/mainlog && \
ln -sf /dev/stderr /var/log/exim/panic && \
ln -sf /dev/stderr /var/log/exim/reject && \
chmod 0755 /usr/sbin/exim
COPY exim.conf /etc/exim/exim.conf
# Regardless of the permissions of the original `exim.conf` file in the build context,
# ensure that the `/etc/exim/exim.conf` configuration file is not writable by the Exim user.
# Otherwise, we'll get an Exim panic:
# > Exim configuration file /etc/exim/exim.conf has the wrong owner, group, or mode
RUN chmod 664 /etc/exim/exim.conf
USER exim
EXPOSE 8025
ENV LOCAL_DOMAINS=@ \
RELAY_FROM_HOSTS=10.0.0.0/8:172.16.0.0/12:192.168.0.0/16 \
RELAY_TO_DOMAINS=* \
RELAY_TO_USERS= \
DISABLE_SENDER_VERIFICATION= \
HOSTNAME= \
SMARTHOST= \
SMTP_PASSWORD= \
SMTP_USERDOMAIN= \
SMTP_USERNAME=
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["exim", "-bdf", "-q15m"]