cancel
Showing results for 
Search instead for 
Did you mean: 

IMAP not working - Ubuntu 9.04 & Alfresco 3.2

oblivian
Champ in-the-making
Champ in-the-making
System: Ubuntu Server 9.04 - Alfresco 3.2 Community (I installed from partner repository. "apt-get install alfresco-community". Most settings default).

Hello,

I am trying to get IMAP to work with Alfresco. I have enabled IMAP in /usr/share/tomcat6/shared/classes/alfresco-global.properties
I followed this guide: http://wiki.alfresco.com/wiki/IMAP
I also selected misc sites as Favourites from Share.

This is the output from alfresco.log
00:00:21,970 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [default]
00:00:21,977 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
00:00:22,054 INFO  [org.alfresco.repo.imap.AlfrescoImapServer] IMAP service started on hostSmiley Tongueort 10.70.10.20:143.
00:00:22,054 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [default] complete

When trying to connect with Thunderbird and Microsoft Mail I get a Connection Refused message.
Is there anything else I have to do?

EDIT: I have also tried different IMAP hostnames: localhost, host.domain.tld, host.local.lan, 0.0.0.0 and xxx.xxx.xxx.xxx. No luck…
EDIT2: I have also tried to set the IMAP server to listen on an unpriviliged port and use IP-tables to NAT/Redirect. Still nuttin'…

Please advice,

Oblivian
10 REPLIES 10

dward
Champ on-the-rise
Champ on-the-rise
The IMAP service may still be listening on the wrong network adapter. When you ping the server from the machine with the IMAP client, what does its IP address resolve to? Make sure that the IMAP server is listening on the same IP address. 'localhost' may not resolve to the network adapter connected to the outside world so you should probably specify an explicit IP.

oblivian
Champ in-the-making
Champ in-the-making
Hi guys,

Thank you for your replies, but did you read my post?

EDIT: I have also tried different IMAP hostnames: localhost, host.domain.tld, host.local.lan, 0.0.0.0 and xxx.xxx.xxx.xxx. No luck…
EDIT2: I have also tried to set the IMAP server to listen on an unpriviliged port and use IP-tables to NAT/Redirect. Still nuttin'…
EDIT: I was answering a post no longer present.

I have tried all "listening" options I can think of…

Anyone actually running IMAP on Ubuntu 9.04/Alfresco 3.2 Community, installed from the partner repository and got it to work? It might be something systemwise preventing listening ports below 1024 or something.

Please advice,

oblivian
Champ in-the-making
Champ in-the-making
The IMAP service may still be listening on the wrong network adapter. When you ping the server from the machine with the IMAP client, what does its IP address resolve to? Make sure that the IMAP server is listening on the same IP address. 'localhost' may not resolve to the network adapter connected to the outside world so you should probably specify an explicit IP.
00:00:22,054 INFO [org.alfresco.repo.imap.AlfrescoImapServer] IMAP service started on hostSmiley Tongueort 10.70.10.20:143.
Well, according the enclosed log in my original post the server listens on: 10.70.10.20:143, which is also what I get when ping the host.

oblivian
Champ in-the-making
Champ in-the-making
For diagnostic purposes I setup a virtual Ubuntu 9.04 Desktop and installed Alfresco Community 3.2 from the Partner Repository. The whole process took about 10-15 minutes… Anyways, I did this just to have all connections on localhost. …but to no avail. I still can't connect to Alfresco via the IMAP-protocol. (Using Thunderbird).

Is there really no other configs that should be altered except /usr/share/tomcat6/shared/classes/alfresco-global.properties?

Oblivian

robl
Confirmed Champ
Confirmed Champ
I had issues as well with IMAP, Ubuntu 9.04, and Alfresco 3.2 from the partner repository.  I changed the default port for 8143, restarted, and had to wait a couple of minutes for Alfresco to fully restart and start the IMAP service.  After that point, I have been able to connect with IMAP using multiple clients.

oblivian
Champ in-the-making
Champ in-the-making
Thanks, that did the trick. I also opted for port 8143. What is strange is that I tried this earlier, but then on port 10143 which didn't work. Maybe I just didn't waited long enough.
So, the conclusion is that Alfresco can't be runned on ports below 1024. Next is to use iptables to redirect the ports then.

Thanks again! 🙂

oblivian
Champ in-the-making
Champ in-the-making
Well, so I finally was able to connect via IMAP, but the links in the metadata/content links all point to localhost… Where do I fix that issue?

Thanks

dward
Champ on-the-rise
Champ on-the-rise
Just set web.application.context.url in alfresco-global.properties

web.application.context.url=http://your.host.com:8080/alfresco

oblivian
Champ in-the-making
Champ in-the-making
Did the trick. Thanks!