我可以配置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登录或普通登录,但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发布于 2018-03-05 19:00:50
最后,解决方案是使用正确的密码。由于openmailbox使用第三方电子邮件客户端的应用程序密码,因此我使用了错误的(原始)密码,而不是应用程序密码。
https://stackoverflow.com/questions/48100666
复制相似问题