mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-18 02:32:09 +00:00
added ldap install/config
This commit is contained in:
parent
a86f655bb2
commit
22d77b3158
@ -26,7 +26,7 @@ source /etc/mailinabox.conf # load global vars
|
|||||||
echo "Installing Dovecot (IMAP server)..."
|
echo "Installing Dovecot (IMAP server)..."
|
||||||
apt_install \
|
apt_install \
|
||||||
dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-sqlite sqlite3 \
|
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
|
# The `dovecot-imapd`, `dovecot-pop3d`, and `dovecot-lmtpd` packages automatically
|
||||||
# enable IMAP, POP and LMTP protocols.
|
# enable IMAP, POP and LMTP protocols.
|
||||||
@ -216,5 +216,14 @@ ufw_allow pop3s
|
|||||||
# Allow the Sieve port in the firewall.
|
# Allow the Sieve port in the firewall.
|
||||||
ufw_allow sieve
|
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 services.
|
||||||
restart_service dovecot
|
restart_service dovecot
|
||||||
|
Loading…
Reference in New Issue
Block a user