JavaMail IMAP Connection An easy mailbox failure problem __java

Source: Internet
Author: User
Tags imap
Newly registered 163 mailboxes, which can be bound to the platform using the POP3 protocol, cannot be bound to the platform using the IMAP protocol, prompting the use of an easy mailbox master.

Analysis: The POP3 protocol does not support the mail server to identify the client, so it can be bound, but IMAP can help the mail server identify the client, and when the client is not carrying identity information, it is marked as a unsecured client, and then the secure Mailbox Master (╯‵-′) ╯︵┻━┻

Workaround:
Identify identity when connecting to server using IMAP protocol

Implementation: Map Idmap = new HashMap () idmap.put ("name", "XXX") idmap.put ("Version", "7.26")             Idmap.put ("OS", "Windows") idmap.put ("Os-version", "6.1") Idmap.put ("Vendor", "XXX") Idmap.put ("Contact", "xxx@xxx.com") imapstore Imapstore = (imapstore) store Map res = ima Pstore.id (Idmap)

Ref
https://javamail.java.net/nonav/docs/api/com/sun/mail/imap/imapstore.html#id-java.util.map-

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.