Announcement

Collapse
No announcement yet.

Thunderbirds are..........well stalled...

Collapse
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Thunderbirds are..........well stalled...

    Operating System: Kubuntu 26.04 LTS
    KDE Plasma Version: 6.6.7
    KDE Frameworks Version: 6.24.0
    Qt Version: 6.10.2
    Kernel Version: 7.0.0-44-generic (64-bit)
    Graphics Platform: Wayland​

    Thunderbird mail from discover snap

    Trying to add a hotmail address. Something I done a thousand times across linux and windows but so far its not working

    the settings check out I get a popup asking me to verifiy and allow access all good then it fails.

    I know the password is correct and I spelt the email right checked on my phone and logged in via web.

    Settings are what the support site says they should be but it never works last god knows how many years its been type in email and password and click go. IMAP mail account settings


    Configure the server settings according to the settings provided by your Microsoft account administrators. Here are some typical settings as of this writing.
    • Server Name: outlook.office365.com
    • Port: 993
    • User Name: your username (for example: tbtesttb@hotmail.com)
    • Connection security: SSL/TLS
    • Authentication method: OAuth2
    ​
    No idea whats going on?

    Anyone got a solve please.

    Thanks in advance
  • Answer selected by Old and Confused at Nov 26, 2026, 02:41 AM.

    [AI generated response to entirety of initial inquiry in Post #1. This should be viewed with an open mind, and with the understanding that it may not be a valid solution.]

    This usually happens because Thunderbird's Snap confinement or local OAuth2 redirect settings block the authentication token from returning to the app after you click "Allow" in the popup, or because the outgoing server (SMTP) settings don't match Microsoft's updated OAuth2 requirements. [1, 2]

    1. Fix the Outgoing (SMTP) & Incoming Server Names
    Even if your incoming IMAP settings match, Thunderbird's auto-configuration often pairs them with outdated SMTP or IMAP hostnames that reject OAuth2 tokens. Before clicking Done during setup, click Configure manually and verify both sections match these exact values: [1, 2]
    • Incoming (IMAP):
      • Hostname: outlook.office365.com (make sure it does not say imap-mail.outlook.com)
      • Port: 993
      • Connection security: SSL/TLS
      • Authentication method: OAuth2 [1]
    • Outgoing (SMTP):
      • Hostname: smtp-mail.outlook.com (or smtp.office365.com)
      • Port: 587
      • Connection security: STARTTLS
      • Authentication method: OAuth2 [1]
    • Username (both): Your full @hotmail.com email address. [1]
    (Note: After entering these manually, click Re-test before clicking Done.)

    2. Enable Cookies & Fix the OAuth2 Local Loopback
    Because you see the Microsoft prompt and click "Allow" before it fails, the redirect token is likely getting dropped:
    • Allow Cookies in Thunderbird. Thunderbird's internal browser needs cookies enabled to complete Microsoft's OAuth2 handshake. Go to Settings > Privacy & Security, scroll to Web Content, and ensure Accept cookies from sites is checked. [1]
    • Toggle useSchemeRedirect in Config Editor. If you are running into Thunderbird's local loopback callback bug on Linux, go to Settings > General, scroll to the bottom, and click Config Editor. Search for oauth2.useSchemeRedirect (or useSchemeRedirect) and toggle it to false, then restart Thunderbird. [1]

    3. Check Snap Permissions & System Factors
    • Snap Portal / Keyring Access. The Thunderbird Snap relies on xdg-desktop-portal to pass browser/auth handoffs and store the resulting OAuth2 token in your KDE Wallet/keyring. Ensure xdg-desktop-portal-kde is running properly, or test installing the non-Snap .deb / Flatpak build if the Snap sandbox is dropping the token callback.
    • Disable VPNs or Local Web Servers Temporarily. Active VPNs, custom DNS blockers (like Pi-hole), or local services listening on localhost (like Apache/Nginx) can intercept the localhost redirect Microsoft uses to hand the token back to Thunderbird. [1]
    • Check Outlook.com IMAP Access. Log into Outlook on the web, go to Settings (gear icon) > Mail > Forwarding and IMAP, and confirm that Let devices and apps use IMAP is toggled On. [1, 2]

    If it still fails, could you share:
    • The exact error message shown at the bottom of the setup window (or in Tools > Developer Tools > Error Console)
    • Whether it fails immediately after clicking Accept or when trying to send/fetch mail
    I can pinpoint whether it's a Snap sandbox issue or a server rejection.















    ​

    Comment


      #2
      Thunderbird has to save the OAuth token in your system keyring. The snap can fail silently here on KDE.
      Check:
      Code:
      snap connections thunderbird | grep -i password
      If password-manager-service isn't connected:​
      Code:
      sudo snap connect thunderbird:password-manager-service
      Also make sure KWallet is enabled and unlocked (System Settings → KDE Wallet), then restart Thunderbird and try again.
      and ...Make sure your system clock is synced
      Code:
      timedatectl
      A skewed clock can break token validation.​
      ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

      Comment


        #3
        Great thanks ill give it a go.

        Comment


          #4
          Thanks for reply die.boer

          Ok tried above all seemed ok.

          RTC in local TZ: no

          ​google for what is worth thinks that ok though?

          kde wallet there if you mean kwalletmanager its there its empty and no reference to thunderbird or anything.

          tried adding the account again still failed but went into settings and run the test to see if server was ok and got a certificate back all ok but emails nope cant connect to server

          Authentication failure while connecting to server outlook.office365.com.

          making camp at the drawing board dont look like im going anywhere soon..

          Comment


            #5
            Nothing ive googled or tried has worked it updated yesterday thought that might help it didnt.................. So back to browser mail like a peasant.....

            Comment


              #6
              [AI generated response to entirety of initial inquiry in Post #1. This should be viewed with an open mind, and with the understanding that it may not be a valid solution.]

              This usually happens because Thunderbird's Snap confinement or local OAuth2 redirect settings block the authentication token from returning to the app after you click "Allow" in the popup, or because the outgoing server (SMTP) settings don't match Microsoft's updated OAuth2 requirements. [1, 2]

              1. Fix the Outgoing (SMTP) & Incoming Server Names
              Even if your incoming IMAP settings match, Thunderbird's auto-configuration often pairs them with outdated SMTP or IMAP hostnames that reject OAuth2 tokens. Before clicking Done during setup, click Configure manually and verify both sections match these exact values: [1, 2]
              • Incoming (IMAP):
                • Hostname: outlook.office365.com (make sure it does not say imap-mail.outlook.com)
                • Port: 993
                • Connection security: SSL/TLS
                • Authentication method: OAuth2 [1]
              • Outgoing (SMTP):
                • Hostname: smtp-mail.outlook.com (or smtp.office365.com)
                • Port: 587
                • Connection security: STARTTLS
                • Authentication method: OAuth2 [1]
              • Username (both): Your full @hotmail.com email address. [1]
              (Note: After entering these manually, click Re-test before clicking Done.)

              2. Enable Cookies & Fix the OAuth2 Local Loopback
              Because you see the Microsoft prompt and click "Allow" before it fails, the redirect token is likely getting dropped:
              • Allow Cookies in Thunderbird. Thunderbird's internal browser needs cookies enabled to complete Microsoft's OAuth2 handshake. Go to Settings > Privacy & Security, scroll to Web Content, and ensure Accept cookies from sites is checked. [1]
              • Toggle useSchemeRedirect in Config Editor. If you are running into Thunderbird's local loopback callback bug on Linux, go to Settings > General, scroll to the bottom, and click Config Editor. Search for oauth2.useSchemeRedirect (or useSchemeRedirect) and toggle it to false, then restart Thunderbird. [1]

              3. Check Snap Permissions & System Factors
              • Snap Portal / Keyring Access. The Thunderbird Snap relies on xdg-desktop-portal to pass browser/auth handoffs and store the resulting OAuth2 token in your KDE Wallet/keyring. Ensure xdg-desktop-portal-kde is running properly, or test installing the non-Snap .deb / Flatpak build if the Snap sandbox is dropping the token callback.
              • Disable VPNs or Local Web Servers Temporarily. Active VPNs, custom DNS blockers (like Pi-hole), or local services listening on localhost (like Apache/Nginx) can intercept the localhost redirect Microsoft uses to hand the token back to Thunderbird. [1]
              • Check Outlook.com IMAP Access. Log into Outlook on the web, go to Settings (gear icon) > Mail > Forwarding and IMAP, and confirm that Let devices and apps use IMAP is toggled On. [1, 2]

              If it still fails, could you share:
              • The exact error message shown at the bottom of the setup window (or in Tools > Developer Tools > Error Console)
              • Whether it fails immediately after clicking Accept or when trying to send/fetch mail
              I can pinpoint whether it's a Snap sandbox issue or a server rejection.















              ​
              Slava Ukraini! 🇺🇦
              Windows no longer obstruct my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes​

              Comment


                #7
                Thank you it was the outlook web page no idea why imap was disabled many thanks.

                Comment

                Users Viewing This Topic

                Collapse

                There are 0 users viewing this topic.

                Working...
                X