AnsweredAssumed Answered

Imap Configration Unable to open socket bindTo

Question asked by sulyman.korj on Dec 23, 2015
Dears,

I already configure IMAP to link my outlook to alfresco but it is not working I found the below in my log:
2015-12-23 10:22:01,911 INFO  [org.alfresco.repo.module.ModuleServiceImpl] [localhost-startStop-1] Starting module 'org.alfresco.integrations.google.docs' version 3.0.0.
2015-12-23 10:22:01,939 INFO  [org.alfresco.repo.module.ModuleServiceImpl] [localhost-startStop-1] Starting module 'org.alfresco.module.vti' version 1.3.
2015-12-23 10:22:01,954 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'fileServers' subsystem, ID: [fileServers, default]
2015-12-23 10:22:07,843 WARN  [org.alfresco.fileserver] [localhost-startStop-1] CIFS, Unable to get local domain/workgroup name, using default of WORKGROUP. This may be due to firewall settings or incorrect <broadcast> setting)
2015-12-23 10:22:07,874 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
2015-12-23 10:22:07,874 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'imap' subsystem, ID: [imap, default]
2015-12-23 10:22:12,521 INFO  [org.alfresco.repo.imap.AlfrescoImapServer] [localhost-startStop-1] IMAP service started on host:port 54.85.74.***:1143
2015-12-23 10:22:12,524 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'imap' subsystem, ID: [imap, default] complete
2015-12-23 10:22:12,524 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'email' subsystem, ID: [email, outbound]
2015-12-23 10:22:12,543 ERROR [org.alfresco.repo.imap.AlfrescoImapServer] [Thread-59] Unable to open socket bindTo:/54.85.74.*** port 143
java.net.BindException: Cannot assign requested address
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:382)
        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:128)
        at com.icegreen.greenmail.imap.ImapServer.run(ImapServer.java:74)
2015-12-23 05:53:37,425 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'email' subsystem, ID: [email, outbound] complete
2015-12-23 05:53:37,425 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'email' subsystem, ID: [email, inbound]
2015-12-23 05:53:37,552 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'email' subsystem, ID: [email, inbound] complete

————————————————-
My UFW status : inactive

————————————————-

alfresco-global.properties


imap.server.enabled=true
imap.server.port=143
imap.server.host=mydomain.com

————————————————
iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  –  anywhere             anywhere             state NEW tcp dpt:imap2
ACCEPT     tcp  –  anywhere             anywhere             tcp dpt:imap2

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


———————————————-

root@******:/etc/init.d# netstat -tulnp | grep 143
root@******:/etc/init.d#



Outcomes