Hello,I'am using IMAP on a Alfresco 4.0D on RHEL. All works good on a test server.I have update yesterday the test server with data from production. We want to enable Imap on the production server…I have recreate the index… all works good but not the imap server :When I start the test server with new data I get new message :
2012-08-04 13:16:34,984 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'Authentication' subsystem, ID: [Authentication, managed, ldap-ad1]
2012-08-04 13:16:35,292 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'Authentication' subsystem, ID: [Authentication, managed, ldap-ad1] complete
2012-08-04 13:16:35,344 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
2012-08-04 13:16:35,344 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'imap' subsystem, ID: [imap, default]
2012-08-04 13:19:43,276 INFO [repo.imap.AlfrescoImapServer] [main] IMAP service started on host:port server.entreprise.custom.ch:1143
2012-08-04 13:19:43,276 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'imap' subsystem, ID: [imap, default] complete
2012-08-04 13:19:43,276 INFO [management.subsystems.ChildApplicationContextFactory] [main] Starting 'email' subsystem, ID: [email, outbound]
Exception in thread "Thread-64" java.lang.RuntimeException: java.net.BindException: Cannot assign requested address
at com.icegreen.greenmail.imap.ImapServer.run(ImapServer.java:67)
Caused by: java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at com.icegreen.greenmail.imap.ImapServer.openServerSocket(ImapServer.java:35)
at com.icegreen.greenmail.imap.ImapServer.run(ImapServer.java:65)
2012-08-04 13:19:43,354 INFO [management.subsystems.ChildApplicationContextFactory] [main] Startup of 'email' subsystem, ID: [email, outbound] complete
I start Alfresco with another user than root. The port are redirected :
iptables -t nat -vnL #
Chain PREROUTING (policy ACCEPT 15M packets, 2502M bytes)
pkts bytes target prot opt in out source destination
28694 1378K REDIRECT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:445 redir ports 1445
79 3840 REDIRECT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:139 redir ports 1139
6011K 472M REDIRECT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:137 redir ports 1137
3147K 724M REDIRECT udp – * * 0.0.0.0/0 0.0.0.0/0 udp dpt:138 redir ports 1138
47 2772 REDIRECT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 redir ports 1024
26 1352 REDIRECT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143 redir ports 1143
Chain POSTROUTING (policy ACCEPT 555K packets, 34M bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 555K packets, 34M bytes)
pkts bytes target prot opt in out source destination
alfresco-global.properties
# Imap http://wiki.alfresco.com/wiki/IMAP
imap.server.enabled=true
imap.server.port=1143
imap.server.host=server.entreprise.custom.ch
Thanks