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:
parent
2404cf2e3d
commit
92e65b33e0
@ -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"]
|
@ -13,7 +13,7 @@ import traceback
|
||||
|
||||
FETCHMAIL = """
|
||||
fetchmail -N \
|
||||
--idfile /data/.fetchids \
|
||||
--idfile /data/.fetchids --uidl \
|
||||
--sslcertck --sslcertpath /etc/ssl/certs \
|
||||
-f {}
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user