Control: tags -1 + moreinfo

On Mon, Jul 20, 2026 at 02:45:14PM -0400, Noah Meyerhans wrote:
> > After installing version 1:2.4.1+dfsg1-6+deb13u6 on my server, 
> > authentication starts failing like so:
> > 
> > wouter@pc220518:~$ mbsync -a
> > IMAP command 'AUTHENTICATE GSSAPI YIIC+AYJKoZ[...BASE64 data 
> > censored...]/z04t1yLI4jO7FJia0=' returned an error: [AUTHENTICATIONFAILED] 
> > Authentication failed.
> 
> Interesting. When I run gsasl's autopkgtest suite, which includes a
> gssapi authentication test, against trixie's 1:2.4.1+dfsg1-6+deb13u6
> packages, it is able to authenticate successfully.
> 
> > The changelog of that version mentions:
> > 
> > * [366ef61] CVE-2026-33603: login-common: Only accept base64 in sasl
> > 
> > Which seems like it might be overly strict?
> 
> The patch was cherry-picked from upstream and is in sid/forky as well as
> the current upstream releases.  Which is not to say that it can't have
> introduced a regression, of course...
> 
> > At any rate, downgrading to 1:2.4.1+dfsg1-6+deb13u5 resolves the issue.
> 
> I'll continue investigating.  I have not tested your configuration, nor
> have I tested mbsync, so there's more to look at.

I have written an autopkgtest for dovecot to exercise GSSAPI
authentication. It tests two clients: gsasl and python (imaplib +
python3-gssapi).  Both of these can successfully authenticate against
the current 1:2.4.1+dfsg1-6+deb13u6 packages in trixie-security as well
as the packages in sid/forky.  You can see a successful execution of
this test at https://salsa.debian.org/noahm/dovecot/-/jobs/9998007

But I haven't yet gotten mbsync to successfully authenticate against any
version, including older (pre deb13u6) versions of dovecot:

# dpkg -s dovecot-gssapi | grep Vers
Version: 1:2.4.1+dfsg1-6+deb13u3

# HOME=/srv/dovecot-dep8/dep8/ mbsync -c mbsyncrc --list-stores
===== local:
INBOX
IMAP command 'AUTHENTICATE GSSAPI 
YIIC7wYJKoZIhvcSAQICAQBuggLeMIIC2qADAgEFoQMCAQ6iBwMFACAAAACjggH1YYIB8TCCAe2gAwIBBaELGwlLUkI1LlRFU1SiKTAnoAMCAQOhIDAeGwRpbWFwGxZhdXRvcGtndGVzdC1seGMtcmhheW9wo4IBrDCCAaigAwIBEqEDAgECooIBmgSCAZbGlGHcsJJgsaVR9ohZW/JYrm+12FKi9RMXWBRfHymhwLtmBm5skUFeHtAcjVoqkomCn2lphsjKqtja5LxXH5AN0VNOewY5EwuCk0uL1QHx7T5mfHe5vGDCoyYCVVxOjdFgBfaOw1P0+6GfSyA5fDxXG65SE/Tx46A0EPVFc+cTZpHoGMaA8fKuxOVlw89/pJ2OsRk2SdQpzf5Bl7zpmz/bgKtQfAYsJYUtaqLsSfnt/hGsEUcVyPkm+Bh/KSz1g7fWpsluhkBi59luR9QF99/iyIFK8iEzzhpMj9CA1ZqOVcvHhMbVoIY6k65z8ShtpS+tCuMz/OyA+hLXZB3v7nFXXk7bXaR9fqbTEEFYFuYz2w9GnyiAEpg+X7OkQsyz48Ipd4kZN2wKYBzs3haH3ZI2eWB1D96CsZ2h4AC8b+BuD9VFKCL6hM6DCXDYahyjRBXyKR7IN0hc5QvEoj3EbSrFbLx65pdCDkiTkfbcBijDl8TIkAsymJUGhkeWqZN+UO825j4VG/hUSqbYpL9re9WjgvQaW9SopIHLMIHIoAMCARKigcAEgb0fld5tNVV1sRLgyaTaTV9ADXRoxXAPOysQxNg1KTqKZjjiFPINuc61OqVW0pTEx+Ntzuh2qTTtSaLFu5gDcUDa4UGKUmKKIN8BPOLOJZ7F6Hq5C/Pws362YYRigWIZfrytPNwTXGoFf6lOt6uCbQeMz8hfeP/UN8GAGGbW+SiEpxj5UTLUC7OhP43uEPrnNCBudXPgvdI2dFVGoeWlY+D9YwSS+YNgw5oSQ6NxNcHkjtiAS5e+MrnAcw6u8Do='
 returned an error: [AUTHENTICATIONFAILED] Authentication failed.

It's entirely possible that this particular issue is user error on my
part, though, as I don't have experience with using or configuring
mbsync.  However, the fact that gsasl and python clients both work
suggests that it's not a general gssapi problem with dovecot.

The mbsync config I've used in testing follows.  It attempts to
authenticate against the same account as is used in the successful
python and gsasl tests.

Expunge None
Create Both

MaildirStore local
Path ~/Mail.mbsync/
Trash Trash

IMAPStore testimap
Host autopkgtest-lxc-rhayop
TLSType None
AuthMechs GSSAPI
User nobody

Channel testchannel
Far :testimap:
Near :local:
Expunge Both
MaxMessages 150
MaxSize 200k

If you could share more about your mbsync configuration and invocation,
maybe that will help.

noah

Reply via email to