From 14402dd44ee8d4056ff24dda2b664f55a756b7ac Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 17:51:34 -0300 Subject: [PATCH 01/30] servicio submission con confd --- files/Dockerfile | 38 +++++++++++++++++++++++++++++++++++--- files/confd.toml | 15 +++++++++++++++ files/entrypoint.sh | 4 ++++ files/local.conf | 1 + files/submission.conf.tmpl | 14 ++++++++++++++ 5 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 files/confd.toml create mode 100755 files/entrypoint.sh create mode 100644 files/submission.conf.tmpl diff --git a/files/Dockerfile b/files/Dockerfile index 224f5bf..e62b889 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -1,7 +1,30 @@ -FROM debian:buster-slim LABEL maintainer "Mauro Torrez " +# confd ----------------------------------------------------------------------- +FROM golang:1.9-alpine as confd +ARG CONFD_VERSION=0.16.0 +ADD https://github.com/kelseyhightower/confd/archive/v${CONFD_VERSION}.tar.gz /tmp/ +RUN apk add --no-cache bzip2 make && \ + mkdir -p /go/src/github.com/kelseyhightower/confd && \ + cd /go/src/github.com/kelseyhightower/confd && \ + tar --strip-components=1 -zxf /tmp/v${CONFD_VERSION}.tar.gz && \ + go install github.com/kelseyhightower/confd && \ + rm -rf /tmp/v${CONFD_VERSION}.tar.gz +# end confd ------------------------------------------------------------------- + +FROM debian:buster-slim ARG DEBIAN_FRONTEND=noninteractive ENV LC_ALL C +ENV SUBMISSION_ENABLE= \ + SUBMISSION_RELAY_HOST= + SUBMISSION_RELAY_PORT=25 + SUBMISSION_RELAY_TRUSTED=yes \ + SUBMISSION_RELAY_USER= \ + SUBMISSION_RELAY_MASTER_USER= \ + SUBMISSION_RELAY_PASSWORD= \ + SUBMISSION_RELAY_SSL=starttls \ + SUBMISSION_RELAY_SSL_VERIFY=no \ + SUBMISSION_RELAY_RAWLOG_DIR= + RUN apt-get update && apt-get install -y --no-install-recommends \ dovecot-lmtpd \ dovecot-imapd \ @@ -9,6 +32,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ dovecot-sieve \ dovecot-managesieved \ dovecot-antispam \ + dovecot-submission \ bogofilter \ ssl-cert \ && rm -rf /var/lib/apt/lists/* \ @@ -17,7 +41,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && mkdir -p /ssl && chmod 700 /ssl \ && cp /etc/ssl/certs/ssl-cert-snakeoil.pem /ssl/cert.pem \ && cp /etc/ssl/private/ssl-cert-snakeoil.key /ssl/key.pem \ - && mkdir -p /etc/dovecot/sieve/before /etc/dovecot/sieve/after + && mkdir -p /etc/dovecot/local.d /etc/dovecot/sieve/{before,after} \ + && mkdir -p /etc/confd/{conf.d,templates} ADD 10-mail.conf \ 10-master.conf \ @@ -33,11 +58,18 @@ ADD 10-mail.conf \ ADD local.conf /etc/dovecot/ +ADD submission.conf.tmpl \ + /etc/confd/templates/ +ADD confd.toml /etc/confd/conf.d/ + ADD junk-filter.sieve /etc/dovecot/sieve/before/ RUN sievec /etc/dovecot/sieve/before && sievec /etc/dovecot/sieve/after VOLUME /etc/dovecot /ssl /vmail -EXPOSE 143/tcp 993/tcp 110/tcp 995/tcp 2000/tcp +EXPOSE 110/tcp 143/tcp 587/tcp 993/tcp 995/tcp 2000/tcp +COPY --from=confd /go/bin/confd /usr/local/bin/confd +ADD entrypoint.sh / +ENTRYPOINT /entrypoint.sh CMD dovecot -F diff --git a/files/confd.toml b/files/confd.toml new file mode 100644 index 0000000..f9a5529 --- /dev/null +++ b/files/confd.toml @@ -0,0 +1,15 @@ +[template] +src = "submission.conf.tmpl" +dest = "/etc/dovecot/local.d/submission.conf" +keys = [ + "submission/enable", + "submission/relay/host", + "submission/relay/port", + "submission/relay/trusted", + "submission/relay/user", + "submission/relay/master/user", + "submission/relay/password", + "submission/relay/ssl", + "submission/relay/ssl/verify", + "submission/relay/rawlog/dir" +] diff --git a/files/entrypoint.sh b/files/entrypoint.sh new file mode 100755 index 0000000..8427536 --- /dev/null +++ b/files/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# actualizar templates con confd +/usr/local/bin/confd -onetime -backend env +exec ${@} diff --git a/files/local.conf b/files/local.conf index 387553e..18a35ee 100644 --- a/files/local.conf +++ b/files/local.conf @@ -1 +1,2 @@ +!include_try local.d/*.conf log_path = /dev/stdout diff --git a/files/submission.conf.tmpl b/files/submission.conf.tmpl new file mode 100644 index 0000000..ae7eb7a --- /dev/null +++ b/files/submission.conf.tmpl @@ -0,0 +1,14 @@ +{{if getv "/submission/enable" == "yes"}} +protocols = $protocols submission +submission_relay_host = {{getv "/submission/relay/host"}} +submission_relay_port = {{getv "/submission/relay/port"}} +submission_relay_trusted = {{getv "/submission/relay/trusted"}} +submission_relay_user = {{getv "/submission/relay/user"}} +submission_relay_master_user = {{getv "/submission/relay/master/user"}} +submission_relay_password = {{getv "/submission/relay/password"}} +submission_relay_ssl = {{getv "/submission/relay/ssl"}} +submission_relay_ssl_verify= {{getv "/submission/relay/ssl/verify"}} +submission_relay_rawlog_dir= {{getv "/submission/relay/rawlog/dir"}} +{{else}} +# submission service disabled +{{end}} -- 2.47.2 From 32037fcee8affd067ca70934bfa4422ddb47c02e Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 17:59:32 -0300 Subject: [PATCH 02/30] fix Dockerfile syntax --- files/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/Dockerfile b/files/Dockerfile index e62b889..27bd58a 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -1,6 +1,6 @@ +FROM golang:1.9-alpine as confd LABEL maintainer "Mauro Torrez " # confd ----------------------------------------------------------------------- -FROM golang:1.9-alpine as confd ARG CONFD_VERSION=0.16.0 ADD https://github.com/kelseyhightower/confd/archive/v${CONFD_VERSION}.tar.gz /tmp/ RUN apk add --no-cache bzip2 make && \ -- 2.47.2 From 537bdadaa6f17b02b79b59daf761ae7aa5978b7e Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 18:01:15 -0300 Subject: [PATCH 03/30] add missing files for build --- tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 1d1ed41..837dba8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -23,6 +23,9 @@ - auth-master.conf.ext - junk-filter.sieve - local.conf + - entrypoint.sh + - submission.conf.tmpl + - confd.toml tags: skip_me - name: Crear imagen {{ dovecot_image }} -- 2.47.2 From 4c1a52ee33a4cd5fc5c772a47d0e9eb5b9ab451b Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 18:02:55 -0300 Subject: [PATCH 04/30] fix Dockerfile syntax --- files/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/Dockerfile b/files/Dockerfile index 27bd58a..d272d59 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -15,8 +15,8 @@ FROM debian:buster-slim ARG DEBIAN_FRONTEND=noninteractive ENV LC_ALL C ENV SUBMISSION_ENABLE= \ - SUBMISSION_RELAY_HOST= - SUBMISSION_RELAY_PORT=25 + SUBMISSION_RELAY_HOST= \ + SUBMISSION_RELAY_PORT=25 \ SUBMISSION_RELAY_TRUSTED=yes \ SUBMISSION_RELAY_USER= \ SUBMISSION_RELAY_MASTER_USER= \ -- 2.47.2 From 0dcf277e34a19d9db7317928b918c188ac7c59d8 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 18:06:35 -0300 Subject: [PATCH 05/30] rm nonexistent package --- files/Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/files/Dockerfile b/files/Dockerfile index d272d59..e0f8d76 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -32,7 +32,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ dovecot-sieve \ dovecot-managesieved \ dovecot-antispam \ - dovecot-submission \ bogofilter \ ssl-cert \ && rm -rf /var/lib/apt/lists/* \ -- 2.47.2 From bbf7e050a6e0863b846794bf3e9a6404c519d473 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 18:10:04 -0300 Subject: [PATCH 06/30] (tmp) rm failing sieve stuff --- files/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/Dockerfile b/files/Dockerfile index e0f8d76..c7dae2e 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -62,7 +62,7 @@ ADD submission.conf.tmpl \ ADD confd.toml /etc/confd/conf.d/ ADD junk-filter.sieve /etc/dovecot/sieve/before/ -RUN sievec /etc/dovecot/sieve/before && sievec /etc/dovecot/sieve/after +# RUN sievec /etc/dovecot/sieve/before && sievec /etc/dovecot/sieve/after VOLUME /etc/dovecot /ssl /vmail -- 2.47.2 From 0d18606d6d9f5da2a4627171aecec8766a72c2bb Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 18:13:34 -0300 Subject: [PATCH 07/30] +x entrypoint --- files/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/Dockerfile b/files/Dockerfile index c7dae2e..ec7bbf1 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -70,5 +70,7 @@ EXPOSE 110/tcp 143/tcp 587/tcp 993/tcp 995/tcp 2000/tcp COPY --from=confd /go/bin/confd /usr/local/bin/confd ADD entrypoint.sh / +RUN chmod +x /entrypoint.sh + ENTRYPOINT /entrypoint.sh CMD dovecot -F -- 2.47.2 From e068cc333f43fdf1d43f497fe7297e224d1d804b Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 18:18:22 -0300 Subject: [PATCH 08/30] +x confd --- files/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/Dockerfile b/files/Dockerfile index ec7bbf1..dabfa2d 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -70,7 +70,7 @@ EXPOSE 110/tcp 143/tcp 587/tcp 993/tcp 995/tcp 2000/tcp COPY --from=confd /go/bin/confd /usr/local/bin/confd ADD entrypoint.sh / -RUN chmod +x /entrypoint.sh +RUN chmod +x /entrypoint.sh /usr/local/bin/confd ENTRYPOINT /entrypoint.sh CMD dovecot -F -- 2.47.2 From 668af214f8cbb028461caf8b81fb233d05ac6e09 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 20:45:27 -0300 Subject: [PATCH 09/30] simplify confd setup - use another base image --- files/Dockerfile | 22 ++-------------------- files/entrypoint.sh | 4 ---- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100755 files/entrypoint.sh diff --git a/files/Dockerfile b/files/Dockerfile index dabfa2d..4216b4d 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -1,17 +1,5 @@ -FROM golang:1.9-alpine as confd +FROM eumau/debian:buster-slim LABEL maintainer "Mauro Torrez " -# confd ----------------------------------------------------------------------- -ARG CONFD_VERSION=0.16.0 -ADD https://github.com/kelseyhightower/confd/archive/v${CONFD_VERSION}.tar.gz /tmp/ -RUN apk add --no-cache bzip2 make && \ - mkdir -p /go/src/github.com/kelseyhightower/confd && \ - cd /go/src/github.com/kelseyhightower/confd && \ - tar --strip-components=1 -zxf /tmp/v${CONFD_VERSION}.tar.gz && \ - go install github.com/kelseyhightower/confd && \ - rm -rf /tmp/v${CONFD_VERSION}.tar.gz -# end confd ------------------------------------------------------------------- - -FROM debian:buster-slim ARG DEBIAN_FRONTEND=noninteractive ENV LC_ALL C ENV SUBMISSION_ENABLE= \ @@ -40,8 +28,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && mkdir -p /ssl && chmod 700 /ssl \ && cp /etc/ssl/certs/ssl-cert-snakeoil.pem /ssl/cert.pem \ && cp /etc/ssl/private/ssl-cert-snakeoil.key /ssl/key.pem \ - && mkdir -p /etc/dovecot/local.d /etc/dovecot/sieve/{before,after} \ - && mkdir -p /etc/confd/{conf.d,templates} + && mkdir -p /etc/dovecot/local.d /etc/dovecot/sieve/{before,after} ADD 10-mail.conf \ 10-master.conf \ @@ -68,9 +55,4 @@ VOLUME /etc/dovecot /ssl /vmail EXPOSE 110/tcp 143/tcp 587/tcp 993/tcp 995/tcp 2000/tcp -COPY --from=confd /go/bin/confd /usr/local/bin/confd -ADD entrypoint.sh / -RUN chmod +x /entrypoint.sh /usr/local/bin/confd - -ENTRYPOINT /entrypoint.sh CMD dovecot -F diff --git a/files/entrypoint.sh b/files/entrypoint.sh deleted file mode 100755 index 8427536..0000000 --- a/files/entrypoint.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -# actualizar templates con confd -/usr/local/bin/confd -onetime -backend env -exec ${@} -- 2.47.2 From 1311dc5a9c93172cf3e47defa289c9977bf47bab Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 20:51:42 -0300 Subject: [PATCH 10/30] fix --- tasks/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 837dba8..0333443 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -23,7 +23,6 @@ - auth-master.conf.ext - junk-filter.sieve - local.conf - - entrypoint.sh - submission.conf.tmpl - confd.toml tags: skip_me -- 2.47.2 From 61593e5ea1571dd75872ff52882de05ac01128d3 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 21:04:51 -0300 Subject: [PATCH 11/30] go templating ... --- files/submission.conf.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/submission.conf.tmpl b/files/submission.conf.tmpl index ae7eb7a..c3bcccc 100644 --- a/files/submission.conf.tmpl +++ b/files/submission.conf.tmpl @@ -1,4 +1,4 @@ -{{if getv "/submission/enable" == "yes"}} +{{ if eq (getv "/submission/enable") "yes"}} protocols = $protocols submission submission_relay_host = {{getv "/submission/relay/host"}} submission_relay_port = {{getv "/submission/relay/port"}} @@ -7,8 +7,8 @@ submission_relay_user = {{getv "/submission/relay/user"}} submission_relay_master_user = {{getv "/submission/relay/master/user"}} submission_relay_password = {{getv "/submission/relay/password"}} submission_relay_ssl = {{getv "/submission/relay/ssl"}} -submission_relay_ssl_verify= {{getv "/submission/relay/ssl/verify"}} -submission_relay_rawlog_dir= {{getv "/submission/relay/rawlog/dir"}} +submission_relay_ssl_verify = {{getv "/submission/relay/ssl/verify"}} +submission_relay_rawlog_dir = {{getv "/submission/relay/rawlog/dir"}} {{else}} # submission service disabled {{end}} -- 2.47.2 From 701afa6a54605e6a135470bae80e47bd1542e50f Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 21:13:52 -0300 Subject: [PATCH 12/30] cmd exec form --- files/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/Dockerfile b/files/Dockerfile index 4216b4d..546a48b 100644 --- a/files/Dockerfile +++ b/files/Dockerfile @@ -55,4 +55,4 @@ VOLUME /etc/dovecot /ssl /vmail EXPOSE 110/tcp 143/tcp 587/tcp 993/tcp 995/tcp 2000/tcp -CMD dovecot -F +CMD ["dovecot","-F"] -- 2.47.2 From 77fb4caf93e900e403d3f8c6a073b4bd984afcbf Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 9 Sep 2019 21:21:31 -0300 Subject: [PATCH 13/30] submission env vars --- tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 0333443..894c648 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -50,6 +50,16 @@ - 143:143 - 2000:2000 env: + SUBMISSION_ENABLE: "yes" + SUBMISSION_RELAY_HOST: postfix + SUBMISSION_RELAY_PORT: "25" + SUBMISSION_RELAY_TRUSTED: "yes" + # SUBMISSION_RELAY_USER: + # SUBMISSION_RELAY_MASTER_USER: + # SUBMISSION_RELAY_PASSWORD: + # SUBMISSION_RELAY_SSL: starttls + # SUBMISSION_RELAY_SSL_VERIFY: "no" + # SUBMISSION_RELAY_RAWLOG_DIR: register: container - name: Leer info de volumen {{ dovecot_volume_config }} -- 2.47.2 From 1ef3a28a71acc8955e9ff610a87ca81dc0fd5d01 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Tue, 10 Sep 2019 00:37:48 -0300 Subject: [PATCH 14/30] use confd for most settings --- defaults/main.yml | 9 +- files/10-auth.conf.tmpl | 32 +++++++ files/10-mail.conf | 12 +-- files/10-master.conf | 8 +- files/10-ssl.conf | 2 +- files/11-quota.conf | 2 - files/15-mailboxes.conf | 6 +- files/20-imap.conf | 4 +- files/20-lmtp.conf.tmpl | 5 ++ files/90-quota.conf.tmpl | 27 ++++++ files/90-sieve.conf | 26 +++--- files/Dockerfile | 12 +-- files/auth-ldap.conf.ext | 37 -------- files/auth-master.conf.ext | 16 ---- files/confd.toml | 76 +++++++++++++--- files/ldap.conf.ext.tmpl | 16 ++++ tasks/main.yml | 55 +++++++----- templates/10-auth.conf.j2 | 135 ----------------------------- templates/20-lmtp.conf.j2 | 28 ------ templates/90-quota.conf.j2 | 91 ------------------- templates/dovecot-ldap.conf.ext.j2 | 75 ---------------- 21 files changed, 219 insertions(+), 455 deletions(-) create mode 100644 files/10-auth.conf.tmpl delete mode 100644 files/11-quota.conf create mode 100644 files/20-lmtp.conf.tmpl create mode 100644 files/90-quota.conf.tmpl delete mode 100644 files/auth-ldap.conf.ext delete mode 100644 files/auth-master.conf.ext create mode 100644 files/ldap.conf.ext.tmpl delete mode 100644 templates/10-auth.conf.j2 delete mode 100644 templates/20-lmtp.conf.j2 delete mode 100644 templates/90-quota.conf.j2 delete mode 100644 templates/dovecot-ldap.conf.ext.j2 diff --git a/defaults/main.yml b/defaults/main.yml index 5ba7f17..aadd826 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -25,9 +25,6 @@ dovecot_auth_mechanisms: plain # como transformar el nombre de usuario antes de autenticar dovecot_auth_username_format: "%Lu" -# habilitar userdb/passdb de usuarios del sistema? -dovecot_auth_system_enable: no - # habilitar usuarios master? dovecot_auth_master_enable: no @@ -36,10 +33,16 @@ dovecot_auth_master_enable: no # habilitar userdb/passdb ldap? dovecot_ldap_enable: yes +# servidores ldap +dovecot_ldap_hosts: [] + # servidores ldap dovecot_ldap_uris: - "{{ ldap_uri | default('ldap://localhost') }}" +# autenticar con clave provista por usuario +dovecot_ldap_bind: yes + # version del protocolo LDAP dovecot_ldap_version: 3 diff --git a/files/10-auth.conf.tmpl b/files/10-auth.conf.tmpl new file mode 100644 index 0000000..839056f --- /dev/null +++ b/files/10-auth.conf.tmpl @@ -0,0 +1,32 @@ +auth_realms = {{ getv "/mail/domains" }} +auth_default_realm = {{ first 1 (split (getv "/mail/domains") " ") }} +auth_username_format = {{ getv "/auth/username/format" }} +auth_mechanisms = {{ getv "/auth/mechanisms" }} + + +{{ if eq (getv "/auth/master/enable") "yes"}} +passdb { + driver = passwd-file + master = yes + args = /etc/dovecot/master-users + +# Unless you're using PAM, you probably still want the destination user to + # be looked up from passdb that it really exists. pass=yes does that. + pass = yes +} +{{ end }} + + +{{ if eq (getv "/auth/ldap/enable") "yes"}} +passdb { + driver = ldap + args = /etc/dovecot/local.d/ldap.conf.ext +} +userdb { + driver = prefetch +} +userdb { + driver = ldap + args = /etc/dovecot/local.d/ldap2.conf.ext +} +{{ end }} diff --git a/files/10-mail.conf b/files/10-mail.conf index 2a00ca3..c95f005 100644 --- a/files/10-mail.conf +++ b/files/10-mail.conf @@ -7,7 +7,7 @@ namespace inbox { # Namespace type: private, shared or public #type = private separator = / - #prefix = + #prefix = #location = # There can be only one INBOX, and this setting defines which namespace @@ -51,7 +51,7 @@ mail_gid = vmail # A comment or note that is associated with the server. This value is # accessible for authenticated users through the IMAP METADATA server -# entry "/shared/comment". +# entry "/shared/comment". #mail_server_comment = "" # Indicates a method for contacting the server administrator. According to @@ -59,7 +59,7 @@ mail_gid = vmail # is currently not enforced. Use for example mailto:admin@example.com. This # value is accessible for authenticated users through the IMAP METADATA server # entry "/shared/admin". -#mail_server_admin = +#mail_server_admin = ## ## Mail processes @@ -112,7 +112,7 @@ mail_gid = vmail # WARNING: Never add directories here which local users can modify, that # may lead to root exploit. Usually this should be done only if you don't # allow shell access for users. -#valid_chroot_dirs = +#valid_chroot_dirs = # Default chroot directory for mail processes. This can be overridden for # specific users in user database by giving /./ in user's home directory @@ -120,7 +120,7 @@ mail_gid = vmail # need to do chrooting, Dovecot doesn't allow users to access files outside # their mail directory anyway. If your home directories are prefixed with # the chroot directory, append "/." to mail_chroot. -#mail_chroot = +#mail_chroot = # UNIX socket path to master authentication server to find users. # This is used by imap (for shared users) and lda. @@ -237,7 +237,7 @@ mailbox_list_index = yes # fallbacks to re-reading the whole mbox file whenever something in mbox isn't # how it's expected to be. The only real downside to this setting is that if # some other MUA changes message flags, Dovecot doesn't notice it immediately. -# Note that a full sync is done with SELECT, EXAMINE, EXPUNGE and CHECK +# Note that a full sync is done with SELECT, EXAMINE, EXPUNGE and CHECK # commands. #mbox_dirty_syncs = yes diff --git a/files/10-master.conf b/files/10-master.conf index d5c907b..d7dfb7c 100644 --- a/files/10-master.conf +++ b/files/10-master.conf @@ -88,8 +88,8 @@ service auth { # permissions (e.g. 0777 allows everyone full permissions). unix_listener auth-userdb { #mode = 0666 - #user = - #group = + #user = + #group = } inet_listener { @@ -112,7 +112,7 @@ service dict { # For example: mode=0660, group=vmail and global mail_access_groups=vmail unix_listener dict { #mode = 0600 - #user = - #group = + #user = + #group = } } diff --git a/files/10-ssl.conf b/files/10-ssl.conf index e60f526..39c821d 100644 --- a/files/10-ssl.conf +++ b/files/10-ssl.conf @@ -21,7 +21,7 @@ ssl_key = :]path[;