Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

18.08; imap.googlemail.com vs. imap.gmail.com; "akonadi resources for google services"

225 views
Skip to first unread message

inkbottle

unread,
Oct 3, 2018, 12:20:02 PM10/3/18
to
A puzzling Oauth related message, and how I dealt with it: (irc cut and past,
hence the weird looking style ;) )

Rebooting with akonadi 18.08 (debian), I've got that message "akonadi
resources for google services".
For a gmail address of mine.
I'm wondering what it can be.
So I checked "cancel" and as a consequence it said my gmail account is broken.
I reconfigured my account using imap.googlemail.com instead of imap.gmail.com;
I hope it will suffice.
OK, it did work.

Beware it also "changed" my password for a very long "password", so you'll
have to enter your password back.

The place I did the changes is:
Kmail settings > Accounts > Receiving >
There I selected the faulty gmail account;
And I did "modify";
Changed imap.gmail.com to imap.googlemail.com;
Fixed my password;
And there it is.

Thanks,
Chris

Frank Mehnert

unread,
Oct 4, 2018, 3:20:04 PM10/4/18
to
Since the recent kdepim upgrade I cannot read e-mails with kmail anymore. First I thought I can fix it like proposed by inkbottle but my problem seems to be different:

When kmail tries to synchronize the imap resource for my gmail account then the QtWebKit window is shown asking for my credentials. I pass my usual login name and then press the 'Next' button. But nothing happens and the same window appears a few times asking for the same information. Finally I found out that /usr/bin/akonadi_imap_resource is crashing. I will open a bug upstream.

Please let me know if someone runs into a similar issue and found a workaround.

Thanks,

Frank

inkbottle

unread,
Oct 4, 2018, 9:20:02 PM10/4/18
to
On Friday, October 5, 2018 3:10:45 AM CEST you wrote:
> On Thursday, October 4, 2018 9:17:25 PM CEST Frank Mehnert wrote:
> > Since the recent kdepim upgrade I cannot read e-mails with kmail anymore.
> > First I thought I can fix it like proposed by inkbottle but my problem
> > seems to be different:
> >
> > When kmail tries to synchronize the imap resource for my gmail account
> > then
> > the QtWebKit window is shown asking for my credentials. I pass my usual
>
> In my case, after I changed imap.gmail.com to imap.googlemail.com, and
> reentered my password, both action being performed inside Kmail-Settings, I
> am not asked anymore for *credentials*:
>
> I mean, after performing the above modifications, it's a whole "new"
> account, from the point of view of kmail, the one previously existing using
> "imap.gmail.com" has been ditched altogether.
>
> And from that point onward, I'm not bothered by any popup dialogue: which
> origin I do not know (even if it claims it is Google, I've got not way to
> verify that information), and which therefore I obviously do not trust.
>
> (Again, I did had the "credential"-popup after log-in. But I dismissed it, I
> answered cancel; Then I did the "hack". And the popup never came back)
>
> It behaves exactly as "the next guy", and not at all after any specific
> Google/Oauth pattern.
>
> The trick about using imap.googlemail.com in place of imap.gmail.com, I've
> probably learned it here, on that list, or on irc: in any case, googling
> with those keywords could provide further clues.
>
> (I understand there is no warranty that imap.googlemail.com will perform as
> described above, it might depends on the area you live in, or whatever)

You also probably have to allow for "less secure connections/authentication"
on you google account: But I believe that has been done already.

>
> Best,
> Chris

inkbottle

unread,
Oct 4, 2018, 9:20:02 PM10/4/18
to
On Thursday, October 4, 2018 9:17:25 PM CEST Frank Mehnert wrote:
> Since the recent kdepim upgrade I cannot read e-mails with kmail anymore.
> First I thought I can fix it like proposed by inkbottle but my problem
> seems to be different:
>
> When kmail tries to synchronize the imap resource for my gmail account then
> the QtWebKit window is shown asking for my credentials. I pass my usual

In my case, after I changed imap.gmail.com to imap.googlemail.com, and
reentered my password, both action being performed inside Kmail-Settings, I am
not asked anymore for *credentials*:

I mean, after performing the above modifications, it's a whole "new" account,
from the point of view of kmail, the one previously existing using
"imap.gmail.com" has been ditched altogether.

And from that point onward, I'm not bothered by any popup dialogue: which
origin I do not know (even if it claims it is Google, I've got not way to
verify that information), and which therefore I obviously do not trust.

(Again, I did had the "credential"-popup after log-in. But I dismissed it, I
answered cancel; Then I did the "hack". And the popup never came back)

It behaves exactly as "the next guy", and not at all after any specific
Google/Oauth pattern.

The trick about using imap.googlemail.com in place of imap.gmail.com, I've
probably learned it here, on that list, or on irc: in any case, googling with
those keywords could provide further clues.

(I understand there is no warranty that imap.googlemail.com will perform as
described above, it might depends on the area you live in, or whatever)

Best,
Chris

Frank Mehnert

unread,
Oct 5, 2018, 3:10:02 AM10/5/18
to
I just re-enabled this settings and are back to SSL/TLS / clear text but
one of the benefits of the recent kdepim upgrade is being able to disable
that setting finally (and not getting the annoying reminders from Google).

And I changed the IMAP server to imap.googlemail.com and fixed my password
as well but still, not being able to read e-mail using SSL/TLS / gmail :-(

I reported my bug upstream

https://bugs.kde.org/show_bug.cgi?id=399389

but so far no response.

Kind regards,

Frank

> [...]

inkbottle

unread,
Oct 8, 2018, 12:40:03 PM10/8/18
to
I too have been utterly upset by the constant Google's security warnings;
which I deem are in themselves a security threat, because they are coming at
any time of the day, on your phone, and there will sure be a time, when you'll
hit the wrong button, or end up giving your credential to a spoofing agent.
(hit the wrong button, meaning hitting the button that will allow Google to
manage everything it wants on your accounts, and on your phone)

So I finally found a way to turn them off altogether:
At the bottom of that google's help page, they tell you haw to do it.

I copy the instructions here so I too can find them if again in dire need of
them:

<quote>
Note: It takes about a week for alerts to get turned off. This is because
Gmail wants to confirm it's you that's turning them off, and not someone else
who might have access to your account.

On your computer, open Gmail.
In the bottom right, click Details.
At the bottom of the page next to "Alert preference," click Change.
Select Never show an alert for unusual activity.
</ quote>

Best,
Chris

Frank Mehnert

unread,
Oct 26, 2018, 4:00:03 AM10/26/18
to
> [...]

Update: I retested the 'gmail' authentication method for imap.gmail.com
again and I don't see any crashes anymore. So that part is indeed fixed
and I closed

https://bugs.kde.org/show_bug.cgi?id=399389

Now the problem remains that I still cannot sent E-mails using the XOAUTH2
authentication so I'm still using PLAIN for that. If I try to use XOAUTH2
then sending fails with "server closed connection" or something like that.

Is anybody successfully using the XOAUTH2 authentication method for
smtp.gmail.com?

Thanks,

Frank

Frank Mehnert

unread,
May 7, 2019, 3:30:03 PM5/7/19
to
Hi all,

On Freitag, 26. Oktober 2018 09:53:52 CEST Frank Mehnert wrote:
> [...]
>
> Now the problem remains that I still cannot sent E-mails using the XOAUTH2
> authentication so I'm still using PLAIN for that. If I try to use XOAUTH2
> then sending fails with "server closed connection" or something like that.
>
> Is anybody successfully using the XOAUTH2 authentication method for
> smtp.gmail.com?

I would like to ask again if someone is successfully using gmail with XOAUTH2
for sending e-mails. I cannot imagine that nobody is using kmail/Akonadi with
gmail.

Thanks,

Frank

Facundo Aguilera

unread,
May 7, 2019, 4:20:02 PM5/7/19
to
El 7/5/19 a las 16:24, Frank Mehnert escribió:
> Hi all,
>
> I would like to ask again if someone is successfully using gmail with XOAUTH2
> for sending e-mails. I cannot imagine that nobody is using kmail/Akonadi with
> gmail.
>
> Thanks,
>
> Frank
>
>


Hi,

I had problems with XOAUTH2. Try to delete all IMAP and Google data from
kwalletmanager in order to restart the authorization process.

--
Facu

Sarunas Burdulis

unread,
May 7, 2019, 4:30:02 PM5/7/19
to
On 5/7/19 3:24 PM, Frank Mehnert wrote:
> [...]
>> Now the problem remains that I still cannot sent E-mails using the
>> XOAUTH2 authentication so I'm still using PLAIN for that. If I try
>> to use XOAUTH2 then sending fails with "server closed connection"
>> or something like that.
>>
>> Is anybody successfully using the XOAUTH2 authentication method
>> for smtp.gmail.com?
>
> I would like to ask again if someone is successfully using gmail with
> XOAUTH2 for sending e-mails. I cannot imagine that nobody is using
> kmail/Akonadi with gmail.

Yes, Kmail (5.10.3) and Thunderbird (60.6.1) send gmail here with
authenticated smtp.gmail.com (STARTTLS/587, XOAUTH2). Kubuntu 19.04 though.

--
Sarunas Burdulis
Systems Administrator, Dartmouth Mathematics
math.dartmouth.edu/~sarunas

Frank Mehnert

unread,
May 8, 2019, 2:50:02 AM5/8/19
to
Hi Sarunas,

On Dienstag, 7. Mai 2019 21:47:28 CEST Sarunas Burdulis wrote:
> On 5/7/19 3:24 PM, Frank Mehnert wrote:
> > [...]
> >
> >> Now the problem remains that I still cannot sent E-mails using the
> >> XOAUTH2 authentication so I'm still using PLAIN for that. If I try
> >> to use XOAUTH2 then sending fails with "server closed connection"
> >> or something like that.
> >>
> >> Is anybody successfully using the XOAUTH2 authentication method
> >> for smtp.gmail.com?
> >
> > I would like to ask again if someone is successfully using gmail with
> > XOAUTH2 for sending e-mails. I cannot imagine that nobody is using
> > kmail/Akonadi with gmail.
>
> Yes, Kmail (5.10.3) and Thunderbird (60.6.1) send gmail here with
> authenticated smtp.gmail.com (STARTTLS/587, XOAUTH2). Kubuntu 19.04 though.

That's an promising information. Given that Kmail with XOAUTH2 works for
you on Kubuntu 19.04 I will check if there are any differences in the
XOAUTH2 plugin between Debian and Kubuntu 19.04.

Thanks!

Frank

Frank Mehnert

unread,
May 8, 2019, 7:00:02 AM5/8/19
to
John,

On Mittwoch, 8. Mai 2019 12:32:09 CEST John Scott wrote:
> XOAUTH2 also works for me on Debian Buster.
>
> [...]

just to be sure: You are talking about sending e-mails over SMTP, correct?

Thanks,

Frank

Lisandro Damián Nicanor Pérez Meyer

unread,
May 8, 2019, 1:10:02 PM5/8/19
to
Or simply log in and don't fill in kallwet's passphrase. It will time out and
re ask you for every password. Just update the GMail one via the web page.

This mail sent from KMail/testing using GMail

--
perezmeyer: Gus no tiene inet :-(
PabloOdorico: oh
perezmeyer: te mando una copia de lo que hagamos esta noche
PabloOdorico: de ultima mandame un loro del parque con una flash en la pata ;)

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
signature.asc

Helge Reimer

unread,
May 8, 2019, 1:30:02 PM5/8/19
to
Am Dienstag, 7. Mai 2019, 21:24:01 CEST schrieb Frank Mehnert:

> I would like to ask again if someone is successfully using gmail with
> XOAUTH2 for sending e-mails. I cannot imagine that nobody is using
> kmail/Akonadi with gmail.

Hello Frank,

you have to go to 'https://myaccount.google.com/security' and grant access for
your account to 'Akonadi Resources for Google Services' as a Third-Party-App.
'kaccounts-providers' is installed?


--
Gruß
Helge

Frank Mehnert

unread,
May 8, 2019, 3:40:03 PM5/8/19
to
On Mittwoch, 8. Mai 2019 19:04:04 CEST Lisandro Damián Nicanor Pérez Meyer
wrote:
> El martes, 7 de mayo de 2019 17:18:31 -03 Facundo Aguilera escribió:
> > El 7/5/19 a las 16:24, Frank Mehnert escribió:
> > > Hi all,
> > >
> > > I would like to ask again if someone is successfully using gmail with
> > > XOAUTH2 for sending e-mails. I cannot imagine that nobody is using
> > > kmail/Akonadi with gmail.
> > >
> > > Thanks,
> > >
> > > Frank
> >
> > Hi,
> >
> > I had problems with XOAUTH2. Try to delete all IMAP and Google data from
> > kwalletmanager in order to restart the authorization process.
>
> Or simply log in and don't fill in kallwet's passphrase. It will time out
> and re ask you for every password. Just update the GMail one via the web
> page.
>
> This mail sent from KMail/testing using GMail

Hmm, tried that but no password dialog appears. Is that my problem?

Thanks,

Frank

Frank Mehnert

unread,
May 8, 2019, 3:40:03 PM5/8/19
to
Hi,
I have the access granted:

"Akonadi Resources for Google Services" has access to Gmail

kaccounts-providers is already installed.

I removed the password from the Google SMTP account and tried to send an
e-mail using XOAUTH2. With SSL/TLS sending fails quite quickly with "server
closed connection". With STARTTLS it takes some time before it times out.
No dialog or web browser appears asking for any password.

As soon as I switch back to PLAIN then KDE asks for the password and after
providing it I was able to send the e-mail.

I wonder if the missing authentication dialog for XOAUTH2 is the problem and
how I can resolve it or how I can debug it.

Thanks,

Frank
0 new messages