2026 年的 Microsoft OAuth 驗證與 Thunderbird

Thunderbird Thunderbird 建立於: 4 週前
This is a machine-generated translation of the English article. It has not been reviewed by a human, and may contain errors. If you would like to revise this content, you can start here.

Microsoft OAuth 驗證與 2026 年的 Thunderbird

注意:
  • 為求簡潔,我們將使用 OAuth 一詞,而非 OAuth 2OAuth 2.0。Thunderbird 目前的 OAuth 實作是基於 OAuth 2.0,這是 OAuth 最常見的版本。
  • 在 Thunderbird 153 之前,Microsoft OAuth 對話方塊是在 Thunderbird 內的分頁中顯示。153 及更高版本則改為在您系統的預設網頁瀏覽器(Firefox、Chrome 等)中外部顯示 Microsoft OAuth 對話方塊。

Microsoft 已對其為企業和學術帳戶託管的電子郵件服務的驗證方式進行了一些變更。本文將說明這些變更以及如何適應它們。

截至 2026 年 6 月,此資訊仍在發展中且可能變動——請將 Thunderbird 更新至最新版本,以便在使用 Microsoft 的電子郵件服務時獲得最佳體驗。由於 Microsoft 的電子郵件伺服器和部署方式不斷變化,問題可能會在沒有任何警告的情況下出現,導致 Thunderbird 和其他非 Microsoft 的電子郵件客戶端突然停止運作。

驗證方式的變更

Microsoft 已實施以下變更:

  • 棄用基本驗證(使用者名稱/密碼),現在需要 OAuth 驗證。
  • 在某些情況下,SMTP 驗證已被完全停用。對於新帳戶,SMTP 始終處於停用狀態。此外,SMTP 上還有一些目前尚不清楚的限制。

Microsoft 也改變了他們對某些客戶端的分類方式,因此 Thunderbird 先前的 OAuth 設定無法使其正確地被認定為桌面客戶端。 因此,我們被迫對 Thunderbird 進行設定變更,這可能會對使用者產生副作用。

您可能遇到的變更或問題

對於 outlook.comhotmail.com、Microsoft 365(以前稱為 Office 365,通常縮寫為 O365)或其他 Microsoft 託管的電子郵件服務,您可能會看到以下問題:

您的 Outlook 或 Hotmail 密碼不再適用於 Thunderbird,且您無法收發電子郵件

  • Thunderbird 可能會顯示類似以下的錯誤訊息:Login to server outlook.office365.com with username youremail@hotmail.com failed.
  • 解決方案
    • 確保您的 Microsoft 帳戶已開啟兩步驟驗證(請參閱 Microsoft 的支援文章:如何在您的 Microsoft 帳戶使用兩步驟驗證)。
    • 在 Thunderbird 中為 Microsoft 的 Outlook 或 Hotmail 網站啟用 cookie,否則您將無法使用 OAuth2 驗證登入您的 Outlook 或 Hotmail 帳戶:
      1. 點擊 Thunderbird 應用程式選單 > Settings > Privacy & Security
      2. 在「網頁內容」區塊下,勾選「接受來自網站的 Cookie」。
      3. 點擊「接受來自網站的 Cookie」旁的 Exceptions…,確保您沒有封鎖來自 Microsoft 網站的 cookie,例如 outlook.comhotmail.comoffice365.com
    • 變更 Thunderbird 接收郵件(IMAP 或 POP)的驗證方式:
      1. 點擊 Thunderbird 應用程式選單 > Account Settings
      2. 在左側,點擊您 outlook.comhotmail.com 帳戶的 Server Settings}。
      3. 選擇「驗證方式」:OAuth2(而非「一般密碼」)。
        tb153-select-oauth2
  • 變更 Thunderbird 傳送訊息(SMTP)的驗證方式:
    1. 點擊 Thunderbird 應用程式選單 > Account Settings,然後在左側點擊您的 Microsoft 電子郵件帳戶。例如:tbtesttb@hotmail.com
    2. 在右下角,點擊 Edit outgoing server…
      tb153-microsoft-email-tbtesttb-edit-outgoing-server
    3. 選擇「驗證方式」:OAuth2(而非「一般密碼」)。伺服器名稱可能需要變更為 to smtp-mail.outlook.com
      tbg153-microsoft-email-smtp-server
    4. 點擊 OK 以儲存您的變更。

出現需要 IT 管理員核准應用程式的畫面

  • 您必須請您的管理員授權 Thunderbird——此核准必須完成,但只需一次。
  • 根據 Microsoft 的文件,管理員應造訪 https://login.microsoftonline.com/{tenant-id}/adminconsent?client_id=9e5f94bc-e8a4-4e73-b8be-63364c29d753 並授予以下權限以授權 Mozilla Thunderbird:IMAP.AccessAsUser.AllPOP.AccessAsUser.AllSMTP.Sendoffline_access

帳戶在 Thunderbird 102.6.1 上可以運作,但在 102.7.1 或更高版本上無法運作

  • 嘗試使用新的 Thunderbird 設定檔登入(關於如何建立新設定檔的說明,請參閱 Profile Manager - Create and remove Thunderbird profiles)。
  • 如果新的 Thunderbird 設定檔可以運作,我們建議您繼續使用新的設定檔。對於希望保留在設定編輯器中所做其他變更的進階使用者: 開啟 Thunderbird 設定檔管理員以切換回舊的 Thunderbird 設定檔,並使用 Config Editor 篩選 oauth2,找到適當的伺服器,然後刪除 oauth2.issuerauth2.scope 的條目。
  • 如果這樣做沒有用,請 尋求支援

IMAP/POP3 可以運作,但 SMTP 無法運作

行事曆無法運作

  • Thunderbird 不支援 Exchange 行事曆。如果您正在使用附加元件或其他軟體來啟用行事曆,那麼您需要向該附加元件或軟體的作者尋求支援。

在哪裡尋求協助

這些好人幫助我們撰寫了這篇文章:

Illustration of hands

成為志工

在此回答問題並幫助我們改善知識庫內容,與其他人一起切磋琢磨專業能力。

了解更多