1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00

Configure fetchmail to use idfile to keep track of messages.

Run fetchmail as root. This is unfortunately required because
all files are owned by root in the mailu data folder.
In the future  we must switch all images to running all
all processes with a non-root user.
This commit is contained in:
Dimitri Huisman 2021-11-10 09:07:03 +00:00
parent 2404cf2e3d
commit 92e65b33e0
2 changed files with 2 additions and 5 deletions

View File

@ -13,10 +13,7 @@ RUN apk add --no-cache fetchmail ca-certificates openssl \
&& pip3 install requests
RUN mkdir -p /data
RUN chown fetchmail:fetchmail /data
COPY fetchmail.py /fetchmail.py
USER fetchmail
CMD ["/fetchmail.py"]
CMD ["/fetchmail.py"]

View File

@ -13,7 +13,7 @@ import traceback
FETCHMAIL = """
fetchmail -N \
--idfile /data/.fetchids \
--idfile /data/.fetchids --uidl \
--sslcertck --sslcertpath /etc/ssl/certs \
-f {}
"""