From 69f56bbb7e5b104b294c346ee1005ddcf3f4ff15 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Mon, 15 Jul 2019 11:57:04 +0200 Subject: [PATCH] Initial commit. --- Dockerfile | 7 +++++++ build | 1 + fetchmailrc-example | 2 ++ launch.sh | 3 +++ 4 files changed, 13 insertions(+) create mode 100644 Dockerfile create mode 100644 build create mode 100644 fetchmailrc-example create mode 100644 launch.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6f8f29a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM debian:wheezy +MAINTAINER yohan <783b8c87@scimetis.net> +ENV DEBIAN_FRONTEND noninteractive +RUN echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list +RUN apt-get update && apt-get -y install fetchmail +COPY fetchmailrc /etc/ +ENTRYPOINT ["/usr/bin/fetchmail", "-N", "-f", "/etc/fetchmailrc", "-d", "300"] diff --git a/build b/build new file mode 100644 index 0000000..6651bac --- /dev/null +++ b/build @@ -0,0 +1 @@ +docker build -t fetchmail . diff --git a/fetchmailrc-example b/fetchmailrc-example new file mode 100644 index 0000000..e027846 --- /dev/null +++ b/fetchmailrc-example @@ -0,0 +1,2 @@ +poll ssl0.ovh.net with protocol IMAP + username "mail@scimetis.net" with password "XXXXXXXXXXXXXXXXX" is admin here fetchall ssl idle smtphost dovecot/24 lmtp diff --git a/launch.sh b/launch.sh new file mode 100644 index 0000000..099fed4 --- /dev/null +++ b/launch.sh @@ -0,0 +1,3 @@ +docker network create mailnet +docker run -d --network=mailnet --name fetchmail fetchmail +