Back to Blog Home
Jan 27, 2025

How to Integrate Axigen with Microsoft Entra ID for WebMail Authentication

This guide explains how to set up WebMail authentication delegation from Axigen to Microsoft Entra ID (formerly Azure AD) using OpenID Connect (OIDC). It focuses on direct integration with Microsoft Entra ID, while a separate guide will cover the Axigen-Keycloak-Microsoft Entra ID configuration.

Note: This integration is designed exclusively for authentication and does not support account synchronization between Microsoft Entra ID and Axigen’s hosted domains and accounts.

axigen-microsoft-entra-id-webmail-auth

Prerequisites

Before you start, ensure you have:

  1. A functional Axigen installation with domains and accounts already created.
  2. Valid SSL certificates for the WebMail service listeners.
  3. Access to a Microsoft Entra ID tenant with permissions to create App Registrations.

Step 1: Create a New Application in Microsoft Entra ID

  • Log in to Microsoft Azure
  • Register a New Application 
    • Go to App Registrations and click + New registration.
      entra-app-registrations
    • Provide a meaningful name, such as “Axigen” or “AxigenServer.” Remember that this is the name your users will see on their first login when asked to authorize this app for their accounts.
    • Under “Supported account types,” select Accounts in this organizational directory only (single tenant).
    • For “Redirect URI (optional),” choose Web and enter:

      https://<HOSTNAME_OF_YOUR_ON_PREM_AXIGEN_SERVER>:443/?action=oauthLogin&custom=ajaxdirect

      Replace the port if your Axigen server uses a custom HTTPS port.

    • Click Register.
  • Save Key Details
    • Note the Application (client) ID (<VALUE_OF_APPLICATION_(CLIENT)_ID>) and Directory (tenant) ID (<VALUE_OF_DIRECTORY_(TENANT)_ID>) for later configuration.
      entra-key-details
  • Create a Client Secret
    • Under “Manage,” go to Certificates & Secrets and click + New client secret.
    • Add a description and select an expiry period.
    • Save the generated Value securely, as it will be required in Axigen’s configuration.
Note: Create a reminder with the expiry date of this secret as it will have to be regenerated and reconfigured in the Axigen configuration.

 

  • Add Optional Claims
    • Under “Manage,” go to Token configuration and click + Add optional claim.
    • Select ID, check email, and click Add.

      entra-secret
    • Repeat for Access, ensuring “email” is also checked.
Note: Save the “Value” (<VALUE_OF_SECRET>) separately, you will need this value in the configuration of the OpenID Connect connector in Axigen.

 

  • Verify Email Property
    • Return to the Azure portal homepage, then navigate to the Microsoft Entra ID Azure service.
    • Under Users in “Manage,” select any user and confirm their “Email” property matches the corresponding Axigen account.

      entra-test-app

      entra-id

entra-user

Step 2: Configure the OpenID Connect connector in Axigen

  • Add an OAuth Connector
    • Access Axigen’s CLI interface.
    • Use the following commands:

      config server
      config userdb
      add oauthconnector name ms-entra-id-oidc mode oidc
      set clientId <VALUE_OF_APPLICATION_(CLIENT)_ID>
      set clientSecret <VALUE_OF_SECRET>
      set autoConfigUri https://login.microsoftonline.com/<VALUE_OF_DIRECTORY_(TENANT)_ID>/v2.0/.well-known/openid-configuration
      set usernameField email
      commit
      commit
      save config
  • Update the WebMail Configuration
    • Still in Axigen’s CLI interface, go back home and use these commands:

      config server
      config webmail
      set userdbConnectorType oauth
      set UserDBConnectorName ms-entra-id-oidc
      commit
      save config

Conclusion

By following these steps, you can successfully integrate Axigen WebMail with Microsoft Entra ID for authentication delegation. This setup enhances your organization’s identity management while maintaining flexibility. For additional support or detailed troubleshooting, refer to the Axigen documentation or contact technical support.

 

About the author:

Bogdan Moldovan

In my career of 25 years in IT, I’ve gathered vast experience & know-how in everything related to software development, telecom, VoIP, business development, sales, management, and more. My articles are generally technical & tailored to the email geeks out there — but I also like talking about thought leadership ideas and management topics from my unique perspective as CEO of Axigen.