Forums de discussion

You have failed to connect to the IMAP server but successfully connected to

uwe lynen, modifié il y a 15 années.

You have failed to connect to the IMAP server but successfully connected to

New Member Publications: 9 Date d'inscription: 04/09/08 Publications récentes
I have hmailserver installed on my Windows server and use it as my mail server. It is supposed to handle IMAP on port 143.

Trying to set up a user I get the following message from Liferay:

You have failed to connect to the IMAP server but successfully connected to the SMTP server.

help Uwe
thumbnail
Wolfram Bartussek, modifié il y a 14 années.

RE: You have failed to connect to the IMAP server but successfully connecte

New Member Publications: 3 Date d'inscription: 25/07/09 Publications récentes
I have exactly the same problem, hMailServer installed on the same machine as liferay.

If I connect via telnet by

>telnet <mymailserver> 143

the server responds as expected.

I am using liferay 5.2.1 on Tomcat 6.0

Any idea that may help?

Cheers, Wolfram
thumbnail
Lisa Simpson, modifié il y a 14 années.

RE: You have failed to connect to the IMAP server but successfully connecte

Liferay Legend Publications: 2034 Date d'inscription: 05/03/09 Publications récentes
Do you have to put in a user name and passowrd for IMAP?
thumbnail
Wolfram Bartussek, modifié il y a 14 années.

RE: You have failed to connect to the IMAP server but successfully connecte

New Member Publications: 3 Date d'inscription: 25/07/09 Publications récentes
Hi Lisa,

the problem was due to the fact that I failed to establish a group for IMAP in hMailServer and to assign at least the default admin account to the group.

My entry in portal-ext.properties for IMAP looks like this:

mail.session.mail.imap.host="<mydomain>"
mail.session.mail.imap.port="143"
mail.session.mail.imap.password="<mypw>"
mail.session.mail.imap.user="admin@<mydomain>"
mail.session.mail.store.protocol="imap"

After this the reported error message vanished. Unfortunately the problem is not completely solved yet. After liferay is up and running I get the following message every 5 minutes:

13:14:10,312 ERROR [MailingListMessageListener:82] javax.mail.MessagingException;
nested exception is:
java.io.IOException
javax.mail.MessagingException;
nested exception is:
java.io.IOException
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:479)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at com.liferay.portlet.messageboards.messaging.MailingListMessageListener.getFolder(MailingListMessageListener.java:125)
at com.liferay.portlet.messageboards.messaging.MailingListMessageListener.receive(MailingListMessageListener.java:75)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:70)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:59)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException
at com.sun.mail.iap.ResponseInputStream.read0(ResponseInputStream.java:99)
at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:67)
at com.sun.mail.iap.Response.<init>(Response.java:83)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:91)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
... 10 more

What does this try to tell me? How can I solve this issue?

Regards, Wolfram
thumbnail
Wolfram Bartussek, modifié il y a 14 années.

RE: You have failed to connect to the IMAP server but successfully connecte

New Member Publications: 3 Date d'inscription: 25/07/09 Publications récentes
The problem seems to be that it is hard to find out which folder and path is assumed to be the IMAP inbox folder. Even after having googled and 'binged' the internet and these forums I did not succeed to find out where to set the IMAP inbox folder with its path. In the case of hMailServer the path is (after a standard installation) c:\program files\hmailserver\public with folder 'public' being a shared folder.

So my question to the experts here is: how can I tell liferay to take this folder as its INBOX of the IMAP server specified in portal-ext.properties as shown in the posting above?

Any help appreciated!

Regards, Wolfram
thumbnail
Lisa Simpson, modifié il y a 14 années.

RE: You have failed to connect to the IMAP server but successfully connecte

Liferay Legend Publications: 2034 Date d'inscription: 05/03/09 Publications récentes
Typically with IMAP, the IMAP server will direct the client to the Inbox upon authentication. The physical path to the folder is largely irrelevant. I'd suggest revisiting your IMAP configuration for that particular user. it's the same reason you don't have to put a file path in your mail client (e.g Thunderbird, Outlook, etc.)