1

Topic: iRedMail with Proxmox Mail gateway LDAP

Hi there,
I'm running the latest version of iRedmail CE and Proxmox mail gateway. I'm trying to setup proxmox to lookup users in the iRedMail LDAP database.
I currently have this working to a certain degree. User accounts lookups seem to be going allright but I have no idea on how to do group lookups.

I've tried different settings but non the seem to work. My current LDAP settings in proxmox are:
Enable: On
Profile name: mailusers
Protocol: ldap
Server: fqdn of iRedMail
Server: fqdn of iRedMail
Port: 389
Username: cn=vmail,dc=domain,dc=tld
Password: password
Base DN: o=domains,dc=domain,dc=tld
Base DN (groups): o=domains,dc=domain,dc=tld
Email attribute name: mail
Account attribute name:
LDAP filter: blank
Group ObjectClass:

Any ideas what I should fill in at Base DN (groups), Account attribute name, LDAP filter and Group ObjectClass?

Any help would be much appreciated.

cheers.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail with Proxmox Mail gateway LDAP

You can try this:

- Base DN (groups): o=domains,dc=domain,dc=tld
- Email attribute name: mail
- Account attribute name: mail
- LDAP filter: "(&(objectClass=mailUser)(accountStatus=active))"
- Group ObjectClass: "mailList"

I suggest try to add some accounts first, then export their LDIF data and check what you want to query and return.

The LDAP structure / tree is like this:

o=domains,dc=xx,dc=xx
    |- domainName=mydomain.com
        |- ou=Users
            |- mail=user-1@mydomain.com
            |- mail=user-2@mydomain.com
        |- ou=Groups
            |- mail=group-1@mydomain.com
            |- mail=group-2@mydomain.com
        |- ou=Aliases
            |- mail=alias-1@mydomain.com
            |- mail=alias-2@mydomain.com
    |- domainName=mydomain-2.com