use m4 for config generation
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-12-21 12:46:39 +01:00
parent 0bf33c582f
commit 8464bf1f41
5 changed files with 79 additions and 56 deletions

View File

@ -10,11 +10,11 @@ ENV SMARTHOST=""
ENV SMARTHOST_USER=""
ENV SMARTHOST_PASS=""
# ip addresses or networks to allow for relaying, separate multiple ones by semicolon
ENV RELAYNETS=""
ENV RELAYNETS="127.0.0.1/32"
RUN apk add --no-cache exim bash
RUN apk add --no-cache exim m4
COPY exim.conf.tmpl /etc/exim
COPY exim.conf.m4 /etc/exim
COPY start.sh /etc/exim
WORKDIR /etc/exim
@ -22,6 +22,7 @@ WORKDIR /etc/exim
EXPOSE 25
CMD [ "./start.sh" ]
#CMD [ "/usr/bin/m4 exim.conf.m4 > exim.conf && /usr/sbin/exim -bd -q15m -v" ]