You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Youtrack与Gmail邮箱集成配置求助:认证失败及两步验证疑问

Fixing [AUTHENTICATIONFAILED] Error for Gmail + YouTrack Mailbox Integration

Absolutely, the two-step verification (2SV) enabled on your Gmail account is the direct cause of the [AUTHENTICATIONFAILED] Invalid credentials (Failure) error. When 2SV is turned on, Google blocks regular account passwords from being used for third-party IMAP/SMTP connections—you'll need to use a Google App Password instead. Here's how to set this up properly:

Step 1: Generate a Google App Password

  1. Sign in to your Google Account, then navigate to the Security settings page.
  2. Under the "Signing in to Google" section, look for App Passwords. If you don't see this option, double-check that 2SV is enabled on your account (you mentioned it is, so it should appear; work/school accounts might require admin approval to use App Passwords).
  3. Click Create app password, enter a custom name for this password (e.g., "YouTrack Mail Integration") to help you remember its purpose, then click Generate.
  4. Copy the 16-character generated password (note: it has no spaces, just a string of letters and numbers).

Step 2: Update YouTrack Mailbox Settings

  1. Go back to YouTrack's Mailbox Integration Settings and open your configured IMAPS server.
  2. Replace the Password field with the App Password you just copied (not your regular Gmail password).
  3. Double-check your other settings to ensure they're correct:
    • Protocol: IMAPS
    • Host: imap.gmail.com
    • Port: 993
    • Login: Make sure this is your full Gmail address (e.g., mylogin@gmail.com—if you only entered mylogin before, that could also cause issues)
    • Connection/Socket Timeout: Keep at 60
  4. Save the settings and test the connection—this should resolve the authentication failure.

Additional Checks

  • Ensure IMAP access is enabled in your Gmail account: Go to Gmail → Settings → Forwarding and POP/IMAP → IMAP access, select Enable IMAP.
  • App Passwords only work while 2SV is active on your account. If you ever disable 2SV, all App Passwords will stop working automatically.

内容的提问来源于stack exchange,提问作者Headmaster

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 06:27:16