如何使用 Gmail 验证 POP3?
How to authenticate POP3 with Gmail?
我正在尝试了解如何将我的凭据发送到 Gmail。 RFC5034举个例子
S: IMPLEMENTATION BlurdyBlurp POP3 server
S: .
C: AUTH PLAIN dGVzdAB0ZXN0AHRlc3Q=
S: +OK Maildrop locked and ready
base64 编码的字符串解码为 test[=29=]test[=29=]test 其中 \0 是空字符。
但是,如果我发送像这样的 base64 编码字符串 username[=30=]user@gmail.com[=31=]password,那么我会收到这样的错误消息
-ERR [SYS/TEMP] Temporary system problem. Please try again later. df2mb862702032iec
所以,这些是我尝试过的组合及其结果:
user[=12=]password => -ERR invalid SASL argument 42mb45977297otf
user@gmail.com[=12=]password => -ERR invalid SASL argument uz3mb206121874obc
[=12=]user@gmail.com[=12=]password => -ERR [AUTH] Username and password not accepted.
[=12=]user[=12=]password => -ERR [AUTH] Username and password not accepted.
name[=12=]user@gmail.com[=12=]password => -ERR [SYS/TEMP] Temporary system problem. Please try again later. df2mb862702032iec
[=12=]name[=12=]user@gmail.com[=12=]password => -ERR invalid SASL argument h184mb244881255oib
所以,它看起来应该是 \0user@gmail。com[=31=]password 但是如果我像这样对我的电子邮件和密码进行 base64 编码:
echo -ne '[=13=]user@gmail.com[=13=]password' | base64
我的用户名和密码仍然被拒绝。
那么,谁能确认一下base64编码的正确方法?哦,我在设置中激活了 Pop 邮件。
答案是 Gmail 存在错误。即使在我的帐户(15Gb 的电子邮件)上启用了 pop3,它也无法识别我的凭据。
我有另一个电子邮件帐户,在 gmail 上有我自己的域,邮件很少,并且使用
的 base64 版本
[=10=]user@domain.com[=10=]password
在 \0 代表空字符的情况下工作得很好。
您需要在 GMail 设置中启用 "less secure apps":
我正在尝试了解如何将我的凭据发送到 Gmail。 RFC5034举个例子
S: IMPLEMENTATION BlurdyBlurp POP3 server
S: .
C: AUTH PLAIN dGVzdAB0ZXN0AHRlc3Q=
S: +OK Maildrop locked and ready
base64 编码的字符串解码为 test[=29=]test[=29=]test 其中 \0 是空字符。
但是,如果我发送像这样的 base64 编码字符串 username[=30=]user@gmail.com[=31=]password,那么我会收到这样的错误消息
-ERR [SYS/TEMP] Temporary system problem. Please try again later. df2mb862702032iec
所以,这些是我尝试过的组合及其结果:
user[=12=]password => -ERR invalid SASL argument 42mb45977297otf
user@gmail.com[=12=]password => -ERR invalid SASL argument uz3mb206121874obc
[=12=]user@gmail.com[=12=]password => -ERR [AUTH] Username and password not accepted.
[=12=]user[=12=]password => -ERR [AUTH] Username and password not accepted.
name[=12=]user@gmail.com[=12=]password => -ERR [SYS/TEMP] Temporary system problem. Please try again later. df2mb862702032iec
[=12=]name[=12=]user@gmail.com[=12=]password => -ERR invalid SASL argument h184mb244881255oib
所以,它看起来应该是 \0user@gmail。com[=31=]password 但是如果我像这样对我的电子邮件和密码进行 base64 编码:
echo -ne '[=13=]user@gmail.com[=13=]password' | base64
我的用户名和密码仍然被拒绝。
那么,谁能确认一下base64编码的正确方法?哦,我在设置中激活了 Pop 邮件。
答案是 Gmail 存在错误。即使在我的帐户(15Gb 的电子邮件)上启用了 pop3,它也无法识别我的凭据。
我有另一个电子邮件帐户,在 gmail 上有我自己的域,邮件很少,并且使用
的 base64 版本[=10=]user@domain.com[=10=]password
在 \0 代表空字符的情况下工作得很好。
您需要在 GMail 设置中启用 "less secure apps":