Created on 10-10-2025 04:14 AM Edited on 10-10-2025 05:29 AM
Description | This article describes guidance on configuring LDAP-based Mail routing in FortiMail. | |||||||||||||||||||||||||||
Scope | FortiMail. | |||||||||||||||||||||||||||
Solution |
When an email is accepted, FortiMail can query the LDAP server using the 'User Query' with the recipient’s email address, and retrieve specific attributes defined under Mail Routing to determine the mail host for message delivery.
On the AD server: Create new mailHost and mailRoutingAddress custom attributes on AD and assign the values to the attributes on the required user. Alternatively, use the existing unused attributes from the AD for Mail host attribute and Mail routing address attribute. In this example, the attributes 'division' and 'desktopProfile' are used, using the Attribute Editor:
Configure the mailHost attribute for the required users, setting its value to the IP address or FQDN of the appropriate exchange or mail server.
Optional: Configure the mailRoutingAddress attribute LDAP attribute for the required users, setting its value to the email address of the intended recipient on the email server.
For the tests using the following configuration on the AD server:
The attributes for the account with mail address user1@labfmlemea.com have not been configured with any values for the attribute division and desktopProfile.
The attributes for the account with mail address internal3@labfmlemea.com.
The attributes for the account with mail address test1@labfmlemea.com.
LDAP profile configuration on FortiMail:
Note: LDAP cache is enabled by default. Go to Domain & User -> Domain -> Domain. Select a row to modify it. Expand the LDAP Option section. Configure the following: Mail routing profile. Assign the LDAP profile created for Mail Routing.
The example logs for the emails received for the recipient user1@labfmlemea.com:
The example logs for the emails received for the recipient test1@labfmlemea.com:
The example logs for the emails received for the recipient Internal3@labfmlemea.com:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.