Page 1 of 1

How to receive mail from POP3S server ?

PostPosted:Thu Mar 24, 2011 7:09 pm
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.

Re: How to receive mail from POP3S server ?

PostPosted:Fri Mar 25, 2011 1:21 pm
by jllort
mail-service.xml is for configuring OpenKM to sending mails not for importing purpose, take a look here for it http://wiki.openkm.com/index.php/Administring_users ( at bottom )

Re: How to receive mail from POP3S server ?

PostPosted:Mon Mar 28, 2011 3:36 pm
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.

Re: How to receive mail from POP3S server ?

PostPosted:Tue Mar 29, 2011 2:54 pm
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.)

Re: How to receive mail from POP3S server ?

PostPosted:Tue Mar 29, 2011 5:56 pm
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.

Re: How to receive mail from POP3S server ?

PostPosted:Fri Apr 01, 2011 10:22 pm
by jllort
I've added in our roadmap at http://issues.openkm.com/view.php?id=1595