Imap configuration problem

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
upforsin
Established Member

Imap configuration problem

EDIT. I managed to solved to issue (by passing "0.0.0.0" as host). It can be deleted

 

Hello,

We are trying to set up an IMAP subsytem. Unfortunatelly, we are getting an error.

 

2019-10-15 10:30:40,820 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [main] Starting 'imap' subsystem, ID: [imap, default]
2019-10-15 10:30:46,441 ERROR [org.alfresco.repo.imap.AlfrescoImapServer] [Thread-48] Unable to open socket bindTo:/XXX.XXX.XXX.XXX port 1497
java.net.BindException: Cannot assign requested address (Bind failed)
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at org.alfresco.repo.imap.AlfrescoImapServer$DefaultImapServer.openServerSocket(AlfrescoImapServer.java:136)
at com.icegreen.greenmail.imap.ImapServer.run(ImapServer.java:106)
2019-10-15 10:30:46,449 WARN [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [main] Startup of 'imap' subsystem, ID: [imap, default] failed
java.lang.RuntimeException: java.net.BindException: Cannot assign requested address (Bind failed)
at org.alfresco.repo.imap.AlfrescoImapServer.checkForOpeningExceptions(AlfrescoImapServer.java:303)
at org.alfresco.repo.imap.AlfrescoImapServer.startup(AlfrescoImapServer.java:263)
at org.alfresco.repo.imap.AlfrescoImapServer.onBootstrap(AlfrescoImapServer.java:223)
at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext.publishEvent(ChildApplicationContextFactory.java:569)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:824)
at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:1098)
at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:637)
at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:221)
at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:186)
at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:206)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:398)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:355)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4685)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5146)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1831)

...

Caused by: java.net.BindException: Cannot assign requested address (Bind failed)
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at org.alfresco.repo.imap.AlfrescoImapServer$DefaultImapServer.openServerSocket(AlfrescoImapServer.java:136)
at com.icegreen.greenmail.imap.ImapServer.run(ImapServer.java:106)
2019-10-15 10:30:46,472 ERROR [org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean] [main] Error auto-starting subsystem
java.lang.RuntimeException: java.net.BindException: Cannot assign requested address (Bind failed)
at org.alfresco.repo.imap.AlfrescoImapServer.checkForOpeningExceptions(AlfrescoImapServer.java:303)
at org.alfresco.repo.imap.AlfrescoImapServer.startup(AlfrescoImapServer.java:263)
at org.alfresco.repo.imap.AlfrescoImapServer.onBootstrap(AlfrescoImapServer.java:223)

...

Caused by: java.net.BindException: Cannot assign requested address (Bind failed)
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at org.alfresco.repo.imap.AlfrescoImapServer$DefaultImapServer.openServerSocket(AlfrescoImapServer.java:136)
at com.icegreen.greenmail.imap.ImapServer.run(ImapServer.java:106)

Previously we tried on port 143, but we got "Permission denied" (server is not running as a root) so we changed the port to a higher number (which is not taken).

The only thing we configured is the alfesco-global.properties file:

imap.server.enabled=true
imap.server.port=1497
imap.server.host=XXX.XXX.XXX.XXX
 
However, when we changed imap.server.host to "0.0.0.0" it started correctly.
Now, how we can configure it with Thunderbird? How can I find the Alfresco user's email address?
 
1 Reply
mhmmderen
Member II

Re: Imap configuration problem

Screenshot from 2019-11-20 11-42-15.png   

I want to keep messages on the Ldap mail server in Alfresco using an imap connection. configuration information is like in the visual but I can not see the messages alfrescoda. can you help me