Roundcube Community Forum

Release Support => Pending Issues => Topic started by: lonestar on October 17, 2022, 06:51:26 AM

Title: XOAUTH2 and smtp
Post by: lonestar on October 17, 2022, 06:51:26 AM
Hello,

I have successfully configured Roundcube for SSO AOUTH2 authentication together with dovecot.

When I try to send a message from the webmail, It expects that the smtp server supports OAUTH2/XOAUTH2 and it fails because instead my outgoing smtp server only supports LOGIN/PLAIN auth.

is this by design? Is there a way to configure so that smtp_host would not be required oauth support even if main login happened with oauth?

(of course in such case the authentication credentials would be provided in config.inc.php)

Thanks
Title: Re: XOAUTH2 and smtp
Post by: alec on October 18, 2022, 01:39:54 AM
By design. You would have to comment out this line https://github.com/roundcube/roundcubemail/blob/master/program/include/rcmail_oauth.php#L95
Title: Re: XOAUTH2 and smtp
Post by: lonestar on October 18, 2022, 03:44:00 AM
By design. You would have to comment out this line https://github.com/roundcube/roundcubemail/blob/master/program/include/rcmail_oauth.php#L95

It does work. Thank you very much.