首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >mbsync身份验证失败

mbsync身份验证失败
EN

Stack Overflow用户
提问于 2018-01-05 01:37:06
回答 1查看 4.9K关注 0票数 3

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

代码语言:javascript
复制
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登录或普通登录,但mbsync无法识别该命令。这是我的.mbsyncrc文件

代码语言:javascript
复制
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,这是调试返回的内容:

代码语言:javascript
复制
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文件现在包含以下选项

代码语言:javascript
复制
SSLType IMAPS
SSLVersions TLSv1.2
AuthMechs PLAIN
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-03-05 19:00:50

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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48100666

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档