Can not restore Gmail on mac book pro running OS El Capitain
I can not link my gmail account to Mac Mail. I get Error code 400 Authorisation Error. It says my Mac Mail does not comply with Googles OAuth 2.0 policy for keeping apps secure. I am using Macbook Pro mid 2009. OS X El Capitain Version 10.11.6. I have tried various work arounds like app password and browser access but nothing seems to work. I can access my gmail direct to Google via my browser and also on my iPhone X. Its just the Mac Mail, which I inadvertently deleted the Gmail account and can now not reinstall it.
MacBook Pro 13″, OS X 10.11