X-GM-THRID: 6471306251625037824 Date: Fri, 29 Sep 2017 22:34:03 -0700 (PDT) From: Dafna Hirschfeld To: outreachy-kernel Message-Id: In-Reply-To: References: <10f2cfd0-e601-49a3-af37-6157f60b1da9@googlegroups.com> Subject: Re: [Outreachy kernel] Hi, problems configuring mutt MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4320_946551875.1506749643121" X-Google-Token: EMvZvM4FxJoXnU3du-s0 X-Google-IP: 87.70.155.11 ------=_Part_4320_946551875.1506749643121 Content-Type: multipart/alternative; boundary="----=_Part_4321_266542903.1506749643122" ------=_Part_4321_266542903.1506749643122 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Thanks a lot, I enabled the 2-step verification , generated an app password to use in=20 mutt and then disabled the 2 step verification. This seems to solve the issue. Dafna On Saturday, September 30, 2017 at 4:11:11 AM UTC+3, Fr=C3=A9d=C3=A9ric Wei= sbecker=20 wrote: > > 2017-09-29 17:09 GMT+02:00 >:=20 > >=20 > > I started with the instructions in the site=20 > https://kernelnewbies.org/Outreachyfirstpatch#head-17dd753ec497c8f7e2305c= e78be8c6ca7cd1c92c=20 > > I sent a mail to myself , It got to the spam folder with warning "this= =20 > message was not encrypted"=20 > >=20 > > I also got a mail from google:=20 > >=20 > > Review blocked sign-in attempt=20 > > Hi Dafna,=20 > > Google just blocked someone from signing into your Google Account=20 > daf...@gmail.com from an app that may put your account at= =20 > risk.=20 > >=20 > >=20 > >=20 > > Then after googling, I tried to set ~/.muttrc:=20 > >=20 > > set ssl_starttls =3D yes=20 > > set ssl_force_tls =3D yes=20 > > set imap_user =3D 'daf...@gmail.com '=20 > > set smtp_url =3D "smtp://dafna3@smtp.gmail.com:587/"=20 > > set from =3D 'daf...@gmail.com '=20 > > set realname =3D 'Dafna Hirschfeld'=20 > > set folder =3D "imaps://imap.gmail.com:993"=20 > > set record=3D"+[Gmail]/Sent Mail"=20 > > set spoolfile =3D imaps://imap.gmail.com:993/INBOX=20 > > set postponed=3D"+[Gmail]/Drafts"=20 > > set header_cache =3D "~/.mutt/cache/headers"=20 > > set message_cachedir =3D "~/.mutt/cache/bodies"=20 > > set certificate_file =3D "~/.mutt/certificates"=20 > >=20 > > and my ~/.esmtprc is:=20 > >=20 > > identity "daf...@gmail.com "=20 > > hostname smtp.gmail.com:587=20 > > username "daf...@gmail.com "=20 > > starttls required=20 > >=20 > > now when I run "mutt -d 5" I get the message:=20 > >=20 > > Password for dafna3@gmail.com@imap.gmail.com:=20 > >=20 > > after I enter my password I get "Login Failed"=20 > >=20 > > looking at the ~/.muttdebug0:=20 > >=20 > >=20 > > [2017-09-29 18:01:21] Mutt/1.5.24 (2015-08-30) debugging at level 5=20 > > [2017-09-29 18:01:21] Reading configuration file '/etc/Muttrc'.=20 > > [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5768, *ldata =3D= =20 > (nil)=20 > > [2017-09-29 18:01:21] parse_attach_list: added */.* [9]=20 > > [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5760, *ldata =3D= =20 > (nil)=20 > > [2017-09-29 18:01:21] parse_attach_list: added text/x-vcard [7]=20 > > [2017-09-29 18:01:21] parse_attach_list: added application/pgp.* [2]=20 > > [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5760, *ldata =3D= =20 > 0x11ff180=20 > > [2017-09-29 18:01:21] parse_attach_list: skipping text/x-vcard=20 > > [2017-09-29 18:01:21] parse_attach_list: skipping application/pgp.*=20 > > [2017-09-29 18:01:21] parse_attach_list: added application/x-pkcs7-.*= =20 > [2]=20 > > [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5758, *ldata =3D= =20 > (nil)=20 > > [2017-09-29 18:01:21] parse_attach_list: added text/plain [7]=20 > > [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5760, *ldata =3D= =20 > 0x11ff180=20 > > [2017-09-29 18:01:21] parse_attach_list: skipping text/x-vcard=20 > > [2017-09-29 18:01:21] parse_attach_list: skipping application/pgp.*=20 > > [2017-09-29 18:01:21] parse_attach_list: skipping application/x-pkcs7-.= *=20 > > [2017-09-29 18:01:21] parse_attach_list: added message/external-body [4= ]=20 > > [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5750, *ldata =3D= =20 > (nil)=20 > > [2017-09-29 18:01:21] parse_attach_list: added message/external-body [4= ]=20 > > [2017-09-29 18:01:21] Reading configuration file=20 > '/usr/lib/mutt/source-muttrc.d|'.=20 > > [2017-09-29 18:01:21] Reading configuration file=20 > '/etc/Muttrc.d/charset.rc'.=20 > > [2017-09-29 18:01:21] Reading configuration file=20 > '/etc/Muttrc.d/colors.rc'.=20 > > [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far: 1=20 > > [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far: 2=20 > > [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far: 3=20 > > [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far: 4=20 > > [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far: 5=20 > > [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far: 6=20 > > [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far: 7=20 > > [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far: 8=20 > > [2017-09-29 18:01:21] Reading configuration file=20 > '/etc/Muttrc.d/compressed-folders.rc'.=20 > > [2017-09-29 18:01:21] Reading configuration file '/etc/Muttrc.d/gpg.rc'= .=20 > > [2017-09-29 18:01:21] Reading configuration file=20 > '/etc/Muttrc.d/smime.rc'.=20 > > [2017-09-29 18:01:22] Reading configuration file '/home/dafna/.muttrc'.= =20 > > [2017-09-29 18:01:22] Using default IMAP port 143=20 > > [2017-09-29 18:01:22] Using default IMAPS port 993=20 > > [2017-09-29 18:01:22] Reading imaps://imap.gmail.com:993/INBOX...=20 > > [2017-09-29 18:01:22] Looking up imap.gmail.com...=20 > > [2017-09-29 18:01:22] Connecting to imap.gmail.com...=20 > > [2017-09-29 18:01:22] SSL/TLS connection using TLS1.2=20 > (ECDHE-RSA/AES-128-GCM/AEAD)=20 > > [2017-09-29 18:01:23] Connected to imap.gmail.com:993 on fd=3D5=20 > > [2017-09-29 18:01:23] imap_cmd_step: grew buffer to 512 bytes=20 > > [2017-09-29 18:01:23] 5< * OK Gimap ready for requests from 87.70.155.1= 1=20 > 4mb36680424wrk=20 > > [2017-09-29 18:01:23] IMAP queue drained=20 > > [2017-09-29 18:01:23] 5> a0000 CAPABILITY=20 > > [2017-09-29 18:01:23] 5< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE= =20 > QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=3DXOAUTH2 AUTH=3DPL= AIN=20 > AUTH=3DPLAIN-CLIENTTOKEN AUTH=3DOAUTHBEARER AUTH=3DXOAUTH=20 > > [2017-09-29 18:01:23] Handling CAPABILITY=20 > > [2017-09-29 18:01:23] 5< a0000 OK Thats all she wrote! 4mb36680424wrk= =20 > > [2017-09-29 18:01:23] IMAP queue drained=20 > > [2017-09-29 18:01:23] imap_authenticate: Using any available method.=20 > > [2017-09-29 18:01:23] SASL local ip: 192.168.1.3;49818, remote=20 > ip:64.233.184.109;993=20 > > [2017-09-29 18:01:23] External SSF: 128=20 > > [2017-09-29 18:01:23] mutt_sasl_cb_authname: getting authname for=20 > imap.gmail.com:993=20 > > [2017-09-29 18:01:23] mutt_sasl_cb_authname: getting user for=20 > imap.gmail.com:993=20 > > [2017-09-29 18:01:23] mutt_sasl_cb_pass: getting password for=20 > dafna3@gmail.com@imap.gmail.com:993=20 > > [2017-09-29 18:01:51] Authenticating (PLAIN)...=20 > > [2017-09-29 18:01:51] 5> a0001 AUTHENTICATE PLAIN=20 > ZGFmbmEzQGdtYWlsLmNvbQBkYWZuYTNAZ21haWwuY29tAHptb3JhYml0YW4=3D=20 > > [2017-09-29 18:01:52] 5< * NO [WEBALERT=20 > https://accounts.google.com/signin/continue?sarp=3D1&scc=3D1&plt=3DAKgnsb= ugOQ198DOy7Zb1MDieiIPEzFKc8]=20 > Web login required.=20 > > [2017-09-29 18:01:52] Handling untagged NO=20 > > [2017-09-29 18:01:52] [WEBALERT=20 > https://accounts.google.com/signin/continue?sarp=3D1&scc=3D1&plt=3DAKgnsb= ugOQ198DOy7Zb1MDieiIPEzFKc1njxh1OAIMIwnM_HFpfrZrE8Cs8jIZ8]=20 > Web login required.=20 > > [2017-09-29 18:01:54] 5< a0001 NO [ALERT] Please log in via your web=20 > browser: https://support.google.com/mail/accounts/answer/78754 (Failure)= =20 > > [2017-09-29 18:01:54] IMAP queue drained=20 > > [2017-09-29 18:01:54] imap_auth_sasl: IMAP4rev1 UNSELECT IDLE NAMESPACE= =20 > QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=3DXOAUTH2 AUTH=3DPL= AIN=20 > AUTH=3DPLAIN-CLIENTTOKEN AUTH=3DOAUTHBEARER AUTH=3DXOAUTH failed=20 > > [2017-09-29 18:01:54] Logging in...=20 > > [2017-09-29 18:01:54] 5> a0002 LOGIN "daf...@gmail.com "= =20 > =20 > > [2017-09-29 18:01:54] 5< * NO [WEBALERT=20 > https://accounts.google.com/signin/continue?sarp=3D1&scc=3D1&plt=3DAKgnsb= tsuqTeiA_IDHsoIa3Utf_H1khBtwHGPHU6HQDMyeG3LyUNEoFXbnca04wxTgx9HN5kLUpQ]=20 > Web login required.=20 > > [2017-09-29 18:01:54] Handling untagged NO=20 > > [2017-09-29 18:01:54] [WEBALERT=20 > https://accounts.google.com/signin/continue?sarp=3D1&scc=3D1&plt=3DAKgnsb= tsuqTeiA_IDHsoIa3Utf_H1khBtwHGPHU6HQDMyeG3LyUNEoFXbnca04wxTgx9HN5kLUpQ9nLYd= dqY70JeOESSjlwXKknggYPTII1U_XV7]=20 > Web login required.=20 > > [2017-09-29 18:01:56] 5< a0002 NO [ALERT] Please log in via your web=20 > browser: https://support.google.com/mail/accounts/answer/78754 (Failure)= =20 > > > Hi Dafna,=20 > > Yes they haven't made gmail easy for the outside IMAP world. Well it=20 > used to be easy but google is evolving as it does...=20 > > So you need to make sure you check everything there:=20 > https://support.google.com/mail/accounts/answer/78754=20 > > Some outstanding non obvious points from that page:=20 > > 1) Make sure you enabled IMAP on gmail parameters=20 > 2) Enable access to non secured apps (google account parameters)=20 > 3) Check https://www.google.com/ajccounts/DisplayUnlockCaptcha=20 > > It's also possible that none of this will help. For exemple IMAP login=20 > on my account has stopped working suddenly several days ago.=20 > Impossible to know why. So I'm stuck with overkill email clients=20 > supporting OAUTH2. You should have better luck though, my case seems=20 > to be isolated as far as I know.=20 > ------=_Part_4321_266542903.1506749643122 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,
Thanks a lot,
I enabled the 2-step verif= ication , generated an app password to use in mutt and then disabled the 2 = step verification.
This seems to solve the issue.

<= /div>
Dafna

On Saturday, September 30, 2017 at 4:11:11 AM UTC+3,= Fr=C3=A9d=C3=A9ric Weisbecker wrote:
2017-09-29 17:09 GMT+02:00 <daf...@gmail.com>:
>
> I started with the instructions in the site https://kernelnewbies.org/Outreachyfirstpatch#hea= d-17dd753ec497c8f7e2305ce78be8c6ca7cd1c92c
> I sent a mail to myself , It got to the spam folder with warning &= quot;this message was not encrypted"
>
> I also got a mail from google:
>
> Review blocked sign-in attempt
> Hi Dafna,
> Google just blocked someone from signing into your Google Account = daf..= .@gmail.com from an app that may put your account at risk.
>
>
>
> Then after googling, I tried to set ~/.muttrc:
>
> set ssl_starttls =3D yes
> set ssl_force_tls =3D yes
> set imap_user =3D 'daf...@gmail.com'
> set smtp_url =3D "smtp://dafna3@smtp.gm= ail.com:587/"
> set from =3D 'daf...@gmail.com'
> set realname =3D 'Dafna Hirschfeld'
> set folder =3D "imaps://imap.gmail.com:993"
> set record=3D"+[Gmail]/Sent Mail"
> set spoolfile =3D imaps://imap.gmail.com:993/= INBOX
> set postponed=3D"+[Gmail]/Drafts"
> set header_cache =3D "~/.mutt/cache/headers"
> set message_cachedir =3D "~/.mutt/cache/bodies"
> set certificate_file =3D "~/.mutt/certificates"
>
> and my ~/.esmtprc is:
>
> identity "daf...@gmail.com"
> hostname smtp.gmail.com:587
> username "daf...@gmail.com"
> starttls required
>
> now when I run "mutt -d 5" I get the message:
>
> Password for dafna3@gmail.com@imap.gmail.com:
>
> after I enter my password I get "Login Failed"
>
> looking at the ~/.muttdebug0:
>
>
> [2017-09-29 18:01:21] Mutt/1.5.24 (2015-08-30) debugging at level = 5
> [2017-09-29 18:01:21] Reading configuration file '/etc/Muttrc&= #39;.
> [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5768, *ldat= a =3D (nil)
> [2017-09-29 18:01:21] parse_attach_list: added */.* [9]
> [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5760, *ldat= a =3D (nil)
> [2017-09-29 18:01:21] parse_attach_list: added text/x-vcard [7]
> [2017-09-29 18:01:21] parse_attach_list: added application/pgp.* [= 2]
> [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5760, *ldat= a =3D 0x11ff180
> [2017-09-29 18:01:21] parse_attach_list: skipping text/x-vcard
> [2017-09-29 18:01:21] parse_attach_list: skipping application/pgp.= *
> [2017-09-29 18:01:21] parse_attach_list: added application/x-pkcs7= -.* [2]
> [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5758, *ldat= a =3D (nil)
> [2017-09-29 18:01:21] parse_attach_list: added text/plain [7]
> [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5760, *ldat= a =3D 0x11ff180
> [2017-09-29 18:01:21] parse_attach_list: skipping text/x-vcard
> [2017-09-29 18:01:21] parse_attach_list: skipping application/pgp.= *
> [2017-09-29 18:01:21] parse_attach_list: skipping application/x-pk= cs7-.*
> [2017-09-29 18:01:21] parse_attach_list: added message/external-bo= dy [4]
> [2017-09-29 18:01:21] parse_attach_list: ldata =3D 0x6e5750, *ldat= a =3D (nil)
> [2017-09-29 18:01:21] parse_attach_list: added message/external-bo= dy [4]
> [2017-09-29 18:01:21] Reading configuration file '/usr/lib/mut= t/source-muttrc.d|'.
> [2017-09-29 18:01:21] Reading configuration file '/etc/Muttrc.= d/charset.rc'.
> [2017-09-29 18:01:21] Reading configuration file '/etc/Muttrc.= d/colors.rc'.
> [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far:= 1
> [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far:= 2
> [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far:= 3
> [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far:= 4
> [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far:= 5
> [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far:= 6
> [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far:= 7
> [2017-09-29 18:01:21] mutt_alloc_color(): Color pairs used so far:= 8
> [2017-09-29 18:01:21] Reading configuration file '/etc/Muttrc.= d/compressed-folders.rc'.
> [2017-09-29 18:01:21] Reading configuration file '/etc/Muttrc.= d/gpg.rc'.
> [2017-09-29 18:01:21] Reading configuration file '/etc/Muttrc.= d/smime.rc'.
> [2017-09-29 18:01:22] Reading configuration file '/home/dafna/= .muttrc'.
> [2017-09-29 18:01:22] Using default IMAP port 143
> [2017-09-29 18:01:22] Using default IMAPS port 993
> [2017-09-29 18:01:22] Reading imaps://imap.gmai= l.com:993/INBOX...
> [2017-09-29 18:01:22] Looking up imap.gmail.com...
> [2017-09-29 18:01:22] Connecting to imap.gmail.com...
> [2017-09-29 18:01:22] SSL/TLS connection using TLS1.2 (ECDHE-RSA/A= ES-128-GCM/AEAD)
> [2017-09-29 18:01:23] Connected to imap.gmail.com:993 on fd=3D5
> [2017-09-29 18:01:23] imap_cmd_step: grew buffer to 512 bytes
> [2017-09-29 18:01:23] 5< * OK Gimap ready for requests from 87.= 70.155.11 4mb36680424wrk
> [2017-09-29 18:01:23] IMAP queue drained
> [2017-09-29 18:01:23] 5> a0000 CAPABILITY
> [2017-09-29 18:01:23] 5< * CAPABILITY IMAP4rev1 UNSELECT IDLE N= AMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=3DXOAUTH2 AU= TH=3DPLAIN AUTH=3DPLAIN-CLIENTTOKEN AUTH=3DOAUTHBEARER AUTH=3DXOAUTH
> [2017-09-29 18:01:23] Handling CAPABILITY
> [2017-09-29 18:01:23] 5< a0000 OK Thats all she wrote! 4mb36680= 424wrk
> [2017-09-29 18:01:23] IMAP queue drained
> [2017-09-29 18:01:23] imap_authenticate: Using any available metho= d.
> [2017-09-29 18:01:23] SASL local ip: 192.168.1.3;49818, remote ip:= 64.233.184.109;993
> [2017-09-29 18:01:23] External SSF: 128
> [2017-09-29 18:01:23] mutt_sasl_cb_authname: getting authname for = im= ap.gmail.com:993
> [2017-09-29 18:01:23] mutt_sasl_cb_authname: getting user for imap.g= mail.com:993
> [2017-09-29 18:01:23] mutt_sasl_cb_pass: getting password for dafn= a3@gmail.com@imap.gmail.com:993
> [2017-09-29 18:01:51] Authenticating (PLAIN)...
> [2017-09-29 18:01:51] 5> a0001 AUTHENTICATE PLAIN ZGFmbmEzQGdtY= WlsLmNvbQBkYWZuYTNAZ21haWwuY29tAHptb3JhYml0YW4=3D
> [2017-09-29 18:01:52] 5< * NO [WEBALERT https://accounts.google.com/signin/continue?sarp=3D1&scc=3D1&= plt=3DAKgnsbugOQ198DOy7Zb1MDieiIPEzFKc8] Web login requi= red.
> [2017-09-29 18:01:52] Handling untagged NO
> [2017-09-29 18:01:52] [WEBALERT https://accounts.google.com/signin/continue?sarp=3D1&scc=3D1&= amp;plt=3DAKgnsbugOQ198DOy7Zb1MDieiIPEzFKc1njxh1OAIMIwnM_HFpfrZrE8Cs8jIZ8] Web login required.
> [2017-09-29 18:01:54] 5< a0001 NO [ALERT] Please log in via you= r web browser: https://support.google.com/mail/accounts/answer/78754 (Failu= re)
> [2017-09-29 18:01:54] IMAP queue drained
> [2017-09-29 18:01:54] imap_auth_sasl: IMAP4rev1 UNSELECT IDLE NAME= SPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=3DXOAUTH2 AUTH= =3DPLAIN AUTH=3DPLAIN-CLIENTTOKEN AUTH=3DOAUTHBEARER AUTH=3DXOAUTH failed
> [2017-09-29 18:01:54] Logging in...
> [2017-09-29 18:01:54] 5> a0002 LOGIN "daf...@gmail.com&qu= ot; <my password was here >
> [2017-09-29 18:01:54] 5< * NO [WEBALERT https://accounts.goo= gle.com/signin/continue?sarp=3D1&scc=3D1&plt=3DAKgnsbtsuq= TeiA_IDHsoIa3Utf_H1khBtwHGPHU6HQDMyeG3LyUNEoFXbnca04wxTgx9HN= 5kLUpQ] Web login required.
> [2017-09-29 18:01:54] Handling untagged NO
> [2017-09-29 18:01:54] [WEBALERT https://accounts.google.com/signin/continue?sarp=3D1&scc=3D1&a= mp;plt=3DAKgnsbtsuqTeiA_IDHsoIa3Utf_H1khBtwHGPHU6HQDMyeG3LyU= NEoFXbnca04wxTgx9HN5kLUpQ9nLYddqY70JeOESSjlwXKknggYPTII1U_XV7= ] Web login required.
> [2017-09-29 18:01:56] 5< a0002 NO [ALERT] Please log in via you= r web browser: https://support.google.com/mail/accounts/answer/78754 (Failu= re)


Hi Dafna,

Yes they haven't made gmail easy for the outside IMAP world. Well i= t
used to be easy but google is evolving as it does...

So you need to make sure you check everything there:
https:= //support.google.com/mail/accounts/answer/78754

Some outstanding non obvious points from that page:

1) Make sure you enabled IMAP on gmail parameters
2) Enable access to non secured apps (google account parameters)
3) Check =C2=A0https://www.google.com/ajccounts/DisplayUnlo= ckCaptcha

It's also possible that none of this will help. For exemple IMAP lo= gin
on my account has stopped working suddenly several days ago.
Impossible to know why. So I'm stuck with overkill email clients
supporting OAUTH2. You should have better luck though, my case seems
to be isolated as far as I know.
------=_Part_4321_266542903.1506749643122-- ------=_Part_4320_946551875.1506749643121--