diff --git a/pica-mail-mda/auth_LDAP/10-mail.conf b/pica-mail-mda/auth_LDAP/10-mail.conf index 56df2dd0e22017c113505788da364124ef1bb09b..bdfdd4edd10b00bb990e5ff4cbf7bbdc3d883a49 100644 --- a/pica-mail-mda/auth_LDAP/10-mail.conf +++ b/pica-mail-mda/auth_LDAP/10-mail.conf @@ -1,5 +1,5 @@ #dovecot 10-mail.conf default file modified in order set mail storage format and mail storage location -#all Pica alterations are commented with a #pica label +#all Pica alterations are commented with a #/!\pica label ## ## Mailbox locations and namespaces @@ -30,7 +30,7 @@ # # <doc/wiki/MailLocation.txt> # -#pica: set mail storage format and location in line with virtual users +#/!\pica: set mail storage format and location in line with virtual users mail_home = /var/vmail/%u mail_location = maildir:~/mail diff --git a/pica-mail-mda/auth_LDAP/Dockerfile b/pica-mail-mda/auth_LDAP/Dockerfile index 32246ac495b364ed8efdbe0ebd3534d5a721ab46..ceaaa7565dc8e42603092385834187fe2f61031e 100644 --- a/pica-mail-mda/auth_LDAP/Dockerfile +++ b/pica-mail-mda/auth_LDAP/Dockerfile @@ -8,15 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive #installation des paquets debian RUN apt-get update -y \ && apt-get install -y \ - dovecot-common dovecot-imapd dovecot-lmtpd \ + dovecot-common dovecot-imapd dovecot-lmtpd nano \ && rm -rf /var/lib/apt/lists/* #configuration de dovecot #adresse ip locale du lda (serveur qui réceptionne les courriers de fin de chaîne de postfix) -COPY ./dovecot-conf/10-master.conf /etc/dovecot/conf.d/10-master.conf COPY ./dovecot-conf/10-mail.conf /etc/dovecot/conf.d/10-mail.conf -COPY entrypoint_test.sh / +COPY entrypoint.sh / -ENTRYPOINT ["/entrypoint_test.sh"] +ENTRYPOINT ["/entrypoint.sh"] diff --git a/pica-mail-mda/auth_LDAP/entrypoint.sh b/pica-mail-mda/auth_LDAP/entrypoint.sh index 398528ce3cdd134dde78787491e714ff61921eb9..360eca39eedd6ecabf03190f2b56e91deae5e677 100755 --- a/pica-mail-mda/auth_LDAP/entrypoint.sh +++ b/pica-mail-mda/auth_LDAP/entrypoint.sh @@ -6,27 +6,6 @@ cat <<EOF >> /etc/dovecot/dovecot.conf protocols = imap lmtp EOF -#définition de l'emplacement des mails -cat <<EOF >> /etc/dovecot/conf.d/10-master.conf -mail_home = /var/vmail/%d/%n -mail_location = maildir:~/mail -EOF - -# enable plaintest authentication for now. -cat <<EOF >> /etc/dovecot/conf.d/10-auth.conf -disable_plaintext_auth = no -auth_verbose = yes -auth_mechanisms = plain -passdb { - driver = passwd-file - args = /etc/dovecot/passwd -} -userdb { - driver = static - args = uid=vmail gid=vmail home=/home/vmail/%u -} -EOF - #définition de l'emplacement des logs cat <<EOF >> /etc/dovecot/dovecot.conf log_path = /var/log/dovecot.log @@ -46,9 +25,10 @@ service lmtp { } EOF -#ajouter utilisateur et groupe vmail -#ajouter les fichiers de logs -adduser --disabled-password vmail +#ajouter utilisateur et groupe vmail avec password demandé à la première connexion +adduser --disabled-login vmail + +#log écrites par vmail touch /var/log/dovecot.log /var/log/dovecot-info.log chown vmail:vmail var/log/dovecot.log /var/log/dovecot-info/log