Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
3.2ConfigurationSubsystemsIMAPEmail
The IMAP Subsystem provides the IMAP service that allows access to the Alfresco server via the IMAP protocol. The protocol allows email applications that support IMAP (including Outlook, Apple Mail, Thunderbird, etc.) to connect to and interact with Alfresco repositories directly from the mail application.
The IMAP protocol server is disabled by default. To enable the protocol, set the following configuration properties in alfresco-global.properties:
imap.server.enabled=true
imap.server.port=143
imap.server.host=localhost
Important: You should not use localhost as the imap.server.host - update this value with the IP address (or corresponding DNS address) of your external IP interface. A value of 0.0.0.0 in Unix will make it listen on the specified port on all IP interfaces.
Note: You will need to restart your Alfresco server for the new configuration to take effect.
Since the IMAP server only has one instance you should make configuration changes to <extension root>alfresco-global.properties although since this is the imap subsystem you can also make your changes to <extension root>\alfresco\extension\subsystems\imap\default\default in which case the subsystem configuration will take precedence.
The following settings change the configuration of the IMAP service.
Important: You should not use localhost as the imap.server.host - update this value with the IP address (or corresponding DNS address) of your external IP interface. A value of 0.0.0.0 in Unix will make it listen on the specified port on all IP interfaces.
Configuration of the IMAP Home space which will be used to store user's maiboxes in ARCHIVE mode, in particular the user's INBOX.
The imap.config.home.rootPath property may also be configured using an XPath query syntax
imap.config.home.rootPath=/app:company_home
To add your own folder to this path, add the name of your folder path using the data model names. For example: /app:company_home/cm:Houses. If your folder has a space in the name, include this character where the space should be: '_x0020_' e.g. /app:company_home/cm:Home_x0020_Town. Stop and start the IMAP subsystem for the changes to take effect.
IMAPS is a secure IMAP encrypted via SSL. By default IMAPS is assigned to port number 993.
Once the Imap subsystem is enabled, There are two pieces of extra configuration for IMAPS.
The first is to configure the default java keystore, this may already have been done for other parts of alfresco.
The second is to enable IMAPS
An IMAP message may contain a message and a set of attachments. The IMAP server can split the attachments into separate content nodes.
The files and folders available to the IMAP interfaces are 'mounted' from the repository. Using mount points allows you to control which bits of an alfresco repository are exposed. By default a single mount point is defined called 'AlfrescoIMAP' and you can change this or add more mount points.
The IMAP integration offers the following three different access Modes.
imap.config.server.mountPoints is a composite property which you add to list the names of your imap mount points.
Then for each mount point you need to specify the following settings.
* beanName
* store
* rootPath
* mode
We use the format
<property>.default.<component property>
Example 1, the default provided out f the box.
imap.config.server.mountPoints=AlfrescoIMAP
imap.config.server.mountPoints.default.mountPointName=IMAP
imap.config.server.mountPoints.default.modeName=ARCHIVE
imap.config.server.mountPoints.default.store=${spaces.store}
imap.config.server.mountPoints.default.rootPath=/${spaces.company_home.childname}
imap.config.server.mountPoints.value.AlfrescoIMAP.mountPointName=Alfresco IMAP
imap.config.server.mountPoints.value.AlfrescoIMAP.modeName=MIXED
In the above example a single mount point with the name AlfrescoIMAP is defined, In MIXED mode, showing files below Company Home.
to specify default values for each component property. For example:
imap.config.server.mountPoints.default.store=${spaces.store}
imap.config.server.mountPoints.default.rootPath=/${spaces.company_home.childname}
imap.config.server.mountPoints.default.mode=virtual
First, we set the master composite property using a comma-separated list of the individual mount point names.
imap.config.server.mountPoints=Repository_virtual,Repository_archive
Note that in a JMX dump, the presentation will be slightly different:
** Object Name Alfresco:Type=Configuration,Category=imap,id1=default,id2=imap.config.server.mountPoints,id3=Sites
** Object Type imap$default$imap.config.server.mountPoints$Sites
folderNames [Sites]
folderPath /Sites
mode MIXED
modeName MIXED
mountPointName Alfresco Sites
rootPath /app:company_home
store workspace://SpacesStore
storeRef workspace://SpacesStore
TODO - More complex example.
You have to be careful when deciding what mount points you provide.
Indeed, an IMAP client when mounting a mount point issue a
LSUB '' *
command, which retrieves the *whole* tree of folders below the mount point.
For instance, if the tree contains 1000 folders the server could take 15 seconds (depending on the hardware) to start pushing the folder list to the client.
For 2000 folders it could take twice that time. The time increase can be considered linear at first approximation.
Back to Server Configuration
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.