AnsweredAssumed Answered

Configure inbound email on Alfresco Community 4.2.d with Gmail account on Goople Apps domain

Question asked by traductionbiz on Sep 24, 2013
Latest reply on Dec 30, 2014 by zydoon
Hi,

I have Alfresco 4.2.d installed on an Ubuntu 12.04 server using the standard downloadable Alfresco package.

I want to use a Gmail account on a Google Apps domain for outbound and inbound mail to Alfresco.

My outbound mail is working OK, but I can't figure out how to configure my inbound mail for the complication that my domain is using Gmail provided via Google Apps.

I've followed Jeff Pott's how-to video at http://www.youtube.com/watch?v=p17GkHsLdmc as regards creating a folder in the repository, to receive inbound mail, then editing that folder's aspects to add 'Aliasable (Email)', and the only user sending the inbound mail will be the site admin, and he's in the 'EMAIL CONTRIBUTORS' group, so that's enough to work, no?

The mail settings in my /opt/alfresco-4.2.d/tomcat/shared/classes/alfresco.global.properties look like the following:

### Outbound email configuration ###
mail.host=smtp.gmail.com
mail.port=465
mail.username=myrepo@somedomain.com
mail.password=12idh3456
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true

# Outbound mail service test on subsystem startup
# Use these properties to send test message during start of subsystem
mail.testmessage.send=true
mail.testmessage.to=me@somedomain.com
mail.testmessage.subject=System re-start: outbound SMTP mail subsystem working OK
mail.testmessage.text=The Outbound SMTP email subsystem is working.

### Inbound email configuration ###
# 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

# Inbound email server settings
#————-
email.server.enabled=true
email.server.port=993
email.server.domain=imap.gmail.com
email.server.hideTLS=true
email.server.enableTLS=true
email.server.requireTLS=true
email.inbound.unknownUser=anonymous

# 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=.*\@somedomain\.com

### E-mail site invitation setting ###
notification.email.siteinvite=true


1) What are the mail server settings that will work for Gmail on Google Apps? Remember, the receiving email address is myrepo@somedomain.com but the user has to log in at imap.gmail.com

2) I currently have only 80 and 443 open on my firewall (the site only exposes to the Internet via SSL, visits to port 80 get rewritten to HTTPS). Do I need to have any other port(s) open for incoming mail?

3) I already have a StartSSL csr, key and cert for my domain. The Alfresco wiki page at http://wiki.alfresco.com/wiki/Inbound_SMTP_Email_Server_Configuration#Inbound_email_service talks about the need to configure SSL for Java, otherwise STARTTLS won't work.
How do I do that with the 4.2.d Community edition on Ubuntu 12.04? I can't any tomcat5.conf file anywhere, as mentioned in the wiki page.

Let's assume I have mydomain.com.csr, mydomain.com.crt and mydomain.com.key, plus StartSSL's ca.pem and sub.class1.server.ca.pem.

Do I need to put them somewhere? How do I need to prepare them?

I'd be very grateful for any help here, ;-)


Dave

Outcomes