cancel
Showing results for 
Search instead for 
Did you mean: 

IMAP bound to localhost, how do I change it?

warmbowski
Champ in-the-making
Champ in-the-making
After install of Alfresco CE 3.2 on CentOS 5.1, I enabled IMAP in the alfresco-global.properties file using these settings:

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

IMAP is up and running but the protocol seems to bound to localhost only, as displayed by 'netstat -ln':

tcp        0      0 ::ffff:127.0.0.1:143        :::*                        LISTEN

so I cannot connect to it from an email client on another computer. When I telnet into port 143 from the localhost, I get:

* OK IMAP4rev1 Server GreenMail ready

When I telnet in from another computer, I get:

Connecting To alfresco.mydomain.com…Could not open connection to the host, on port 143: Connect failed

How do I change this setting and bind IMAP protocol to my Alfresco server's ip address?
3 REPLIES 3

warmbowski
Champ in-the-making
Champ in-the-making
Nevermind, it seems that the domain that I used alfresco.mydomain.com was listed in my hosts file and mapped to the localhost IP address. So I changed the imap.server.host= setting from the FQDN to the server IP address and all works fine now.

cloudcontrol
Champ in-the-making
Champ in-the-making
Hope this helps someone: on Amazon EC2, don't spend hours chasing your tail trying to use your Elastic IP in /etc/hosts- use the NAT IP, as in:
127.0.0.1 localhost
10.xxx.xxx.xxx alfresco.yourdomain.com alfresco

elibra
Champ in-the-making
Champ in-the-making
it seems that the domain that I used alfresco.mydomain.com was listed in my hosts file and mapped to the localhost IP address. So I changed the imap.server.host= setting from the FQDN to the server IP address and all works fine now.

thank you very much! it helped me  Smiley Happy

lesson learned: pay attention what is in /etc/hosts
( especially if uoy'we used to install several updates of alfresco versions):
127.0.0.1           localhost
xxx.xx.xx.xx     u-alfresco u-alfresco_a alfresco.yourdomainname.com