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

Ajout de la connexion LDAP pour la search base

parent 9e07a2b7
No related branches found
No related tags found
1 merge request!20pica-mailnt
......@@ -13,6 +13,11 @@ ENV MY_HOSTNAME pica01-test.test.picasoft.net
#noms de domaines de courriers qu'on s'autorise à transmettre, séparés par des virgules (example.com, example2.com, example3.com)
ENV RELAY_DOMAINS picasoft.net
#serveur LDAP
ENV LDAP_SERVER ldap.test.picasoft.net
#postfix: search_base pour l'existence d'adresses @picasoft.net
ENV LDAP_POSTFIX_SEARCH_BASE dc=picasoft, dc=net
#installation de postfix
RUN apt-get update -y \
&& apt-get install -y \
......
......@@ -21,6 +21,11 @@ postconf -e "smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net"
#configuration LDAP
#source d'alias : le serveur LDAP et les alias locaux
cat <<EOF > /etc/postfix/ldap-aliases.cf
server_host = ${LDAP_SERVER}
search_base = ${LDAP_POSTFIX_SEARCH_BASE}
EOF
postconf -e "alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-aliases.cf"
#démarrage premier plan
......
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