Two-Factor Authentication: Cannot ENABLE
Problem reported by Virgil Turner - Today at 4:06 AM
Submitted
Hi. I want to purchase SmarterMail for a Linux VPS but encountered a problem enabling MFA (Two-Factor Authentication). I have made an exhaustive search of he help files and community posts, but cannot find advise on how to diagnose. Please suggest.

Details:

    Free edition (9652; .NET 10.0.7) on Debian 13 (12GB RAM 6x Cores); will be purchasing Pro 250 for this server
    Revere DNS and Let's Encrypt all correctly enabled
    Diagnostics all pass perfectly
    Firewall ports all open
    Time zone: (UTC) Coordinated Universal Time
    Browser: Firefox 152.0.2 on Windows 11 Pro
    My auth app: Microsoft Authenticator

SYMPTOMS
Sign as using only email + password (as the default admin)
Settings > Administrators > [ select myself ] > Two-Factor Authentication > ENABLE (button)
Pop-up dialog appears with QR code
Scan QR code to add to Microsoft Authenticator app
Enter the Verification Code and click Check
(If I enter deliberately wrong code I get "The code entered was invalid. Please verify the code.")
Upon clicking "Check" with correct Verification Code the dialog box closes and returns me to the Two-Factor Authentication with the Enable button.
Signing out and back in does not prompt for Two-Factor Authentication.

Can anyone suggest how to diagnose this?
Virgil Turner Replied
More diags....having tried in both HTTP and HTTPS to rule out SSL certificate issues:

As soon as I hit the "Check" button (for MFA) the browser output (developer mode) shows an Angular UI error:

ReferenceError: failure is not defined
    f sm.zx3.at/interface/output/site-v-639162439960000000.js:550
    Angular 21
    v sm.zx3.at/interface/output/vendor-v-639162439960000000.js:116
    b sm.zx3.at/interface/output/vendor-v-639162439960000000.js:118
    F sm.zx3.at/interface/output/vendor-v-639162439960000000.js:120
    U sm.zx3.at/interface/output/vendor-v-639162439960000000.js:114
    f sm.zx3.at/interface/output/vendor-v-639162439960000000.js:93
    raf Angular
    waitUntilQuiet sm.zx3.at/interface/output/vendor-v-639162439960000000.js:93
    U sm.zx3.at/interface/output/vendor-v-639162439960000000.js:114
    start sm.zx3.at/interface/output/vendor-v-639162439960000000.js:126
    r sm.zx3.at/interface/output/vendor-v-639162439960000000.js:27
    reverseAnimate sm.zx3.at/interface/output/vendor-v-639162439960000000.js:27
    onRemove sm.zx3.at/interface/output/vendor-v-639162439960000000.js:27
    onRemove sm.zx3.at/interface/output/vendor-v-639162439960000000.js:27
    l sm.zx3.at/interface/output/vendor-v-639162439960000000.js:27
    $Q Angular
    l sm.zx3.at/interface/output/vendor-v-639162439960000000.js:27
    remove sm.zx3.at/interface/output/vendor-v-639162439960000000.js:27
    Angular 18
 Possibly unhandled rejection: {} angular-v-639162439960000000.js:15700:41

Whilst logged on to the server as root and listening (using command "journalctl -u smartermail -f

") the following error is thrown:

Jun 24 11:22:01 cloud-server-0 MailService[3463]: Microsoft.AspNetCore.Server.Kestrel[0] Unhandled exception while processing 0HNMHS9HEJ3TT. System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.ServerOptionsCallback(SslStream sslStream, SslClientHelloInfo clientHelloInfo, Object state, CancellationToken cancellationToken)    at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)    at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)    at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.OnConnectionAsync(ConnectionContext context)    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()



Reply to Thread

Enter the verification text