mirror of
https://github.com/lldap/lldap.git
synced 2026-03-31 15:07:48 +01:00
1.7 KiB
1.7 KiB
Stalwart Mailserver
Stalwart-mailserver is a Production-ready full-stack but simple mail server (SMTP, JMAP, IMAP, Sieve, LDAP, Antispam, Antivirus, etc.) written in Rust.
To integrate with LLDAP,
-
Create "manager" user, & make sure to add it to lldap_strict_readonly group for bind permission
-
Create "mail" group, & add users requiring email access
-
Ensure you correctly add the following ldap settings to your Stalwart
config.toml.
Config.toml File Sample - (only the ldap portion)
[storage]
directory = "ldap"
[directory]
[directory.ldap]
base-dn = "dc=example,dc=org"
timeout = "30s"
type = "ldap"
url = "ldap://ldap.domain.example.org:3890"
[directory.ldap.attributes]
class = "objectClass"
email = "mail"
groups = "member"
name = "uid"
secret = "dummyStalwartSecret"
[directory.ldap.attributes.description]
0 = "displayName"
[directory.ldap.bind]
dn = "uid=manager,ou=people,dc=example,dc=org"
secret = "<YOUR_MANAGER_PASSWORD>"
[directory.ldap.bind.auth]
dn = "uid=?,ou=people,dc=example,dc=org"
enable = true
search = true
[directory.ldap.bind.filter]
email = "(&(|(objectClass=person)(member=cn=mail,ou=groups,dc=example,dc=org))(mail=?))"
name = "(&(|(objectClass=person)(member=cn=mail,ou=groups,dc=example,dc=org))(uid=?))"
[directory.ldap.cache]
entries = 500
[directory.ldap.filter]
email = "(&(objectclass=person)(mail=?))"
name = "(&(objectclass=person)(uid=?))"
[directory.ldap.tls]
allow-invalid-certs = true
enable = false