ociexo-platform-community

Configure SMTP for outbound emails

For eXo Platform 4.1 or newer

To send email using eXo Platform via SMTP, it is necessary to specify the SMTP settings in the /opt/bitnami/apps/exoplatform/gatein/conf/exo.properties file.

Here is an example of the configuration parameters using a Gmail SMTP server. Replace USERNAME and PASSWORD with your Gmail account username and password respectively.

exo.email.smtp.from=USERNAME@gmail.com
exo.email.smtp.host=smtp.gmail.com
exo.email.smtp.port=465
exo.email.smtp.starttls.enable=true
exo.email.smtp.auth=true
exo.email.smtp.username=USERNAME@gmail.com
exo.email.smtp.password=PASSWORD
exo.email.smtp.socketFactory.port=465
exo.email.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory

Find more information in this guide.

For eXo Platform 4.1.0 or older

To send email using eXo Platform via SMTP, it is necessary to specify the SMTP settings in the /opt/bitnami/apps/exoplatform/scripts/setenv-customize.sh file.

Here is an example of the configuration parameters using a Gmail SMTP server. Replace USERNAME and PASSWORD with your Gmail account username and password respectively.

EXO_EMAIL_FROM="USERNAME@gmail.com"
EXO_EMAIL_SMTP_HOST="smtp.gmail.com"
EXO_EMAIL_SMTP_PORT="465"
EXO_EMAIL_SMTP_STARTTLS_ENABLE=true
EXO_EMAIL_SMTP_AUTH=true
EXO_EMAIL_SMTP_USERNAME="USERNAME@gmail.com"
EXO_EMAIL_SMTP_PASSWORD="PASSWORD"

After saving the changes to the file, restart the Tomcat server:

$ sudo /opt/bitnami/ctlscript.sh restart tomcat

To configure the application to use other third-party SMTP services for outgoing email, such as SendGrid, refer to the FAQ.

NOTE: If you are using Gmail as the outbound email server and have experienced issues trying to send emails correctly, check the Gmail SMTP troubleshooting page to learn the causes of these issues and how to solve them.

Last modification January 18, 2019