Contents
Overview
In GFI FaxMaker v20.9, configuring Email2FaxGateway with Office 365 Authentication (OAuth) for Exchange Online SMTP submission (smtp.office365.com:587) can fail with timeouts, token retrieval errors, and SMTP authentication failures. This typically occurs when the Microsoft Entra ID (Azure AD) app registration is not configured as a public client for FaxMaker’s localhost callback flow (redirect URI configured under Web instead of Mobile and desktop applications).
Solution
Symptoms / Errors
-
UI / console
Connection time outFehler: Das Zugriffstoken konnte nicht vom Server abgerufen werden.(The access token cannot be retrieved from the server.)
-
OAuth callback / browser
AADSTS50194(application not configured as multitenant when/commonis used)
-
Exchange Online SMTP responses (in logs)
504 5.7.4 Unrecognized authentication type535 5.7.3 Authentication unsuccessful
-
Behavioral indicators
- Email2FaxGateway configuration may revert back to SMTP after closing/reopening the FaxMaker Configuration console.
Typical Environment
- GFI FaxMaker
- Email2FaxGateway configured for smtp.office365.com on port 587 (TLS).
- This article applies when Email2FaxGateway is configured to submit outbound mail via smtp.office365.com:587 using Office 365 Authentication (OAuth).
- If the customer is using the “MX endpoint / port 25 / connectors” approach, please review Using GFI FaxMaker with Office 365.
- OAuth sign-in launches a browser and returns to a local callback such as
http://localhost:5000/callback
Troubleshooting (What to Check First)
1) Confirm outbound network reachability from the FaxMaker server
Run the following on the FaxMaker server (PowerShell) and confirm the tests succeed:
Test-NetConnection login.microsoftonline.com -Port 443
Test-NetConnection smtp.office365.com -Port 587
If these fail, resolve firewall/proxy restrictions and any TLS inspection interference before continuing.
2) Capture logs at the exact failure time
- Re-run Authenticate and then Send test email.
- Note the exact time (HH:MM) the failure occurs.
- Collect a Troubleshooter package immediately after reproducing.
- Include SMTP upload/uploader logs (for example under
<FaxMaker_install_dir>\logs\..., including the SMTP-related uploader/logger files).
Root Cause
The Microsoft Entra ID App Registration used for FaxMaker OAuth was configured with the redirect URI under the Web platform. In this state, the browser sign-in can appear successful and an authorization code can be received, but FaxMaker does not successfully obtain/store the refresh token (for example, smtprefreshtoken remains empty in configuration snapshots/log bundles).
Without a refresh token, FaxMaker cannot generate valid OAuth access tokens for SMTP submission. This correlates with:
The access token cannot be retrieved from the server(or the German equivalent)- Exchange Online SMTP authentication failures such as
535 5.7.3 Authentication unsuccessful(and sometimes504 5.7.4 Unrecognized authentication type) - Settings not persisting (reverting back to SMTP)
Resolution (Configuration Fix)
Step A — Correct the Entra ID App Registration platform and redirect URI
- Open Microsoft Entra admin center.
- Go to Microsoft Entra ID → App registrations → select the app used for FaxMaker OAuth.
- Open Authentication.
- Select Add a platform → choose Mobile and desktop applications.
- Add the redirect URI:
http://localhost:5000/callback
- Ensure Allow public client flows (or equivalent setting) is Enabled.
- Click Save.
If you encountered AADSTS50194
If the browser redirect/callback showed AADSTS50194, update the app registration:
- Set Supported account types to Multitenant (Accounts in any organizational directory), when your OAuth authority/flow uses
/common.
Step B — Re-authenticate in FaxMaker and retest
- Open GFI FaxMaker Configuration → Email2FaxGateway → Properties.
- Select Office 365 Authentication (OAuth).
- Confirm the SMTP endpoint and port are set for client submission:
smtp.office365.com587
- Confirm the Client ID matches the Entra app registration.
- Click Authenticate again and complete the sign-in.
- Click Send test email.
Note: SMTP AUTH enablement at the mailbox level should still be verified as part of normal Exchange Online SMTP submission requirements, but in this scenario it was not the primary cause.
Validation / Expected Outcome
After applying the Entra app registration changes:
- The OAuth flow completes without Entra ID callback errors.
- FaxMaker successfully obtains and stores token state (the refresh token is no longer missing/empty in configuration snapshots).
- Send test email succeeds.
- Email2FaxGateway settings persist (do not revert back to SMTP after closing/reopening the configuration console).
- Exchange Online no longer returns
535 5.7.3 Authentication unsuccessfulfor FaxMaker submission attempts.
Frequently Asked Questions
- 1. How do I recognize this specific OAuth misconfiguration?
- The browser sign-in may appear to succeed, but FaxMaker fails afterwards with
The access token cannot be retrieved from the server(or the German equivalent), and logs show535 5.7.3 Authentication unsuccessful. In configuration snapshots/log bundles, the OAuth state may showsmtprefreshtokenis empty. - 2. I saw
AADSTS50194. What does that indicate? AADSTS50194indicates the app isn’t configured as multitenant while the flow is using an endpoint like/common. Adjust the Entra app’s Supported account types to multitenant (when appropriate for your flow) and re-authenticate.- 3. What exact Entra change resolved the “access token cannot be retrieved” problem?
- Add the redirect URI
http://localhost:5000/callbackunder Authentication → Add a platform → Mobile and desktop applications (not only under Web), and ensure public client flows are enabled. - 4. What if I still get
Connection time outduring the Email2FaxGateway test? -
Verify outbound connectivity from the FaxMaker server to:
login.microsoftonline.com:443(token/auth endpoints)smtp.office365.com:587(SMTP submission)
Test-NetConnection. If those ports are blocked or TLS inspection interferes, the test may time out. - 5. How can I confirm the fix worked besides “Send test email”?
- Close and reopen the FaxMaker Configuration console and confirm Email2FaxGateway remains set to Office 365 Authentication (does not revert to SMTP). Also confirm logs no longer show
535 5.7.3 Authentication unsuccessfulduring SMTP submission attempts.
Priyanka Bhotika
Comments