Connect the SEPPmail Admin GUI to Active Directory: Configure LDAP Authentication Starting with 15.0.6
Starting with firmware 15.0.6, administrators of the SEPPmail appliance can authenticate against an external LDAP server such as Active Directory, including group mapping to the local admin group. Configuration under User > Advanced Settings, step by step.
Through firmware 15.0.5, the administration interface of the SEPPmail Secure E-Mail Gateway supported only local accounts. To manage this properly, you had to create a separate local user for each administrator and add it to the admin group. This works, but it has the usual drawbacks of local accounts: separate passwords for each appliance, no centralized offboarding, and no enforcement of password policies from the directory service. This changes with patch release 15.0.6. The Admin GUI can now authenticate administrators against an external LDAP server such as Active Directory and map AD groups to local appliance groups.
The other changes in the release are summarized in the article SEPPmail 15.0.6 and 15.0.6.1. This article covers only the new external authentication.
What the feature does
According to the Extended Release Notes, version 15.0.6 adds a new External Authentication section under User > Advanced Settings. This allows the Admin GUI to authenticate against an external LDAP server and maps external groups (such as AD security groups) to local appliance groups.
Externally authenticated users appear locally on the appliance and behave like local users, with one difference: Their password cannot be changed on the appliance because it resides on the external LDAP server. Password control therefore moves entirely to the directory.
An important distinction: The appliance already supported external authentication, but only for the GINA web interface, configured per Managed Domain (the External authentication section in the domain configuration). New in 15.0.6 is that access to the administration interface itself can also use LDAP.
I am still testing whether the HIN Mailgateway has also received LDAP sign-in support and will update the article afterward. Since HIN appliances are based on the same SEPPmail firmware, I expect that it has.
Prerequisites
Before configuration, three things should be in place:
- Firmware 15.0.6.1: The feature was introduced with 15.0.6; because of the release’s two RuleEngine errors, the 15.0.6.1 hotfix is the right choice straight away.
- An LDAP-capable directory: Active Directory, OpenLDAP, or equivalent. If users exist only in Entra ID, which does not itself support LDAP, Microsoft Entra Domain Services provides the bridge.
- A bind account in the directory: A dedicated, unprivileged service account with read access that the appliance uses to perform LDAP searches. Not a Domain Administrator.
- An AD group for gateway administrators: For example, a SEPPmail-Admins security group that will later be mapped to the local admin group. Membership in this group then determines full administrative access.
TLS is enabled by default in the connection settings and should remain enabled; administrators’ credentials do not belong on the network unencrypted. The appliance must be able to reach the LDAP server on the configured port (usually 636 for LDAPS).
Configuration under User > Advanced Settings
The configuration is located in the Admin GUI under User > Advanced Settings, in the External Authentication section, and consists of four blocks.
1. Connection Settings: The Authenticate users to external LDAP server (e.g. Active Directory) checkbox enables the feature. This is followed by the server address, port, the TLS required option, and the bind DN and bind password of the service account.
2. User Attributes: This defines how the appliance finds user objects: the LDAP Object Class (typically person for Active Directory), the Search Base (the OU or container containing the administrator accounts), and the email attribute (default: mail).
3. Group Attributes: Similarly, these are the settings for group objects so the appliance can resolve group memberships.
4. Mapping Settings: This is the crucial part. Under Remote Group, select the group from the LDAP server; under Local Group, select one or more local groups to which it is mapped. For full administrative access, this is the admin group; its members have the same privileges as the default admin user. For more granular access, map to restricted groups such as readonly admin or to function-specific appliance groups instead.
Before saving, it is worth using the built-in Login Test: Enter a test account’s username and password to verify connectivity, search, and authentication before activating the configuration.
Example configurations
The following values must be adapted to your own environment (example domain: example.com). The field names correspond to the appliance’s External Authentication section.
Active Directory
| Field | Value |
|---|---|
| Server | dc01.example.com |
| Port | 636 |
| TLS required | enabled |
| Bind DN | CN=svc-seppmail,OU=ServiceAccounts,DC=example,DC=com |
| Bind Password | Service account password |
| User: LDAP Object Class | person |
| User: Search Base | OU=IT,DC=example,DC=com |
| User: E-Mail Attribute | |
| Group: LDAP Object Class | group |
| Group: Search Base | OU=Groups,DC=example,DC=com |
| Mapping: Remote Group | SEPPmail-Admins |
| Mapping: Local Group | admin |
Notes on Active Directory: Any reachable domain controller is suitable as the server; in environments with multiple sites, a DC at the same site or an alias pointing to multiple DCs is recommended. Port 636 is LDAPS; the appliance must be able to validate the DC certificate. The Search Base should be narrow enough to contain the administrator accounts without including the entire directory. The mail attribute must be populated on the AD accounts.
OpenLDAP
| Field | Value |
|---|---|
| Server | ldap01.example.com |
| Port | 636 |
| TLS required | enabled |
| Bind DN | cn=seppmail,ou=services,dc=example,dc=com |
| Bind Password | Service account password |
| User: LDAP Object Class | inetOrgPerson |
| User: Search Base | ou=people,dc=example,dc=com |
| User: E-Mail Attribute | |
| Group: LDAP Object Class | groupOfNames |
| Group: Search Base | ou=groups,dc=example,dc=com |
| Mapping: Remote Group | seppmail-admins |
| Mapping: Local Group | admin |
Notes on OpenLDAP: In typical setups, users are stored as inetOrgPerson under ou=people. For groups, groupOfNames is the reliable choice because membership is represented there through the member attribute using the full DN. By contrast, posixGroup groups list members only as memberUid (a username rather than a DN); whether the appliance resolves this is not documented and should be tested with Login Test before making the switch. If the server supports only STARTTLS on port 389, enter the corresponding port in the Server field; the connection should never run unencrypted.
Operational notes
Three points deserve attention before LDAP sign-in becomes the only way to access the appliance:
- Keep local emergency access. External users’ passwords reside on the LDAP server. If the directory is unavailable (because of a network issue, AD maintenance, or because the gateway is intended to fix an issue with that very network), you still need a local administrator account with a securely stored password. The default admin user should therefore not be eliminated, but maintained as documented emergency access.
- MFA remains relevant. Version 15.0.6 also revised MFA sign-in: The second factor is no longer appended to the password but requested in a separate field. External authentication does not replace the second factor.
- Offboarding through the directory. This is the real benefit of the integration: When an administrator leaves the company, it is enough to disable the AD account or remove it from the mapped group. The previous need to maintain local accounts on every appliance is eliminated. However, locally visible, externally authenticated user objects should still be reconciled with the directory periodically.
Conclusion
LDAP authentication for the Admin GUI closes a long-standing gap in the appliance: Administrator access can now be managed centrally in the directory rather than on each device. Together with the separate MFA field, version 15.0.6 significantly improves sign-in to the administration interface in a single release. Anyone introducing the feature should keep group mapping deliberately restrictive and retain local emergency access.
Comments
Comments are loaded from GitHub / Giscus.