ジメールブロックカブ

ジメールブロックカブ

muttを使用してGmailにログインしようとすると、account.gmail.comなどのURLを含む高速Web警告が点滅します。速すぎて見たりコピーしたりできません。これでログインに失敗したというメッセージが表示されます。

その間、Gmailから次のようなメールを受け取りました。

Google Account: sign-in attempt blocked

Hi Adam, 

We recently blocked a sign-in attempt to your Google Account [[email protected]]. 

Sign in attempt details
Date & Time: Wednesday, December 10, 2014 11:55:21 PM UTC 
Location: Utah, USA 

If this wasn't you
Please review your Account Activity page at         https://security.google.com/settings/security/activity to see if anything looks suspicious.     Whoever tried to sign in to your account knows your password; we recommend that you change it right away. 

If this was you
You can switch to an app made by Google such as Gmail to access your account (recommended) or change your settings at https://www.google.com/settings/security/lesssecureapps so that your account is no longer protected by modern security standards. 

To learn more, see https://support.google.com/accounts/answer/6010255. 

Sincerely,
The Google Accounts team

そのリンクに移動して「セキュリティレベルの低いアプリへのアクセス」を有効にすると、正常にログインできます。しかし、Gmailでセキュリティレベルの低いオプションを有効にせずにmuttを使用してログインする方法はありますか?

修正する:

私はmac os x Yosemiteを使用しており、mutt -vを実行すると、コンパイルオプションに+ USE_SSL_OPENSSLが含まれます。 Google 2段階認証プロセスを無効にします。アプリケーション固有のパスワードは使用しません。以下はメッセージです。ログインしようとすると、次のようになります。

Reading imaps://imap.gmail.com:993/INBOX...
Looking up imap.gmail.com...
Connecting to imap.gmail.com...
TLSv1.2 connection using TLSv1/SSLv3 (ECDHE-RSA-AES128-GCM-SHA256)
Logging in...
[WEBALERT https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbsm0P......

この答えを見つけましたが、うまくいきません。https://stackoverflow.com/a/25209735/1665818

ベストアンサー1

最後に、Googleの2段階認証プロセスを有効にし、muttでアプリケーション固有のパスワードを使用して動作するようになりました。

詳細は:

Googleアカウントで2段階認証プロセスが有効になっています。つまり、Googleにログインするときは、文字またはGoogle AuthenticatorアプリでPINを入力する必要があります。

その後、muttのアプリケーション固有のパスワードを取得する必要があります。アプリケーション固有のパスワードを生成できます。ここ

次に、通常のパスワードではなく、アプリケーション固有のパスワードを使用してmuttにログインします。これでパスワードを入力する必要はありません。

おすすめ記事