我正在尝试使用mbsync将我的邮件从 gmail 同步到我的本地邮件服务器。但我不断收到错误Error: SASL(-4): no mechanism available: No worthy mechs found
这是我的.mbsyncrc
文件:
#IMAP server you wish to copy mails from.
IMAPAccount original
Host imap.gmail.com
User username@gmail.com
AuthMechs XOAUTH2
Pass access_token_recieved_from_google
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
# The IMAP server you wish to copy mails to.
IMAPAccount target
Host local.mail.server.host
User local_user
Pass somepass
AuthMechs LOGIN
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
# Link IMAP server to remote used below. Note Account is set to 'original' now -- we'll …
Run Code Online (Sandbox Code Playgroud)