cancel
Showing results for 
Search instead for 
Did you mean: 

IMAP Client Configuration Help Needed

darryl_staflund
Champ in-the-making
Champ in-the-making
Hi all,

I have installed Alfresco Community 3.2 and want to test out its IMAP capabilities.  To do this, I have enabled the IMAP protocol server by modifying:


/WEB-INF/classes/alfresco/subsystems/imap/default/imap-server.properties


to read as follows:


imap.server.enabled=true
imap.server.host=localhost
imap.server.port=143

imap.config.home.store=${spaces.store}
imap.config.home.rootPath=/${spaces.company_home.childname}
imap.config.home.folderPath=Imap Home

imap.server.web.application.context.url=http://localhost:8080/alfresco

I also created and saved the following content in /Company Home/Data Dictionary/Imap Configs as 'imap-config.xml' and restarted the server:


<alfresco-config>
   <config>
      <imapConfig>
         <imap name="Repository_virtual" mode="virtual">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
         </imap>
         <imap name="Repository_archive" mode="archive">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
         </imap>
      </imapConfig>
   </config>
</alfresco-config>

This seems to be all I need to do to enable the IMAP protocol server since the following logging information is emitted during startup:


15:01:39,453 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [default]
15:01:39,468 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:01:39,546 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [default] complete

However, I can't seem to access it from Outlook, which I have configured as follows:


Incoming mail server(IMAP):  localhost
Outgoing mail server (SMTP):  <My carrier's SMTP server address>
User Name:  <my alfresco account name>
Password:  <my alfresco account password>
Incoming Server (IMAP) Port:  143
Root folder path:  <blank>

This doesn't work.  Nor does it work if I change the IMAP server name to my IP address or machine name.  I've also tried changing the Root folder path to '/' and '/app:company_home' but nothing works.

The error I get from Outlook is as follows:


Task 'Checking for new mail in subscribed folders on Alfresco Repository (IMAP).' reported error (0x800CCC0E) : 'Outlook is unable to download folder (null) from the IMAP e-mail server for account Alfresco Repository (IMAP). Error: Unable to connect to the server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'

What am I doing wrong?  What do I need to do to get this working?

Thanks,
Darryl Staflund


PS:  I have opened up port 143 on my workstation.
3 REPLIES 3

darryl_staflund
Champ in-the-making
Champ in-the-making
I think I messed a step somewhere.  Although the IMAP subsystem is up and running, the actual server is disabled as evidenced by the following webscript:


http://localhost:8080/alfresco/service/imap/servstatus            // Returns 'disabled'

I thought the logging information was telling me that the IMAP server was enabled, but I guess the IMAP subsystem can be up and running without it's actually being enabled.

Now to poke around some more.

Darryl

mikef
Champ in-the-making
Champ in-the-making
There's a new wiki page available here http://wiki.alfresco.com/wiki/IMAP describing how to enable IMAP with 3.2 Community.
Note this line:

15:01:39,546 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [default] complete

does not mean the subsystem is enabled and listening, it just means that it's been initialized. If the IMAP server is enabled you should see another entry telling you the hostname and port that the server is listening on e.g.

14:55:30,976 User:System INFO  [repo.imap.AlfrescoImapServer] IMAP service started on host:port myhostname:143

I'd also suggest you enable logging during initial testing using log4j.logger.org.alfresco.repo.imap=debug in log4j.properties.

darryl_staflund
Champ in-the-making
Champ in-the-making
Beautiful!  I rolled back my previous configuration changes and then followed the steps recommended in the link you provided, and IMAP is up and running.  Thanks for your prompt response.  Much appreciated 🙂

Darryl