login - mbsync 认证失败

标签 login email mbsync

我能够配置 mbsync 和 mu4e 以使用我的 gmail 帐户(到目前为止一切正常)。我现在正在使用 mu4e-context 来控制多个帐户。
当我收到此错误时,我无法从我的 openmailbox 帐户检索电子邮件

Reading configuration file .mbsyncrc
Channel ombx
Opening master ombx-remote...
Resolving imap.ombx.io... ok
Connecting to imap.ombx.io (*.*.10*.16*:*9*)... 
Opening slave ombx-local...
Connection is now encrypted
Logging in...
IMAP command 'LOGIN <user> <pass>' returned an error: NO [AUTHENTICATIONFAILED] Authentication failed.

在其他帖子中,我看到有人建议使用 AuthMechs Login 或 PLAIN,但 mbsync 无法识别该命令。这是我的 .mbsyncrc 文件
IMAPAccount openmailbox
Host imap.ombx.io
User user@openmailbox.org
UseIMAPS yes
# AuthMechs LOGIN
RequireSSl yes
PassCmd "echo ${PASSWORD:-$(gpg2 --no-tty -qd ~/.authinfo.gpg | sed -n 's,^machine imap.ombx.io .*password \\([^ ]*\\).*,\\1,p')}"

IMAPStore ombx-remote
Account openmailbox

MaildirStore ombx-local
Path ~/Mail/user@openmailbox.org/
Inbox ~/Mail/user@openmailbox.org/Inbox/

Channel ombx
Master :ombx-remote:
Slave :ombx-local:
# Exclude everything under the internal [Gmail] folder, except the interesting folders
Patterns *
Create Slave
Expunge Both
Sync All
SyncState *

我使用的是 Linux Mint,我的 isync 是 1.1.2 版
在此先感谢您的帮助

编辑:我已经运行了一个调试选项,并且我已经将 isync 升级到了 1.2.1 版
这是调试返回的内容:
Reading configuration file .mbsyncrc
Channel ombx
Opening master store ombx-remote...
Resolving imap.ombx.io... ok
Connecting to imap.ombx.io (*.*.10*.16*:*9*)... 
Opening slave store ombx-local...
pattern '*' (effective '*'): Path, no INBOX
got mailbox list from slave:
Connection is now encrypted
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Openmailbox is ready to
  handle your requests.
Logging in...
Authenticating with SASL mechanism PLAIN...
>>> 1 AUTHENTICATE PLAIN <authdata>
1 NO [AUTHENTICATIONFAILED] Authentication failed.
IMAP command 'AUTHENTICATE PLAIN <authdata>' returned an error: NO [AUTHENTICATIONFAILED] Authentication failed.

我的 .msyncrc 文件现在包含这些选项
SSLType IMAPS
SSLVersions TLSv1.2
AuthMechs PLAIN

最佳答案

最后,解决方案是使用正确的密码。由于 openmailbox 为第三方电子邮件客户端使用应用程序密码,因此我使用了错误的(原始)密码而不是应用程序密码。

关于login - mbsync 认证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48100666/

相关文章:

php - 在ajax()方法jQuery中未收到错误消息

html - Evolution 电子邮件客户端中的 CSS 支持

email - 错误 : channel gmail-sent: slave sent cannot be opened

ios - Twitter是否为第三方ios应用提供社交登录选项,迅速

login - 社交登录背后的逻辑

.net - 检测asp.net将用户重定向到登录页面

ios - 复制 iOS 邮件应用程序的撰写功能的样式

python - 通过 python 访问雷鸟电子邮件

emacs - mbsync 错误 : UID is beyond highest assigned UID