如何使用AUTHENTICATE PLAIN正确连接IMAP? [英] How to connect IMAP using AUTHENTICATE PLAIN correctly?

查看:119
本文介绍了如何使用AUTHENTICATE PLAIN正确连接IMAP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OpenSSL连接到邮件服务器.

I'm using OpenSSL to connect to mail server.

POP3正常运行,但是IMAP出现问题.基于CAPABILITY的命令服务器支持PLAIN,NTLM和GSS-API身份验证方法.

POP3 works fine but I have problems with IMAP. Based on CAPABILITY command server supports PLAIN, NTLM and GSS-API authentication methods.

我想使用PLAIN,因为它比其他人更容易. 我已经读过了,需要使用<NUL>.

I want to use PLAIN because it's easier than others. I have read it's needed to use <NUL> for it.

我已经运行了下一个变体,但没有成功:

I have run the next variations, but no success:

? login user pass
? login <nul>user<nul>pass
? <nul>login <nul>user<nul>pass

我在做什么错了?

推荐答案

?登录mymailbox@box.zone mypassword \ r \ n

? login mymailbox@box.zone mypassword\r\n

通常服务器不需要"@ box.zone"部分,您只需键入登录名即可.

often servers don't require " @box.zone " part, you can just type login

这篇关于如何使用AUTHENTICATE PLAIN正确连接IMAP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆