November 24, 2024

Alfresco tips and tricks – #5 Email Outbound/Inbound

Alfresco make use of the OutboundSMTP subsystem informing you of certain events, such as recent site activities and invitations to join sites. For example when a new user is invited to a site an email is sent. In addition Alfresco also supports accessing the Repository via the IMAP protocol. The protocol allows email applications that support IMAP, including Outlook, Apple Mail and Thunderbird, to connect to and interact with Alfresco repositories directly from the mail application. Here the two subsystem settings (alfresco-global.properties).

# Inbound Email Configuration 
#---------------------------------------------------
imap.server.enabled=true
imap.server.port=11143
imap.server.host=0.0.0.0
imap.server.attachments.extraction.enabled=true
imap.config.home.store=${spaces.store}
imap.config.home.rootPath=/${spaces.company_home.childname}
imap.config.home.folderPath=Imap Home
imap.config.server.mountPoints=Afolder 
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.Afolder.mountPointName=AFOLDER
imap.config.server.mountPoints.value.Afolder.modeName=MIXED
# Outbound Email Configuration
#--------------------------------------------------- 
notification.email.siteinvite=true 
mail.host=smtp.gmail.com 
mail.port=465 
mail.protocol=smtps 
mail.username=myuser@gmail.com 
mail.password=test 
mail.encoding=UTF-8 
mail.from.default=default@default.com 
#mail.smtp.auth=true 
#mail.smtp.debug=true 
#mail.smtp.starttls.enable=true 
mail.smtps.auth=true 
mail.smtps.starttls.enable=true 
mail.testmessage.send=true 
mail.testmessage.to=test@test.it 
mail.testmessage.subject=test Outbound SMTP 
mail.testmessage.text=test The Outbound SMTP email subsyst

 

8 Comments

  1. jj

    hi, i have configured like you but i don’t receive emails… 🙁 maybe other configurations additional? DNS? ANY SERVICES?? thanks

    Reply
  2. raj

    GOT ERROR, using Port-465. My_Email-Server is in REMOTE(Zimbra)

    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: zimbra-mail.centos7.local, port: 465;

    Reply
  3. Santiago

    Hi Giuseppe .

    I just finished to set up the outbound email configuration subsystem, and it worked perfectly. Next, I’ll try to configure inbound email. So thank you, it was (and sure it’ll be later) very useful.

    Regards.
    Santiago.

    Reply

Leave a Reply

Your email address will not be published.