From 9890e1fb2a49e6d185ca98f81b47c9fbe491a71c Mon Sep 17 00:00:00 2001 From: kaiyou Date: Thu, 27 Sep 2018 16:13:02 +0200 Subject: [PATCH] Fix the dovecot configuration path --- core/dovecot/Dockerfile | 1 - core/dovecot/conf/dovecot.conf | 6 +++--- core/dovecot/start.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/dovecot/Dockerfile b/core/dovecot/Dockerfile index 670acc9b..49964c6a 100644 --- a/core/dovecot/Dockerfile +++ b/core/dovecot/Dockerfile @@ -6,7 +6,6 @@ RUN apk add --no-cache \ && pip3 install jinja2 podop COPY conf /conf -COPY sieve /var/lib/dovecot COPY start.py /start.py EXPOSE 110/tcp 143/tcp 993/tcp 4190/tcp 2525/tcp diff --git a/core/dovecot/conf/dovecot.conf b/core/dovecot/conf/dovecot.conf index 877a1a3c..d6c4eb21 100644 --- a/core/dovecot/conf/dovecot.conf +++ b/core/dovecot/conf/dovecot.conf @@ -142,7 +142,7 @@ plugin { sieve_global_extensions = +vnd.dovecot.execute # Sieve execute - sieve_execute_bin_dir = /etc/dovecot/bin + sieve_execute_bin_dir = /conf/bin # Send vacation replies even for aliases # See the Pigeonhole documentation about warnings: http://wiki2.dovecot.org/Pigeonhole/Sieve/Extensions/Vacation @@ -161,11 +161,11 @@ plugin { # Learn from spam imapsieve_mailbox1_name = Junk imapsieve_mailbox1_causes = COPY - imapsieve_mailbox1_before = file:/etc/dovecot/report-spam.sieve + imapsieve_mailbox1_before = file:/conf/report-spam.sieve imapsieve_mailbox2_name = * imapsieve_mailbox2_from = Junk imapsieve_mailbox2_causes = COPY - imapsieve_mailbox2_before = file:/etc/dovecot/report-ham.sieve + imapsieve_mailbox2_before = file:/conf/report-ham.sieve } ############### diff --git a/core/dovecot/start.py b/core/dovecot/start.py index 04f7ca50..9b3aa008 100755 --- a/core/dovecot/start.py +++ b/core/dovecot/start.py @@ -22,7 +22,7 @@ convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read() # Actual startup script os.environ["FRONT_ADDRESS"] = socket.gethostbyname(os.environ.get("FRONT_ADDRESS", "front")) -for dovecot_file in glob.glob("/conf/*"): +for dovecot_file in glob.glob("/conf/*.conf"): convert(dovecot_file, os.path.join("/etc/dovecot", os.path.basename(dovecot_file))) # Run Podop, then postfix