Can't use email Oauth on Roundcube


I tried to connect to RoundCube using Google Oauth, but each time I have this error:
AUTHENTICATE XOAUTH2: A0002 NO [ALERT] Authentication failed.

I suppose that’s because It didn’t find an IMAP matching account.
Do I need to enable OAuth connection on IMAP?

Thanks :slight_smile:

Ok I found what was going wrong.
I was still specifying my IMAP port in the config file of Roundcube, so I switched to:

$config['default_host'] = 'ssl://';
$config['oauth_storage_host'] = 'ssl://';

And now it works :).