Gmail - turning off "less secure apps"
Gmail - turning off "less secure apps"
Author
Discussion

Dr Mike Oxgreen

Original Poster:

4,473 posts

196 months

Thursday 30th August 2018
quotequote all
I periodically get emails from Gmail telling me I should disable access for "less secure apps".

The trouble is, if I do this then both my iPhone and iPad lose the ability to access email. If only I knew precisely what Google means by the phrase "less secure" then I might be able to figure out how my iOS devices are misconfigured.

Clearly it would be preferable to tighten up my Gmail security, but at the moment this is preventing me.

Does anyone know what setting I need to change to make this work? I would rather not start again from scratch; I'm betting that I'm just using the wrong type of authentication.

The current settings are:

Incoming mail server
Host name: imap.gmail.com
Username: xxxxxxxxx@gmail.com
Password: xxxxxxxxxxxxxxxx

And under Advanced:
Incoming settings
Use SSL: Yes
Authentication: Password
IMAP path prefix: /
Server port: 993

Other authentication options are MD5 challenge-response, HTTP MD5 Digest, or NTLM.

Of course, I would really like to enable 2FA, but I strongly suspect that won't work unless I sort out this problem first.

If someone who uses Gmail on an iPhone or iPad could let me know how their configuration differs from mine I'd be very grateful!

LordGrover

34,191 posts

243 months

Thursday 30th August 2018
quotequote all
I don't use the native iOS mail app for gmail, I use the gmail app.
I keep the native mail app for iCloud email, and also have the Exchange app for work.
Keeps everything neat and segregated.

Dr Mike Oxgreen

Original Poster:

4,473 posts

196 months

Thursday 30th August 2018
quotequote all
LordGrover said:
I don't use the native iOS mail app for gmail, I use the gmail app.
Can you tell the Gmail app to use a different email address for the "from" field in your emails when sending, or preferably tell it to use a different SMTP server?

Although I use Gmail as my email provider, I want to use my personal domain name as my email address, which then forwards to Gmail. I don't want people to start using my Gmail address in case I should want to switch to something different in the future. And if you send an email with "xxxxxxxxx@gmail.com" as the "from" address, people are bound to start using that to send email to you.

The built-in email settings in iOS allow you to do that by simply changing the "email address" field, and using an alternative SMTP server.

Hence I don't send email using Gmail. I use the SMTP server provided by the web hosting company. Would the Gmail app allow me to do that?

But to be honest I'd rather stick with the built-in email facilities in iOS. What I didn't mention is that this same problem affects Mrs Oxgreen's iPhone as well - and persuading her to use a different email app might prove tricky.

LordGrover

34,191 posts

243 months

Thursday 30th August 2018
quotequote all
I don't think you can do that. Sorry, not much help then.

Mammasaid

5,665 posts

128 months

Thursday 30th August 2018
quotequote all
You certainly can using the Gmail account on Android, I currently monitor 6 email accounts that way. 1 Gmail, 1 Hotmail, 1 from a personal domain, and 3 from a business domain.

It certainly simplifies things in my eyes.

jeremyc

28,412 posts

315 months

Thursday 30th August 2018
quotequote all
I have the same issue with the native Samsung mail app on my Android 'phone. In my case I use the app because I want a combined inbox for multiple email accounts from different providers.

All I have been able to discover is that there needs to be a change to your Gmail account security settings to allow "less secure apps": try logging in to your Google account/Gmail via a browser and checking the security settings (In my case it's a corporate Gmail account that I don't have admin rights to so can't change the settings).

Dr Mike Oxgreen

Original Poster:

4,473 posts

196 months

Thursday 30th August 2018
quotequote all
To be clear: I have had my Gmail account configured to allow "less secure apps" for as long as I can remember, and it has always worked on all devices.

But I would like to improve email security by figuring out which setting needs to change on my iOS devices so that they still work when I disallow "less secure apps", which is what I would like to do. On my devices, disallowing "less secure apps" in my Gmail settings causes my iOS devices to fail to retrieve email.

Would anyone who uses a Gmail account via the built-in iOS email support on an iPhone or IPad mind having a look at their settings and tell me what's different from what I posted? Thanks!

Or is it the case that you can't use the built-in iOS email support with Gmail unless you allow "less secure apps"?

geeks

11,905 posts

170 months

Thursday 30th August 2018
quotequote all
You most certainly can use iOS stuff with less secure turned off, I do!

See here: https://support.google.com/accounts/answer/6010255...

and here: https://support.google.com/accounts/answer/6009563

LordGrover

34,191 posts

243 months

Thursday 30th August 2018
quotequote all
A quick google suggests not, e.g.: click.

ecs

1,453 posts

201 months

Thursday 30th August 2018
quotequote all
You have to use an app which uses Google's own authentication (i.e. OAuth), they class anything else to be 'less secure'. This throws out legacy versions of the iOS Mail app which used any form of username and password stored on the device to sign in (i.e. SMTP or whatever).

You'll need to remove your existing Gmail account and set it up again; you'll notice that instead of having to enter your email address and password, a web browser sign-in page will open asking you to sign in (using OAuth). You'll then be authenticated in a way which isn't considered 'less secure' because your username and password are no longer stored on the phone.

Dr Mike Oxgreen

Original Poster:

4,473 posts

196 months

Thursday 30th August 2018
quotequote all
Interesting.

So if I delete my Gmail account on the iPhone/iPad, and set it up again as a Google account, can I still change the outgoing SMTP server to the one that comes with my domain?

Otherwise I suspect I may be back to the problem of not being able to set an email alias to use my domain name as the sender...?


Edited to add...
I’ve just noticed from one of the above links that Thunderbird cannot be made to work, it seems. This is a pain, because thats what I use on my desktop!

So maybe I just need to live with “less secure apps” allowed. Does anyone know if it’s still possible to turn on 2FA with “less secure apps” allowed?

Edited by Dr Mike Oxgreen on Thursday 30th August 22:29

ging84

9,548 posts

177 months

Thursday 30th August 2018
quotequote all
You can enable 2fa with the less secure apps enabled, I had this a few years ago, I vaguely remember having to do something to make it work, but I have a feeling the enable less secure apps setting was the thing.

The reason for apps that using imap/smtp even when using tls is considered less secure is that the client will most likely either accept any remote cert or give a very soft looking warning asking you to accept it which almost everyone does without hesitation so vulnerable to man in the middle attack.
With 2fa on and less secure apps enabled your gmail is at risk, without 2fa your entire google account is at risk, so if you use any other google service it is still well worth enabling 2fa.

Lemming Train

5,567 posts

103 months

Friday 31st August 2018
quotequote all
Dr Mike Oxgreen said:
Edited to add...
I’ve just noticed from one of the above links that Thunderbird cannot be made to work, it seems. This is a pain, because thats what I use on my desktop!

So maybe I just need to live with “less secure apps” allowed. Does anyone know if it’s still possible to turn on 2FA with “less secure apps” allowed?

Edited by Dr Mike Oxgreen on Thursday 30th August 22:29
Yes, it's the same issue I have with my desktop email client which is eMClient. You have to allow less secure apps in your google account otherwise it won't authenticate - the same issue you're having with Thunderbird and iOS. I did quite a bit of investigating the problem a while ago but came back empty-handed so I just leave it with less secure apps allowed and it shuts it up, but of course, no 2FA. There's a whole separate discussion about 2FA but everyone managed just fine without it for the past 20 years and so long as you're careful with your online browsing habits there's nothing to worry about by not using it.

You can configure all your non-gmail accounts (and even other gmail accounts) into your main gmail account to retrieve mail from those addresses and also configure it to send mail so it shows 'from' that person as well, but it means using the gmail web portal for it all and personally I don't like it and prefer the traditional Outlook Express-style layout and folder trees.

Dr Mike Oxgreen

Original Poster:

4,473 posts

196 months

Friday 31st August 2018
quotequote all
Thanks everyone!

I’m on a training course today so won’t be able to make any progress (or reply) on this, but will have a further play tomorrow.

Dr Mike Oxgreen

Original Poster:

4,473 posts

196 months

Saturday 1st September 2018
quotequote all
Well, this morning I have succeeded in getting my iOS devices working, with "less secure apps" disallowed.

I realised that I already had my Google account set up on both my iPhone and iPad for contacts and calendar, but that account had email switched off. I was using a separate manually configured account to access email. No idea why I'd done it this way - I probably set it up years and years ago before there was any direct support for Gmail on iOS, and I've subsequently added the Google account to give access to my calendar and contacts.

So disabling my existing email account and switching email on for the Google account was pretty straightforward.

Adding my domain's SMTP server as a secondary, and changing the "email address" setting to my domain email address, now means that the devices send email using the correct "from" address. It seems that it attempts to use gmail's SMTP server (you can't deselect that as the primary) and fails, then drops down to the secondary. I can't get it to use gmail's SMTP server, which is a shame because my domain's SMTP is painfully slow. Hey-ho.

It turns out that the latest versions of Thunderbird do support OAuth2. Setting the authentication type to that and restarting Thunderbird took me through a Google authentication page that asked for my login credentials, and now Thunderbird is working properly.

The next stage is to enable 2FA, which is ultimately the goal. I'm assuming this should be easier now I'm doing things in the Google-approved way.

Many thanks for everyone's help!

Edited by Dr Mike Oxgreen on Saturday 1st September 09:21