From 22d77b31584e28b5fd01c4453232ff444e6066ef Mon Sep 17 00:00:00 2001 From: Joshua Sharp Date: Tue, 8 Mar 2022 17:31:24 -0500 Subject: [PATCH] added ldap install/config --- setup/mail-dovecot.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/setup/mail-dovecot.sh b/setup/mail-dovecot.sh index 26d32895..ae3bbfc0 100755 --- a/setup/mail-dovecot.sh +++ b/setup/mail-dovecot.sh @@ -26,7 +26,7 @@ source /etc/mailinabox.conf # load global vars echo "Installing Dovecot (IMAP server)..." apt_install \ dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-sqlite sqlite3 \ - dovecot-sieve dovecot-managesieved + dovecot-sieve dovecot-managesieved dovecot-ldap # The `dovecot-imapd`, `dovecot-pop3d`, and `dovecot-lmtpd` packages automatically # enable IMAP, POP and LMTP protocols. @@ -216,5 +216,14 @@ ufw_allow pop3s # Allow the Sieve port in the firewall. ufw_allow sieve +#LDAP Auth Settings +tools/editconf.py /etc/dovecot/dovecot-ldap.conf.ext \ + hosts= https://ldap.jumpcloud.com/\ + dn= o=6213e55079447567c1073191,dc=jumpcloud,dc=com\ + dnpass=secret + tls=yes + auth_bind=yes + auth_bind_userdn =ou=Users,o=6213e55079447567c1073191,dc=jumpcloud,dc=com + # Restart services. restart_service dovecot