cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.3g IMAP configuration

mariam
Champ in-the-making
Champ in-the-making
Hello

I am relatively new to alfresco and I am trying to integrate thunderbird (or any other email client for that matter) with alfresco. At this point I managed to configure 2 imap mount points for the existing 2 accounts on my server, admin and maria. but i don't know (and didn't find ) how to grant access to only one of them for each user (for example: I want maria to only access the maria mount point and admin to access admin). Any ideas?

On a not totally different subject, the admin account has issues in thunderbird: when trying to send email to maria it says it has access denied to maria@mydomain.com. Maria account works fine. Please find below the alfresco-global.properties file (the relevant part).

Any suggestions are welcomed. Thanks
Maria

#
# Outbound Email Configuration
#————-
mail.host=mydomain.com
mail.port=25
mail.username=admin
mail.password=maria
mail.encoding=UTF-8
mail.from.default=admin@mydomain.com
mail.smtp.auth=true
mail.smtp.timeout=30000
mail.protocol=smtp

#
# Alfresco Email Service and Email Server
#————-

# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#————-
email.inbound.enabled=true

# Email Server properties
#————-
email.server.enabled=true
email.server.port=25
email.server.host = 0.0.0.0

email.server.domain=mydomain.com
#email.server.allowed.senders= .*\@mydomain\.com, .*\@gmail\.com
email.inbound.unknownUser=anonymous

imap.server.enabled=true
imap.server.port=143
imap.server.host = 0.0.0.0
imap.server.web.application.context.url=http://mydomain.com:8080/alfresco
imap.server.attachments.extraction.enabled=true

# Set default ImapConfigMountPointsBean property values
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}

# Define mount points (i.e. ImapConfigMountPointsBean beans)
imap.config.server.mountPoints=Admin,imap1

# Set mount point specific properties (per ImapConfigMountPointsBean bean)
imap.config.server.mountPoints.value.Admin.mountPointName = Admin
imap.config.server.mountPoints.value.Admin.folderPath=Imap Home/admin
imap.config.server.mountPoints.value.Admin.modeName=MIXED

imap.config.server.mountPoints.value.imap1.mountPointName = Maria
imap.config.server.mountPoints.value.imap1.folderPath=Imap Home/maria
imap.config.server.mountPoints.value.imap1.modeName=MIXED

# A comma separated list of email REGEX patterns of allowed senders.
# If there are any values in the list then all sender email addresses
# must match.  For example:
#   .*\@alfresco\.com, .*\@alfresco\.org
# Allow anyone:
#————-
email.server.allowed.senders=.*
20 REPLIES 20

mrogers
Star Contributor
Star Contributor
The permissions problem is ALF-4200 which is fixed in 3.4 Enterprise and 3.3.5 Enterprise.

mariam
Champ in-the-making
Champ in-the-making
thanks.

I'm using comunity edition so will probably have to do the fix myself.

mariam
Champ in-the-making
Champ in-the-making
do you by any chance know why all senders' email addresses appear with @demo.alfresco.org and receivers' email all have addresses with @alfresco.org although my domain is set to mydomain.com?

maybe there's a setting i missed.

thanks
Maria

mrogers
Star Contributor
Star Contributor
I don't think there's such a property as:
email.server.host = 0.0.0.0

Confusingly this is the value that you use to set the inbound SMTP hostname.     
email.server.domain=mydomain.com

I found and wiki'd this yesterday.    It seems to have been that way for some time although I'm considering raising a JIRA to change it.

I've not yet turned my attention to the outbound SMTP settings.

mariam
Champ in-the-making
Champ in-the-making
On the permissions problem: an user can only email another user if he has access to this other user's space (meaning he has been invited to the receivers INBOX space in the imap home folder). This is really incovenient since i don't want all the users to have access to all inboxes Smiley Very Happy but only to their own. Would you mind disclosing the fix for this particular problem? You suggested in JIRA to do a permissions check in listMailboxes in ImapServiceImpl.java where its loading the mount points but since i am new to this i don't know exactly how to do this.

After a little digging I found out how to change the defaulFromAddress but this isn't exactly what I want. What I want is for thunderbird to display the right sender's address and not a default one. In Alfresco, when you browse the imap home user's INBOX you can see the right address for each email but in thunderbird it shows the default one. There must be a variable in the ImapServiceImpl that holds the senders' email.

I appreciate any help you can give me,
Maria

mrogers
Star Contributor
Star Contributor
I've raised an issue to consider the permissions problem ALF-5950.     There's a bit of a conflict between Alfresco being "a repository" and Alfresco being "an email server".

Are you trying to use alfresco like an email system?   I'd appreciate if you could spell out what you are trying to do with inbound email since it may steer a potential change.

mariam
Champ in-the-making
Champ in-the-making
I am trying to integrate alfresco with an email client but i don't intend to use it exclusively as an email server.

I haven't decided to buy the enterprise edition because I want to see if the application suits my needs (as a repository) that's why i'm struggling with the community edition. The server part was supposed to be a breezeSmiley Very Happy but now i'm stuck.

Let me know when you have a solution for the permissions problem.

Maria

mrogers
Star Contributor
Star Contributor
There's no "permissions problem".  You can't write to a node that you don't have permissions to write to.

However I can see that there may be a use-case, especially after adding IMAP to alfresco where more "email server" like functionality may be useful where you could write to a space that you can't read.

mariam
Champ in-the-making
Champ in-the-making
Yes this is the "permissions problem" I was referring to. Any ideas on how to grant write access to a users' INBOX but not a read one?  I wouldn't mind making the changes myself in the code but I would be needing some guidance Smiley Very Happy

Thank you for your help/suggestions/replies

Maria