2.5. Outgoing mail service

eXo Platform includes an email sending service that needs to be configured before it can function properly. This service, for instance, is used to send emails to users who forgot their password or username.

Configuring the outgoing email account

The email service can use any SMTP account configured in:

The relevant configurations are:

(1)# Emails
(2)gatein.email.domain.url=${domain.url:http://localhost:8080}
(3)gatein.email.smtp.from=${smtp.from:noreply@exoplatform.com}
(4)gatein.email.smtp.host=${smtp.host:localhost}
(5)gatein.email.smtp.port=${smtp.port:25}
(6)gatein.email.smtp.starttls.enable=${smtp.starttls.enable:false}
(7)gatein.email.smtp.auth=${smtp.auth:false}
(8)gatein.email.smtp.username=${smtp.username:}
(9)gatein.email.smtp.password=${smtp.password:}
(10)gatein.email.smtp.socketFactory.port=${smtp.socketFactory.port:}
gatein.email.smtp.socketFactory.class=${smtp.socketFactory.class:}

1

Domain name used to produce absolute URLs in email notifications.

2

Email display in "from" field of outgoing emails.

3

SMTP Server hostname.

4

SMTP Server port.

5

Set to true or false, true if you use the secure (TLS) SMTP.

6

Set to true or false, true to enable the SMTP authentication.

7

Username to send for authentication.

8

Password to send for authentication.

9

Specify the port to connect to when using the specified socket factory.

10

Use this class to create the SMTP sockets.

All those configurations conform to a common format:

configuration.name=${variable:value}

The variable appears here to allow you to set those configurations by exporting relevant environment variables. Refer to Customizing environment variables if you want to set the values via environment variables. Otherwise, just place the values after the colon (:).

If you want to use SMTP gateway over SSL, configure a certificate truststore containing your SMTP server's public certificate. Depending on the key sizes, you may then also need to install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files for your Java Runtime Environment.

See also

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus