為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

oAuth2 Gmail and Thunderbird

  • 10 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 christ1

more options

Hello all,

I have several machines we use thunderbird and gmail connection on.

We can only get the accounts to link if the authorizations is set to "normal password"

From what I have read on the forum, we will need to change the authentication to oAuth2 for our accounts to work after May 30th.

Following the steps to do so, and authenticating (and allowing access) in the browser, I am unable to send/receive on the thunderbird side. Switch it back to normal password and it will again work properly.

Is there anything I missed here? Not understanding why we cannot get Oauth2 to work.

Current Settings

IMAP enabled in gmail Cookies allowed in thunderbird Less secure apps off in gmail (trying to get ahead of this before May) private/public windows defender firewall off

Thank you

Hello all, I have several machines we use thunderbird and gmail connection on. We can only get the accounts to link if the authorizations is set to "normal password" From what I have read on the forum, we will need to change the authentication to oAuth2 for our accounts to work after May 30th. Following the steps to do so, and authenticating (and allowing access) in the browser, I am unable to send/receive on the thunderbird side. Switch it back to normal password and it will again work properly. Is there anything I missed here? Not understanding why we cannot get Oauth2 to work. Current Settings IMAP enabled in gmail Cookies allowed in thunderbird Less secure apps off in gmail (trying to get ahead of this before May) private/public windows defender firewall off Thank you

所有回覆 (10)

more options
Following the steps to do so, and authenticating (and allowing access) in the browser

What exactly does this mean, particularly the "in the browser" part?

Please explain the exact steps you're doing.

What is your version of Thunderbird?

I am unable to send/receive on the thunderbird side.

Not a useful problem description. What happens when you attempt to send and receive messages? Is there any error message?

more options

Thank you for the quick reply.

Thunderbird version 91.8.1

Steps I am taking:

1. Account settings>main page>outgoing server>edit SMTP> Changing authentication method to OAuth2

2. Server settings>Authentication Method>Changing to OAuth2

3. At this point I go to send a test email, which opens a browser login screen to connect with my gmail account (opens page asking for email account followed by password and finally asking for permissions).

After allowing through the gmail prompt, and attempting to send an email, it will sit on sending indefinitely. Once I hit cancel I receive an error pop up. Will attach some screenshots.

more options
At this point I go to send a test email, which opens a browser login screen to connect with my gmail account (opens page asking for email account followed by password and finally asking for permissions).

Did this process complete successfully, including the permission request?

You can try to delete any Gmail passwords and/or Oauth2 authentication tokens Thunderbird has remembered. At the top right of the Thunderbird window, click the menu button > Options > Privacy & Security > Passwords > Saved Passwords > Show Passwords

more options

The permissions appear to complete successfully as the window closes. No other indications of success or failure are given.

I will check into that but this is a brand new setup, no other passwords have been used.

more options

Also, please post your Troubleshooting Information. At the top right of the Thunderbird window, click the menu button , then select Help > Troubleshooting Information. Press the "Copy text to clipboard button" and paste the information into your reply.

more options

Clearing saved passwords also unsuccessful.


 Application Basics
   Name: Thunderbird
   Version: 91.8.1
   Build ID: 20220413002405
   Distribution ID:
   Update Channel: release
   User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1
   OS: Windows_NT 10.0 22000
   Launcher Process: Enabled
   Multiprocess Windows: 0/0
   Fission Windows: 0/0
             Disabled by default
   Remote Processes: 4
   Enterprise Policies: Inactive
   Google Location Service Key: Missing
   Google Safebrowsing Key: Missing
   Mozilla Location Service Key: Missing
   Safe Mode: false
 Mail and News Accounts
   account1:
     INCOMING: account1, , (imap) imap.gmail.com:993, SSL, OAuth2
     OUTGOING: , smtp.gmail.com:465, SSL, OAuth2, true
   account2:
     INCOMING: account2, , (none) Local Folders, 0, passwordCleartext
 Calendar Settings
   Home
     Name
     Value
     Name:
     Type: storage
     Disabled: true
     Username:
     URI:
     Refresh Interval:
     Read-only:
     Suppress Alarms:
     Cache Enabled:
     iMIP Identity: id1
     iMIP Disabled:
     iMIP Account:
     Organizer Id:
     Force Email Scheduling:
     Popup Alarms Supported:
     Alarms on Invitation Supported:
     Max Alarms Per Event:
     Attachment Supported:
     Max Categories:
     Privacy State Supported:
     Priority Supported: true
     Event Supported:
     Task Supported:
     Local Time Supported:
     UTC/GMT Supported:
     Auto-Scheduling Supported:
 Crash Reports for the Last 3 Days
 Remote Processes
   Type: Count
     Web Content: 3 / 8
     GPU: 1
 Add-ons
     Name
     Type
     Version
     Enabled
     ID
       Amazon.com
       extension
       1.1
       true
       amazondotcom@search.mozilla.org
       Bing
       extension
       1.0
       true
       bing@search.mozilla.org
       DuckDuckGo
       extension
       1.0
       true
       ddg@search.mozilla.org
       Google
       extension
       1.0
       true
       google@search.mozilla.org
       Wikipedia (en)
       extension
       1.0
       true
       wikipedia@search.mozilla.org
more options

Security Software

   Type: Name
     Antivirus: Microsoft Defender Antivirus
     Antispyware:
     Firewall:
 Graphics
     Features
     Compositing: WebRender
     Asynchronous Pan/Zoom: wheel input enabled; scrollbar drag enabled; keyboard enabled; autoscroll enabled; smooth pinch-zoom enabled
     WebGL 1 Driver WSI Info: EGL_VENDOR: Google Inc. (Intel)

EGL_VERSION: 1.5 (ANGLE 2.1.15727 git hash: 23851a53779d) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_CHROMIUM_sync_control EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_display_semaphore_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization EGL_ANGLE_create_context_extensions_enabled EGL_ANDROID_blob_cache EGL_ANDROID_recordable EGL_ANGLE_image_d3d11_texture EGL_ANGLE_create_context_backwards_compatible EGL_KHR_create_context_no_error EGL_KHR_reusable_sync EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_device_query EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_platform_angle_d3d11on12 EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug EGL_ANGLE_explicit_context EGL_ANGLE_feature_control IsWebglOutOfProcessEnabled: 1

     WebGL 1 Driver Renderer: Google Inc. (Intel) -- ANGLE (Intel, Intel(R) UHD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11-26.20.100.7926)
     WebGL 1 Driver Version: OpenGL ES 2.0.0 (ANGLE 2.1.15727 git hash: 23851a53779d)
     WebGL 1 Driver Extensions: GL_ANGLE_base_vertex_base_instance GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_explicit_context GL_ANGLE_explicit_context_gles1 GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_get_serialized_context_string GL_ANGLE_get_tex_level_parameter GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_memory_size GL_ANGLE_multi_draw GL_ANGLE_multiview_multisample GL_ANGLE_pack_reverse_row_order GL_ANGLE_program_cache_control GL_ANGLE_provoking_vertex GL_ANGLE_request_extension GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_color_buffer_float_rgb GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_lose_context GL_CHROMIUM_sync_query GL_EXT_EGL_image_external_wrap_modes GL_EXT_blend_func_extended GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_draw_elements_base_vertex GL_EXT_float_blend GL_EXT_frag_depth GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_multisampled_render_to_texture GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_bptc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_compressed_EAC_R11_signed_texture GL_OES_compressed_EAC_R11_unsigned_texture GL_OES_compressed_EAC_RG11_signed_texture GL_OES_compressed_EAC_RG11_unsigned_texture GL_OES_compressed_ETC2_RGB8_texture GL_OES_compressed_ETC2_RGBA8_texture GL_OES_compressed_ETC2_punchthroughA_RGBA8_texture GL_OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture GL_OES_compressed_ETC2_sRGB8_alpha8_texture GL_OES_compressed_ETC2_sRGB8_texture GL_OES_depth24 GL_OES_depth32 GL_OES_draw_elements_base_vertex GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_border_clamp GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_stencil8 GL_OES_vertex_array_object GL_WEBGL_video_texture
     WebGL 1 Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_float_blend EXT_frag_depth EXT_shader_texture_lod EXT_sRGB EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic MOZ_debug OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context
     WebGL 2 Driver WSI Info: EGL_VENDOR: Google Inc. (Intel)

EGL_VERSION: 1.5 (ANGLE 2.1.15727 git hash: 23851a53779d) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_CHROMIUM_sync_control EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_display_semaphore_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization EGL_ANGLE_create_context_extensions_enabled EGL_ANDROID_blob_cache EGL_ANDROID_recordable EGL_ANGLE_image_d3d11_texture EGL_ANGLE_create_context_backwards_compatible EGL_KHR_create_context_no_error EGL_KHR_reusable_sync EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_device_query EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_platform_angle_d3d11on12 EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug EGL_ANGLE_explicit_context EGL_ANGLE_feature_control IsWebglOutOfProcessEnabled: 1

     WebGL 2 Driver Renderer: Google Inc. (Intel) -- ANGLE (Intel, Intel(R) UHD Graphics Direct3D11 vs_5_0 p
more options

Your server settings look good. Also make sure to allow cookies in Thunderbird. https://support.mozilla.org/en-US/kb/automatic-conversion-google-mail-accounts-oauth20

more options

Cookies have been allowed, seems to be allowed as a default on the fresh installs I've done on 91.8.1

more options

I'm running out of ideas. One last thing you can try: Start Windows 10 in safe mode with networking enabled. Does the problem go away?

Windows safe mode disables anti-virus software. This is a troubleshooting step, not a solution.