From 3a8bf5519e30e1085b4eb2b425ff7137d26a5de8 Mon Sep 17 00:00:00 2001 From: knoflook Date: Mon, 4 Dec 2023 16:44:36 +0100 Subject: [PATCH] wip: experimental fetchmail support --- .env.sample | 6 ++++-- compose.fetchmail.yml | 14 ++++++++++++++ compose.yml | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 compose.fetchmail.yml diff --git a/.env.sample b/.env.sample index f71e3d6..035b649 100644 --- a/.env.sample +++ b/.env.sample @@ -85,6 +85,8 @@ RELAYHOST= # Enable fetchmail FETCHMAIL_ENABLED=False +#COMPOSE_FILE="$COMPOSE_FILE:compose.fetchmail.yml" +#FETCHMAIL_ENABLED=True # Fetchmail delay FETCHMAIL_DELAY=600 @@ -116,7 +118,7 @@ COMPRESSION_LEVEL= # Mailman settings # NOTE(3wc): remember to also set RELAYNETS -#COMPOSE_FILE="compose.yml:compose.mailman.yml" +#COMPOSE_FILE="$COMPOSE_FILE:compose.mailman.yml" #MAILMAN_POSTFIX_OVERRIDES=1 #MAILMAN_CORE_VOLUME=lists_example_com_mailman-core #MAILMAN_CORE_NETWORK=lists_example_com_internal @@ -126,7 +128,7 @@ COMPRESSION_LEVEL= # return-path: https://www.rubydoc.info/gems/actionmailer-rack-upgrade-2/2.3.15/ActionMailer/Base # logins and MAIL FROM ownership: http://www.postfix.com/postconf.5.html#smtpd_relay_restrictions # there is an open ticket with a further discussion also https://github.com/Mailu/Mailu/issues/1096 -#COMPOSE_FILE="compose.yml:compose.senderlogins.yml" +#COMPOSE_FILE="$COMPOSE_FILE:compose.senderlogins.yml" #SENDER_LOGINS_POSTFIX_OVERRIDES=1 SECRET_SECRET_KEY_VERSION=v1 diff --git a/compose.fetchmail.yml b/compose.fetchmail.yml new file mode 100644 index 0000000..b186b5c --- /dev/null +++ b/compose.fetchmail.yml @@ -0,0 +1,14 @@ + +services: + fetchmail: + image: ghcr.io/mailu/fetchmail:2.0.34 + environment: *default-env + volumes: + - "fetchmail:/data" + depends_on: + - app + networks: + - default + +volumes: + fetchmail: diff --git a/compose.yml b/compose.yml index 261bc2a..54b594a 100644 --- a/compose.yml +++ b/compose.yml @@ -18,6 +18,7 @@ x-environment: - DMARC_RUF - DOCKER_CONTEXT - DOMAIN + - FETCHMAIL_ENABLED - FETCHMAIL_DELAY - FULL_TEXT_SEARCH - HOSTNAMES