Skip to content
Snippets Groups Projects
Unverified Commit 60a155d0 authored by Roma's avatar Roma Committed by Rémy Huet
Browse files

bug on config file generation fixed

parent dad9c8a0
No related branches found
No related tags found
1 merge request!20pica-mailnt
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment