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 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
# 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?
You'll need to import Google's certificate into your keystore you'll need bring the certificate from smtp.gmail.com: openssl s_client -connect smtp.gmail.com:465 the the part between begin certificate and end certificate (included) in a file (ie: gmail.cert) than import that certificate into alfresco's java keystore using keytool