「EMAIL」- 163.com | 126.com

邮箱服务的地址信息

网易企业邮箱收发服务器地址详解

163.com | 个人邮箱
POP, pop.163.com, 110, 995(ssl)
IMAP, imap.163.com, 143, 993(ssl)
SMTP, smtp.163.com, 25, 465(ssl)

163.com | 企业邮箱

  • 发件服务器地址:smtp.qiye.163.com
  • 收件服务器地址:
    • POP3 收件服务器地址为 pop3.qiye.163.com
    • IMAP 收件服务器地址为 imap.qiye.163.com

126.com
POP3 服务器 pop.126.com 110
SMTP 服务器 smtp.126.com 25
IMAP 服务器 imap.126.com 143

常见问题记录

Failed to select mailbox: SELECT Unsafe Login. Please contact kefu@188.com for help

imap 连接提示 Unsafe Login,被阻止的收信行为
https://www.ietf.org/rfc/rfc2971.txt

问题描述:在添加 163 邮箱时,返回如下错误:

The reported error was “Failed to select mailbox: SELECT Unsafe Login. Please contact kefu@188.com for help”.

原因分析:参考 imap 连接提示 Unsafe Login,被阻止的收信行为 文档。因为 163 实现 RFC 2971 的 ID 命令,要求在操作过程中使用 ID 命令发送客户端信息。但是又未全部实现,因为 RFC 2971 要求 Servers MUST NOT deny access to or refuse service for a client based on information from the ID command. Clients MUST NOT refuse to response. 不能拒绝响应。说到底就是,未完全实现规范的要求。

解决方法:我们是邮件客户端,除非其支持 ID 命令,否则我们无法使用 Evolution (GNOME) 客户端。因此我们不再使用 163 邮箱,改用 Outlook 邮箱,这样就能继续使用 Evolution 邮箱客户端,以及其他有邮箱客户端;

如果是 Java 代码,能够在代码中发送 ID 命令:

Properties props = new Properties();
props.setProperty("mail.store.protocol", "imap");
props.setProperty("mail.imap.host", "imap.163.com");
props.setProperty("mail.imap.port", "143");

HashMap IAM = new HashMap();
// 带上 IMAP ID 信息,由 key 和 value 组成,例如 name,version,vendor,support-email 等;
IAM.put("name","myname");
IAM.put("version","1.0.0");
IAM.put("vendor","myclient");
IAM.put("support-email","testmail@test.com");
Session session = Session.getInstance(props);

IMAPStore store = (IMAPStore) session.getStore("imap");
// 下方替换对应帐号和授权码
store.connect("testmail@163.com", "password");

store.id(IAM);