Thunderbird に Gmail アカウントを追加するとサーバ接続エラーとなってしまいます。Thunderbirdからプラウザ的なものが開き、Gmail への初回ログインテストが促されるところ、以下のようにエラーが発生します。
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/Thunderbird_gmail1.png)
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/reight_arrow2-3.png)
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/Thunderbird_gmail2.png)
サーバ接続条件は、受信:IMAP / Port=933 / SSL/TLS /OAuth2、送信:SMTP / Port=465 / SSL/TLS /OAuth2 で合ってはいます。Gmail の Thunderbird設定ヘルプページを見ても、特に特殊な設定は記載されていません。Thunderbird をupdateしても効果なし。
Thunderbird のGmail設定のヘルプページを見てみると、Gmail ヘルプページとは異なり「Gmailは信頼できないアプリの接続は許可していない」など厳しい実情が記載されています。下の方にちょろっと「Cookeiを有効化」と記載がありました。メールに Cookei が関係しているとは思いもよりませんでした。下図のように Cookei を有効化します。
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/Thunderbird_gmail3.png)
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/reight_arrow2-4.png)
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/Thunderbird_gmail4.png)
再度、初回ログインテストを行うと、下図のようにログインに進みました。
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/Thunderbird_gmail1-1.png)
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/reight_arrow2-5.png)
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/Thunderbird_gmail5.png)
ようやくGmail アカウントが追加できました。でもGmail ヘルプページはこのような事実があることを知っているのにちょっと不親切ですね。
![](https://motoplus4.com/blog/wp-content/uploads/2024/01/Thunderbird_gmail6.png)