{"thread":{"id":"46910","subject":"git send-email does not work with Google anymore?!","startedAt":"2017-10-05T10:52:36Z","lastAt":"2017-11-17T13:50:48Z","messageCount":9,"participants":["Lars Schneider","Paolo Bonzini","ankostis","Kaartic Sivaraam","Christian Couder","Ævar Arnfjörð Bjarmason","Dennis Kaarsemaker"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"329750","messageId":"EC14D46D-61AB-4531-AE20-8C2B3F6B5A2A@gmail.com","threadId":"46910","inReplyTo":null,"subject":"git send-email does not work with Google anymore?!","fromName":"Lars Schneider","fromEmail":"larsxschneider@gmail.com","sentAt":"2017-10-05T10:52:26Z","receivedAt":"2017-10-05T10:52:36Z","isPatch":false,"sender":{"key":"larsxschneider@gmail.com","avatar":"https://avatars.githubusercontent.com/u/477434?v=4"},"body":"Hi,\n\nI used to use the Google SMTP server to send my patches to the list with \nthe following config:\n\n    [sendemail]\n        smtpencryption = tls\n        smtpserver = smtp.gmail.com\n        smtpuser = larsxschneider@gmail.com\n        smtpserverport = 587\n        from = larsxschneider@gmail.com\n        chainreplyto = false\n        suppresscc = self\n\nApparently that stopped working today. I get this error:\n\n    (mbox) Adding cc: Lars Schneider <larsxschneider@gmail.com> from line 'From: Lars Schneider <larsxschneider@gmail.com>'\n    Password for 'smtp://larsxschneider@gmail.com@smtp.gmail.com:587':\n    5.7.14 <https://accounts.google.com/signin/continue?...token...\n    5.7.14 ...> Please log in via your web browser and\n    5.7.14 then try again.\n    5.7.14  Learn more at\n    5.7.14  https://support.google.com/mail/answer/78754 ... - gsmtp\n\nOf couse I tried to log in via web browser etc. Does anyone else use \nGoogle as SMTP server? If yes, does it work for you?\n\nThanks,\nLars"},{"id":"329770","messageId":"384b95b9-822a-872a-999a-10b5e1e60076@gnu.org","threadId":"46910","inReplyTo":"EC14D46D-61AB-4531-AE20-8C2B3F6B5A2A@gmail.com","subject":"Re: git send-email does not work with Google anymore?!","fromName":"Paolo Bonzini","fromEmail":"bonzini@gnu.org","sentAt":"2017-10-05T13:43:46Z","receivedAt":"2017-10-05T13:43:57Z","isPatch":false,"sender":{"key":"bonzini@gnu.org","avatar":"https://avatars.githubusercontent.com/u/42082?v=4"},"body":"On 05/10/2017 12:52, Lars Schneider wrote:\n> Hi,\n> \n> I used to use the Google SMTP server to send my patches to the list with \n> the following config:\n> \n>     [sendemail]\n>         smtpencryption = tls\n>         smtpserver = smtp.gmail.com\n>         smtpuser = larsxschneider@gmail.com\n>         smtpserverport = 587\n>         from = larsxschneider@gmail.com\n>         chainreplyto = false\n>         suppresscc = self\n> \n> Apparently that stopped working today. I get this error:\n> \n>     (mbox) Adding cc: Lars Schneider <larsxschneider@gmail.com> from line 'From: Lars Schneider <larsxschneider@gmail.com>'\n>     Password for 'smtp://larsxschneider@gmail.com@smtp.gmail.com:587':\n>     5.7.14 <https://accounts.google.com/signin/continue?...token...\n>     5.7.14 ...> Please log in via your web browser and\n>     5.7.14 then try again.\n>     5.7.14  Learn more at\n>     5.7.14  https://support.google.com/mail/answer/78754 ... - gsmtp\n> \n> Of couse I tried to log in via web browser etc. Does anyone else use \n> Google as SMTP server? If yes, does it work for you?\n\nIt's probably a good idea to set up two-factor authentication and add an \napp-specific password for \"git send-email\" (at least that's what I do).\n\nThe password can be stored encrypted using the OS keychain, or if you\ndon't want/have one (e.g. you are running headless) you could check if\nyour distro installs git-credential-netrc.  Create a ~/.netrc.gpg file,\nwhere the decrypted content should look like\n\n    machine smtp.gmail.com login larsxschneider@gmail.com password mypassword\n\nThen do\n\n    git config --global credential.helper netrc\n\nand you're all set. :)\n\nPaolo\n"},{"id":"329772","messageId":"CA+dhYEUb7uwpYazR1MXNYBXCTPipY0zVKDadnxOKMLaYiM932w@mail.gmail.com","threadId":"46910","inReplyTo":"384b95b9-822a-872a-999a-10b5e1e60076@gnu.org","subject":"Re: git send-email does not work with Google anymore?!","fromName":"ankostis","fromEmail":"ankostis@gmail.com","sentAt":"2017-10-05T14:21:20Z","receivedAt":"2017-10-05T14:22:00Z","isPatch":false,"sender":{"key":"ankostis@gmail.com","avatar":"https://gravatar.com/avatar/1f3597ab8ad44cbb0fd782a2773e3aba94a52c03f9f6bbe5ccb7f1fe2581b12b?d=mp&s=160"},"body":"On 5 October 2017 at 15:43, Paolo Bonzini <bonzini@gnu.org> wrote:\n>\n> On 05/10/2017 12:52, Lars Schneider wrote:\n> > Hi,\n> >\n> > I used to use the Google SMTP server to send my patches to the list with\n> > the following config:\n> >\n> >     [sendemail]\n> >         smtpencryption = tls\n> >         smtpserver = smtp.gmail.com\n> >         smtpuser = larsxschneider@gmail.com\n> >         smtpserverport = 587\n> >         from = larsxschneider@gmail.com\n> >         chainreplyto = false\n> >         suppresscc = self\n> >\n> > Apparently that stopped working today. I get this error:\n> >\n> >     (mbox) Adding cc: Lars Schneider <larsxschneider@gmail.com> from line 'From: Lars Schneider <larsxschneider@gmail.com>'\n> >     Password for 'smtp://larsxschneider@gmail.com@smtp.gmail.com:587':\n> >     5.7.14 <https://accounts.google.com/signin/continue?...token...\n> >     5.7.14 ...> Please log in via your web browser and\n> >     5.7.14 then try again.\n> >     5.7.14  Learn more at\n> >     5.7.14  https://support.google.com/mail/answer/78754 ... - gsmtp\n> >\n> > Of couse I tried to log in via web browser etc. Does anyone else use\n> > Google as SMTP server? If yes, does it work for you?\n\nI have been using SMTP+GMail rather a lot, recently.\nThe situation is a mess, and it becomes worse by the month!\n\nTill recently, you had to perform various steps to achieve this:\n\n1. Got to your web-gmail, Settings | Forwarding and POP/IMAP | Enable\nIMAP Access\n\n2. Enable access for \"Less secure apps\":\n   https://support.google.com/accounts/answer/6010255?hl=en\n\n3. Try to SMTP-login.\n\n   BUT if the IP had not access web-GMail recently,\n   you got the message you report.\n   So you had to:\n   - reconstruct the URL+token intermingled in the SMTP-error message,\n   - paste it in your browser, and\n   - do a web-login to prove you are a human.\n\nYou had to perform step 3 regularly.\n\n\nNow, if you had 2-factor-auth enabled, you could use\n\"app-passwords\" to log into your gmail account:\nhttps://support.google.com/accounts/answer/185833?hl=en\n\nBut this seems to have stopped working; I clicked the link in the page below\n  https://support.google.com/accounts/answer/6010255?hl=en\nand for my account it tells me \"less secure apps\" access is unavailable :-(\n\n\n\n>\n> It's probably a good idea to set up two-factor authentication and add an\n> app-specific password for \"git send-email\" (at least that's what I do).\n>\n> The password can be stored encrypted using the OS keychain, or if you\n> don't want/have one (e.g. you are running headless) you could check if\n> your distro installs git-credential-netrc.  Create a ~/.netrc.gpg file,\n> where the decrypted content should look like\n>\n>     machine smtp.gmail.com login larsxschneider@gmail.com password mypassword\n>\n> Then do\n>\n>     git config --global credential.helper netrc\n>\n> and you're all set. :)\n\nI believe the best way forward is to use OAuth.\n\n\n\nCiao,\n  Kostis\n"},{"id":"329773","messageId":"a5dc6969-9f2b-6468-962d-414d9252fd54@gnu.org","threadId":"46910","inReplyTo":"CA+dhYEUb7uwpYazR1MXNYBXCTPipY0zVKDadnxOKMLaYiM932w@mail.gmail.com","subject":"Re: git send-email does not work with Google anymore?!","fromName":"Paolo Bonzini","fromEmail":"bonzini@gnu.org","sentAt":"2017-10-05T15:47:01Z","receivedAt":"2017-10-05T15:47:16Z","isPatch":false,"sender":{"key":"bonzini@gnu.org","avatar":"https://avatars.githubusercontent.com/u/42082?v=4"},"body":"On 05/10/2017 16:21, ankostis wrote:\n> \n> But this seems to have stopped working; I clicked the link in the page below\n>   https://support.google.com/accounts/answer/6010255?hl=en\n> and for my account it tells me \"less secure apps\" access is unavailable :-(\n\nIt says for me \"This setting is not available for accounts with 2-Step\nVerification enabled. Such accounts require an application-specific\npassword for less secure apps access\", which is the right thing to do.\n\nI used an app-specific password ten minutes before answering OP...\n\nPaolo\n"},{"id":"329897","messageId":"1507301029.12554.12.camel@gmail.com","threadId":"46910","inReplyTo":"EC14D46D-61AB-4531-AE20-8C2B3F6B5A2A@gmail.com","subject":"Re: git send-email does not work with Google anymore?!","fromName":"Kaartic Sivaraam","fromEmail":"kaartic.sivaraam@gmail.com","sentAt":"2017-10-06T14:43:49Z","receivedAt":"2017-10-06T14:44:00Z","isPatch":false,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"On Thu, 2017-10-05 at 12:52 +0200, Lars Schneider wrote:\n> Apparently that stopped working today. I get this error:\n> \n>     (mbox) Adding cc: Lars Schneider <larsxschneider@gmail.com> from line 'From: Lars Schneider <larsxschneider@gmail.com>'\n>     Password for 'smtp://larsxschneider@gmail.com@smtp.gmail.com:587':\n>     5.7.14 <https://accounts.google.com/signin/continue?...token...\n>     5.7.14 ...> Please log in via your web browser and\n>     5.7.14 then try again.\n>     5.7.14  Learn more at\n>     5.7.14  https://support.google.com/mail/answer/78754 ... - gsmtp\n> \n> Of couse I tried to log in via web browser etc. Does anyone else use \n> Google as SMTP server? If yes, does it work for you?\n> \n\nI thought I was the only one having this problem. Seems, I'm not alone\n;-) Until recently I was using the email address,\n\nkaarticsivaraam91196@gmail.com\n\nto send patches. Last week, I got the same error message you did and\ntried to fix it in various ways but failed in my attempt; got fed up\nand switched to another mail address I owned (the current one) using\nwhich I'm able to send patches (surprise !). Fortune for me as, it\nwasn't a big deal. I think this is an issue with Google.\n\n(I still don't know when I'm going to get the error for this one. I\ndon't have ideas to change this one.)\n\n\n-- \nKaartic\n"},{"id":"329898","messageId":"CAP8UFD1hTc0dXWmiF6aW6=_7DhB8zhvzOXy9hEXrfvgWwimJ7g@mail.gmail.com","threadId":"46910","inReplyTo":"EC14D46D-61AB-4531-AE20-8C2B3F6B5A2A@gmail.com","subject":"Re: git send-email does not work with Google anymore?!","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2017-10-06T15:02:12Z","receivedAt":"2017-10-06T15:02:18Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Hi,\n\nOn Thu, Oct 5, 2017 at 12:52 PM, Lars Schneider\n<larsxschneider@gmail.com> wrote:\n\n> Of couse I tried to log in via web browser etc. Does anyone else use\n> Google as SMTP server? If yes, does it work for you?\n\nAs I wrote at the top of:\n\nhttps://public-inbox.org/git/CAP8UFD2j-UFh+9awz91gtZ-jusq7EUOExMgURO59vpf29jXS4A@mail.gmail.com/\n\nI also got the same problem.\n"},{"id":"329900","messageId":"878tgo6ypk.fsf@evledraar.booking.com","threadId":"46910","inReplyTo":"EC14D46D-61AB-4531-AE20-8C2B3F6B5A2A@gmail.com","subject":"Re: git send-email does not work with Google anymore?!","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2017-10-06T16:13:59Z","receivedAt":"2017-10-06T16:14:09Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"\nOn Thu, Oct 05 2017, Lars Schneider jotted:\n\n> Hi,\n>\n> I used to use the Google SMTP server to send my patches to the list with\n> the following config:\n>\n>     [sendemail]\n>         smtpencryption = tls\n>         smtpserver = smtp.gmail.com\n>         smtpuser = larsxschneider@gmail.com\n>         smtpserverport = 587\n>         from = larsxschneider@gmail.com\n>         chainreplyto = false\n>         suppresscc = self\n>\n> Apparently that stopped working today. I get this error:\n>\n>     (mbox) Adding cc: Lars Schneider <larsxschneider@gmail.com> from line 'From: Lars Schneider <larsxschneider@gmail.com>'\n>     Password for 'smtp://larsxschneider@gmail.com@smtp.gmail.com:587':\n>     5.7.14 <https://accounts.google.com/signin/continue?...token...\n>     5.7.14 ...> Please log in via your web browser and\n>     5.7.14 then try again.\n>     5.7.14  Learn more at\n>     5.7.14  https://support.google.com/mail/answer/78754 ... - gsmtp\n>\n> Of couse I tried to log in via web browser etc. Does anyone else use\n> Google as SMTP server? If yes, does it work for you?\n\nIt still works for me. Just sent myself an E-Mail now via\ngit-send-email.\n\n    Password for 'smtp://avarab@gmail.com@smtp.gmail.com:465':\n    OK. Log says:\n    Server: smtp.gmail.com\n    [...]\n    Result: 250\n\nMy settings are:\n\n    [sendemail]\n            smtpserver = smtp.gmail.com\n            smtpEncryption = ssl\n            smtpuser = avarab@gmail.com\n            confirm = always\n\nAnd my https://myaccount.google.com/apppasswords lists an app\npassword.\n\nIf you see this E-Mail from me that means my local Exim instance (which\nalso has an app password) is able to send E-Mail as well.\n\nI have 2fa turned on on my Google account, I just have these app\npasswords for GMail.\n"},{"id":"330838","messageId":"1508776071.2750.15.camel@kaarsemaker.net","threadId":"46910","inReplyTo":"EC14D46D-61AB-4531-AE20-8C2B3F6B5A2A@gmail.com","subject":"Re: git send-email does not work with Google anymore?!","fromName":"Dennis Kaarsemaker","fromEmail":"dennis@kaarsemaker.net","sentAt":"2017-10-23T16:27:51Z","receivedAt":"2017-10-23T16:27:59Z","isPatch":false,"sender":{"key":"dennis@kaarsemaker.net","avatar":"https://avatars.githubusercontent.com/u/200649?v=4"},"body":"On Thu, 2017-10-05 at 12:52 +0200, Lars Schneider wrote:\n> Hi,\n> \n> I used to use the Google SMTP server to send my patches to the list with \n> the following config:\n\n>8 ---\n\n> Apparently that stopped working today. I get this error:\n> \n>     (mbox) Adding cc: Lars Schneider <larsxschneider@gmail.com> from line 'From: Lars Schneider <larsxschneider@gmail.com>'\n>     Password for 'smtp://larsxschneider@gmail.com@smtp.gmail.com:587':\n>     5.7.14 <https://accounts.google.com/signin/continue?...token...\n>     5.7.14 ...> Please log in via your web browser and\n>     5.7.14 then try again.\n>     5.7.14  Learn more at\n>     5.7.14  https://support.google.com/mail/answer/78754 ... - gsmtp\n> \n> Of couse I tried to log in via web browser etc. Does anyone else use \n> Google as SMTP server? If yes, does it work for you?\n\nFor 2fa-protected accounts, this seems to break quite often. I ended up\nsetting up a mail relay on my vps for this. If you want, you can use\ngit.seveas.net to send patches to the git mailing lists (doesn't work\nfor other recipients, I'm not quite stupid enough to run an open mail\nrelay...)\n\nD.\n"},{"id":"332756","messageId":"9FF8A4F0-C449-48C7-8C90-290BF86906C9@gmail.com","threadId":"46910","inReplyTo":"1508776071.2750.15.camel@kaarsemaker.net","subject":"Re: git send-email does not work with Google anymore?!","fromName":"Lars Schneider","fromEmail":"larsxschneider@gmail.com","sentAt":"2017-11-17T13:50:32Z","receivedAt":"2017-11-17T13:50:48Z","isPatch":false,"sender":{"key":"larsxschneider@gmail.com","avatar":"https://avatars.githubusercontent.com/u/477434?v=4"},"body":"\n> On 23 Oct 2017, at 18:27, Dennis Kaarsemaker <dennis@kaarsemaker.net> wrote:\n> \n> On Thu, 2017-10-05 at 12:52 +0200, Lars Schneider wrote:\n>> Hi,\n>> \n>> I used to use the Google SMTP server to send my patches to the list with \n>> the following config:\n> \n>> 8 ---\n> \n>> Apparently that stopped working today. I get this error:\n>> \n>>    (mbox) Adding cc: Lars Schneider <larsxschneider@gmail.com> from line 'From: Lars Schneider <larsxschneider@gmail.com>'\n>>    Password for 'smtp://larsxschneider@gmail.com@smtp.gmail.com:587':\n>>    5.7.14 <https://accounts.google.com/signin/continue?...token...\n>>    5.7.14 ...> Please log in via your web browser and\n>>    5.7.14 then try again.\n>>    5.7.14  Learn more at\n>>    5.7.14  https://support.google.com/mail/answer/78754 ... - gsmtp\n>> \n>> Of couse I tried to log in via web browser etc. Does anyone else use \n>> Google as SMTP server? If yes, does it work for you?\n> \n> For 2fa-protected accounts, this seems to break quite often. I ended up\n> setting up a mail relay on my vps for this. If you want, you can use\n> git.seveas.net to send patches to the git mailing lists (doesn't work\n> for other recipients, I'm not quite stupid enough to run an open mail\n> relay...)\n\n:-) ... unfortunately that also means one can not CC people using your\nserver. Looks like I need to setup my own solution after all :-(\n\nCheers,\nLars"}]}