diff --git a/pica-mail-mda/entrypoint.sh b/pica-mail-mda/entrypoint.sh index bd931706610d90c208236dc8932a580e8776f9a0..ca3b02e8cbf4f54444ab77e9079143ad91bbb6e2 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