DEV Community

Paul Walker
Paul Walker

Posted on • Originally published at solarwinter.net on

3 2

mbsync, SASL and Gmail

Slightly more esoteric than usual; I'm posting this for my benefit as much as anyone else's!

I was just trying to set up mbsync to work with Gmail. I'd got most of the config copied from another provider, but kept getting an error about an invalid parameter:

Error performing SASL authentication step: SASL(-7): invalid parameter supplied: Parameter Error in /System/Volumes/Data/SWE/macOS/BuildRoots/533514bb11/Library/Caches/com.apple.xbs/Sources/passwordserver_saslplugins/passwordserver_saslplugins-194/plain_clienttoken.c near line 195
Enter fullscreen mode Exit fullscreen mode

I eventually figured out (from reading Jakub Kadlčík's clear post) that you need to tell mbsync which authentication method it should use - for some reason it doesn't correctly autodetect. I added in the AuthMechs line:

AuthMechs LOGIN
Enter fullscreen mode Exit fullscreen mode

Now it's able to log in fine.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up