LDAP sync works, but webmail authentication does not

Hello, I have a new standalone server and I’m trying and failing to configure it to use Active Directory backend for users.

Actually, the sync works, so accounts are being imported to Axigen, but the authentication in WebMail as a user fails.

Here’s my config section for ldap:

    ldapConnectors = (
        {
            name = "TEST-A"
            ldapURI1 = "ldap://xx.xx.xx.251:389"
            ldapURI2 = "ldap://xx.xx.xx.252:389"
            ldapURI3 = ""
            ldapURI4 = ""
            ldapURI5 = ""
            serverType = ActiveDirectory
            timeout = 4
            pollingInterval = 10
            transientErrorRetryInterval = 5
            bindDN = "CN=Someuser,OU=People,OU=SoMeOu,DC=domain,DC=ro"
            bindPass = ""
            axigenHostField = ""
            clusteredSetup = no
            synchronizationDirection = axigenToLdap
            synchronizationConflictResolution = axigenWins
            ignoreLDAPDeletes = yes
            searchDomainAliases = no
            accountBaseDN = "OU=People,OU=SoMeOu,DC=domain,DC=ro"
            groupBaseDN = "OU=People,OU=SoMeOu,DC=domain,DC=ro"
            useCustomSchema = no
            customSchemaFile = "schema_mail_auth.cfg"
            replicaId = 0
        }
    )


Also, here are some relevant logs. First chunk is the sync operation and the second one is one user’s attempt to login, which fails.

2026-06-18 22:03:05 +0300 08 SERVER-A WEBADMIN:0000015D: LDAP synchronization job requested to stop
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: LDAP bind succesful for hosturl=‘xx.xx.xx.251:389’
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: LDAP connector “tEST-A” (re)initialized on domain “domain.tld”
2026-06-18 22:03:05 +0300 08 SERVER-A WEBADMIN:0000015D: LDAP synchronization job requested to stop
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: LDAP bind succesful for hosturl=‘xx.xx.xx.251:389’
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: LDAP bind succesful for hosturl=‘xx.xx.xx.252:389’
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: LDAP connector “tEST-A” (re)initialized on domain “domain.tld”
2026-06-18 22:03:05 +0300 08 SERVER-A WEBADMIN:0000015D: LDAP inquire job started
2026-06-18 22:03:05 +0300 08 SERVER-A WEBADMIN:0000015D: Success: update AUTHENTICATION service configuration
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: LDAP synchronization L2A started on domain domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: LDAP bind succesful for hosturl=‘xx.xx.xx.251:389’
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: Connected to server ldap://xx.xx.xx.251:389 from domain domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A WEBADMIN:0000015D: POST /?_h=ca8e4220e129eef6c543304783d329d4&section=ldap&page=clslc&action=edit&connectorKey=tEST%2DA HTTP/1.1 u=admin code=200 time=31
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: Search fetched 2 changes on domain domain.tld (2 unchanged, 0 added, 0 modified, 0 deleted)
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: Begin synchronize ADD/MODIFY operation on user entry AA01DD8A-B9C9-944C-9A3F-64B91CEEEF01 in domain domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: Current synchronize target is user user_1 with entry id AA01DD8A-B9C9-944C-9A3F-64B91CEEEF01 in domain domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A JOBLOG:80000000: Started mail search index job for user user_1@domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A JOBLOG:A0000000: Started calendar search index job for user user_1@domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A JOBLOG:C0000000: Started contact search index job for user user_1@domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A JOBLOG:B0000000: Started sort index job for user user_1@domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: End synchronize ADD/MODIFY operation on user entry AA01DD8A-B9C9-944C-9A3F-64B91CEEEF01 in domain domain.tld with result ‘Success’
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: Begin synchronize ADD/MODIFY operation on user entry A3B6100F-F25F-924E-A75D-3CEEA07905ED in domain domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: Current synchronize target is user user_2 with entry id A3B6100F-F25F-924E-A75D-3CEEA07905ED in domain domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A JOBLOG:80000000: Started mail search index job for user user_2@domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A JOBLOG:A0000000: Started calendar search index job for user user_2@domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A JOBLOG:C0000000: Started contact search index job for user user_2@domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A JOBLOG:B0000000: Started sort index job for user user_2@domain.tld
2026-06-18 22:03:05 +0300 08 SERVER-A USERDB:00000002: End synchronize ADD/MODIFY operation on user entry A3B6100F-F25F-924E-A75D-3CEEA07905ED in domain domain.tld with result ‘Success’
2026-06-18 22:03:06 +0300 08 SERVER-A WEBADMIN:0000015D: Success: update AUTHENTICATION service configuration

2026-06-18 22:07:04 +0300 08 SERVER-A USERDB:00000000: LDAP init successful for hosturl=‘ldap://xx.xx.xx.251:389,ldap://xx.xx.xx.252:389’
2026-06-18 22:07:04 +0300 08 SERVER-A USERDB:00000000: LDAP bind succesful for hosturl=‘xx.xx.xx.251:389’
2026-06-18 22:07:04 +0300 08 SERVER-A USERDB:00000161: LDAP search successful.
2026-06-18 22:07:04 +0300 02 SERVER-A USERDB:00000161: LDAP user not found.
2026-06-18 22:07:04 +0300 02 SERVER-A WEBMAIL:00000161: Authentication error for user ‘user_1@domain.tld’: Account not found
2026-06-18 22:07:04 +0300 08 SERVER-A WEBMAIL:00000161: <> POST /api/v1/login/cookie HTTP/1.1 u= code=401 time=103
2026-06-18 22:07:04 +0300 08 SERVER-A WEBMAIL:00000161: connection closed with [xx.xx.xx.5:39386]

Any idea would be much appreciated.

Regards,