From 60a155d08179a70f517ed5730842d3915d7203d8 Mon Sep 17 00:00:00 2001 From: CdRom1 <r.maliach@live.fr> Date: Mon, 8 Oct 2018 11:29:28 +0200 Subject: [PATCH] bug on config file generation fixed --- pica-mail-mda/entrypoint.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pica-mail-mda/entrypoint.sh b/pica-mail-mda/entrypoint.sh index bd931706..ca3b02e8 100755 --- a/pica-mail-mda/entrypoint.sh +++ b/pica-mail-mda/entrypoint.sh @@ -2,18 +2,15 @@ #protocoles supportés par le mda #lmtp est le protocole permettant de faire du lda -cat <<EOF > /etc/dovecot/dovecot.conf +cat <<EOF >> /etc/dovecot/dovecot.conf protocols = imap lmtp EOF #on enlève la communication lmtp en socket unix... #il faut récupérer l'adresse IP par laquelle le conteneur communique avec son hôte -ip address show eth0 | grep inet | cut -b 10-19 ETH0_ADRESS=$(ip address show eth0 | grep inet | cut -b 10-19) -cat <<EOF > /etc/dovecot/conf.d/10-master.conf -pica: lmtp (local delivery agent) via tcp, in order to allow connections from hosts on local network (i.e. VMs on Alice & Bob) -a config block like this will be added at compilation: +cat <<EOF >> /etc/dovecot/conf.d/10-master.conf service lmtp { inet_listener lmtp { address = ${ETH0_ADRESS} 127.0.0.1 ::1 -- GitLab