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
- Sign in to your Google Account, then navigate to the Security settings page.
- 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).
- 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.
- Copy the 16-character generated password (note: it has no spaces, just a string of letters and numbers).
Step 2: Update YouTrack Mailbox Settings
- Go back to YouTrack's Mailbox Integration Settings and open your configured IMAPS server.
- Replace the
Passwordfield with the App Password you just copied (not your regular Gmail password). - 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 enteredmyloginbefore, that could also cause issues) - Connection/Socket Timeout: Keep at
60
- Protocol:
- 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
相关产品推荐
相关产品推荐

