On Thu Dec 19, 2024 at 10:35, Tassilo Horn <t...@gnu.org> wrote: > "Bence Ferdinandy" <be...@ferdinandy.com> writes: > > Hi Bence, > >> My previous machine was running Ubuntu now I moved to CachyOS (arch >> btw). I supposedly didn't change anything in my configs and I can >> actually send messages with msmtp for my oauth accounts (gmail and >> outlook), but mbsync if failing for both. >> >> For example with `mbsync -D`: >> >> Connecting to imap.gmail.com (173.194.76.109:993)... >> Connection is now encrypted >> F: * OK Gimap ready for requests from 89.223.195.239 o37mb130304551wms >> F: >>> 1 CAPABILITY >> F: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN >> X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN >> AUTH=OAUTHBEARER >> F: 1 OK Thats all she wrote! o37mb130304551wms >> Logging in... >> Authenticating with SASL mechanism PLAIN... >> F: >>> 2 AUTHENTICATE PLAIN <authdata> >> F: 2 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure) >> IMAP command 'AUTHENTICATE PLAIN <authdata>' returned an error: >> [AUTHENTICATIONFAILED] Invalid credentials (Failure) > > Hm, I use Arch with the extra/isync package which is currently version > 1.5.0-2 and it works for me (on the AUR there's only an isync-git > package). That's my debug log for my gmail account: > > --8<---------------cut here---------------start------------->8--- > Connecting to imap.gmail.com ([2a00:1450:400c:c00::6c]:993)... > Connection is now encrypted > F: * OK Gimap ready for requests from 2003:df:1703:d00:5e51:4fff:fef3:ece7 > b9mb127754308wmb > F: >>> 1 CAPABILITY > F: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN > X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN > AUTH=OAUTHBEARER > F: 1 OK Thats all she wrote! b9mb127754308wmb > Logging in... > Authenticating with SASL mechanism PLAIN... > F: >>> 2 AUTHENTICATE PLAIN <authdata> > F: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN > X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT > LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584 > F: 2 OK tsd...@gmail.com authenticated (Success) > F: >>> 3 COMPRESS DEFLATE > F: 3 OK Success > F: >>> 4 ENABLE UTF8=ACCEPT > F: * ENABLED UTF8=ACCEPT > F: 4 OK Success > F: >>> 5 NAMESPACE > F: * NAMESPACE (("" "/")) NIL NIL > F: 5 OK Success > --8<---------------cut here---------------end--------------->8--- > > However, I don't use OAuth2 for authentication but an app password. It > seems the plugin you've built yourself on Ubuntu is available on the > AUR: > > --8<---------------cut here---------------start------------->8--- > ❯ yay -s xoauth2 > > 3 aur/sasl-xoauth2-git r203.47ff232-2 (+0 0.00) > SASL plugin that enables client-side use of OAuth 2.0 > 2 aur/oauth2ms-git r10.a1ef0cabfdea-1 (+0 0.00) (Orphaned) > XOAUTH2 compatible O365 token fetcher > 1 aur/cyrus-sasl-xoauth2-git r24.36aabca54fd6-1 (+5 0.13) > XOAUTH2 mechanism plugin for cyrus-sasl > --8<---------------cut here---------------end--------------->8--- > > Maybe try installing that.
Thanks everybody for the pointers, one step closer now :) Logging in... Authenticating with SASL mechanism XOAUTH2... Error performing SASL authentication step: SASL(-1): generic failure: Unable to find a callback: 32775 ❯ paru -Q | grep sasl cyrus-sasl 2.1.28-4.1 cyrus-sasl-xoauth2-git r24.36aabca54fd6-1 gsasl 2.2.1-1.1 libsasl 2.1.28-5.1 sasl-xoauth2-git r206.bb5c890-1 Tried building isync also, but that has the same output. I also restarted, just to make sure. Nevermind, after uninstalling `sasl-xoauth2-git` it works (thanks Marci!). So tldr: these two packages are needed on arch: cyrus-sasl cyrus-sasl-xoauth2-git Best, Bence _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel