• How to receive mail from POP3S server ?

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #9810  by mmazerolle.pxk
 
Hi,

I am trying to prepare a demo for my team and i am trying to import all my emails from Microsoft Live Hotmail using there pop3 server.

I went into the interface "Edit mail account", for my user, I've setup my email account information like so :
Code: Select all
Mail protocol : pop3
Mail host : pop3.live.com
Mail user : .....@live.ca
Mail password : xxxxxxxxx
Mail folder : /okm:mail/marc/
Mail mark seen 	: no
Mail mark deleted : no	
Active : yes
And hit the "check" button.... Connect failed.

I've searched the forum and found a few message refering to connection to GMail but nothing about Hotmail.

I tried all sorts of things using the information about GMail in the server/default/deploy/mail-service.xml file. Nothing works. Somehow i suspect the mail import process for users does not get configured thru this xml file. Soooooo.... i started to take a look at the OpenKM java code.

Found that the user interface was using the javax.mail library. I then proceeded to install the "msgshow" test program (found it on the web by downloading the library at http://www.oracle.com/technetwork/java/ ... 38643.html) using the javax.mail classes with the same parameters i was using in the interface and got the same result. At least, it was consistent.

Searched the Web and found out that hotmail was using secured connection to pop3 server (port 995). So i modified my parameters to the test program and changed "pop3" to "pop3s" as the protocol. BOOM it worked. This program could be usefull for others that run into the same kind of problem to diagnose it.

Looking again at the code i discovered that adding "pop3s" to the list of values in the application would be a easy fix. But to do that I would need to install the development environment (Eclipse, code, libraries, etc...) which would take a while.

So I am trying to find a workaround.

- Is there an easy work around to have "pop3" act as a "pop3s" within some configuration file ?
- Is there a fix that adds "pop3s" to the pulldown list in the interface ?

Your guidance would be appreciated.
 #9884  by mmazerolle.pxk
 
Thank you for your quick response.

So OK, as I figured, mail-service.xml isn't part of this import process.

I've progressed since my last post and created myself a GMail account instead of an HotMail account. Since GMail provides an IMAPS server to users I had it working properly. So i know my configuration as per your reference is working.

The problem remains, the application would need a POP3S option in the list of "Mail protocol" just as there is an "IMAP" and "IMAPS" protocols. The javax.mail library supports this "pop3s" protocol but the interface doesn't allow the administrator to choose it.

Microsoft Live Hotmail doesn't provide an IMAP server, just POP3S.

Is there a way to add this fourth "Mail protocol" into the pulldown menu without modifying the code ?

Thanks in advance.
 #9919  by jllort
 
Have you seen the page I've attached in other post ? because in the screenshot is clear the pop3 option. But this kind of configuration is only available on administration view ( user view only can configure imap, that's some enhancement that's on roadmap.)
 #9934  by mmazerolle.pxk
 
I've seen the screenshot.

The possible 3 choices are :

POP3
IMAP
IMAPS

My problem is that I would need :

POP3
POP3S
IMAP
IMAPS

Because "POP3" uses port 110, "POP3S" uses port 995 over SSL.

Some providers (like Microsft Live Hotmail) only support port 995.

The Java library javax.mail supports "pop3s" but the interface doesnt allow me to select it.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.