cancel
Showing results for 
Search instead for 
Did you mean: 

IMAP Mount Points

damucksta
Champ in-the-making
Champ in-the-making
Hello

I am pretty useless with Alfresco, so excuse if this this a stupid question.

I want to use IMAP integration, but would like for the default mountpoint to be the Sites subfolder, so none of the rest of the heirarchy is exposed. I have trawled the documentation and although I can see a lot in principle about the theory behind it, I cannot for the life of me find the specifics of how to do this.

I'm sure it should be pretty simple. Can anyone help?

Thanks
6 REPLIES 6

fcorti
Elite Collaborator
Elite Collaborator
Hi damucksta,

First of all I suggest you those links:
<a href="http://wiki.alfresco.com/wiki/The_IMAP_Subsystem">http://wiki.alfresco.com/wiki/The_IMAP_Subsystem</a>
<a href="http://wiki.alfresco.com/wiki/IMAP">http://wiki.alfresco.com/wiki/IMAP</a>

Below I share an example of mount points we used in the past.
The configuration is extracted from the alfresco-global.properties file.


#
# IMAP
#
imap.server.enabled=true
imap.server.port=1143
imap.server.host=0.0.0.0
imap.config.home.store=${spaces.store}
imap.config.home.rootPath=/${spaces.company_home.childname}
imap.config.home.folderPath=Imap Home
imap.server.attachments.extraction.enabled=false
# IMAP Mount points
imap.config.server.mountPoints=MountPoint1,MountoPoint2
imap.config.server.mountPoints.default.store=${spaces.store}
imap.config.server.mountPoints.default.modeName=MIXED
imap.config.server.mountPoints.value.MountPoint1.mountPointName=Mount point 1
imap.config.server.mountPoints.value.MountPoint1.rootPath=/${spaces.company_home.childname}/… (path)
imap.config.server.mountPoints.value.MountPoint2.mountPointName=Mount point 2
imap.config.server.mountPoints.value.MountPoint2.rootPath=/${spaces.company_home.childname}/… (path)


If you are interested in IMAPS (the secure IMAP protocol) I suggest you this post:
<a href="http://francescocorti.wordpress.com/2013/06/06/how-to-activate-imaps-the-secure-imap-support-on-alfr...">http://francescocorti.wordpress.com/2013/06/06/how-to-activate-imaps-the-secure-imap-support-on-alfr...</a>

Hope this help.

damucksta
Champ in-the-making
Champ in-the-making
Thanks a lot. I'd already been through those links a few times. Where I am stuck is, I think, here:

imap.config.server.mountPoints.value.MountPoint1.rootPath=/${spaces.company_home.childname}/… (path)

I just can't work out what the syntax is where the path should be. I am guessing it's not supposed to be:

imap.config.server.mountPoints.value.MountPoint1.rootPath=/${spaces.company_home.childname}/Sites

Because that doesn't work.

SOrry to be hard work. I am stuck and useless with js.

fcorti
Elite Collaborator
Elite Collaborator
Hi,

If you want to be sure about the root path I can suggest you:
- Please access to the administrator panel in Alfresco.
- Click on the Node Browser.
- Dive deep in the repository finding the node you want to map in your mount point.
- Look at the second item (in english should be something like 'main path'… sorry but I'm reading it in italian)
- Cut and paste this value to the mount point.
- Restart Alfresco and try to access it.

To gice you an example, the imap home (/Imap Home) is '/${spaces.company_home.childname}/Imap_x0020_Home'.

Hope this help.

damucksta
Champ in-the-making
Champ in-the-making
Hi

Thanks very much again for your help. The actual path is ' /app:company_home/st:sites'

I'm guessing, following your example, you drop the prefix. I used this but it still doesn't work.

imap.server.enabled=true
imap.server.port=143
imap.server.host=192.168.1.244
imap.config.home.store=${spaces.store}
imap.config.home.rootPath=/${spaces.company_home.childname}
imap.config.home.folderPath=Imap Home
imap.server.attachments.extraction.enabled=true
imap.config.server.mountPoints=MountPoint1
imap.config.server.mountPoints.default.store=${spaces.store}
imap.config.server.mountPoints.default.modeName=MIXED
imap.config.server.mountPoints.value.MountPoint1.mountPointName=Mount point 1
imap.config.server.mountPoints.value.MountPoint1.rootPath=/${spaces.company_home.childname}/app:company_home/st:sites

Can you see what I am doing wrong?

Very grateful for your help.

fcorti
Elite Collaborator
Elite Collaborator
Hi,

In your case 'app:company_home' is redundant with '${spaces.company_home.childname}' so should work:
imap.config.server.mountPoints.value.MountPoint1.rootPath=/${spaces.company_home.childname}/st:sites
or
imap.config.server.mountPoints.value.MountPoint1.rootPath=/app:company_home/st:sites

Br

damucksta
Champ in-the-making
Champ in-the-making
Thanks so much! Works perfectly!

For anyone else, this is a working extract from alfresco-global.properties that creates a default mount point leading to the Sites subdirectory:

#
# IMAP
#
imap.server.enabled=true
imap.server.port=143
imap.server.host=192.168.1.244
imap.config.home.store=${spaces.store}
imap.config.home.rootPath=/${spaces.company_home.childname}
imap.config.home.folderPath=Imap Home
imap.server.attachments.extraction.enabled=true
imap.config.server.mountPoints=MountPoint1
imap.config.server.mountPoints.default.store=${spaces.store}
imap.config.server.mountPoints.default.modeName=MIXED
imap.config.server.mountPoints.value.MountPoint1.mountPointName=Mount point 1
imap.config.server.mountPoints.value.MountPoint1.rootPath=/${spaces.company_home.childname}/st:sites

Bravo Francesco. Very grateful for your interest and your help.