Table of Contents
This chapter shows you how to configure the outbound email service, so that you can send email through OpenIDM either by script or through the REST API.
Procedure 17.1. To Set Up Outbound Email
The outbound email service relies on a configuration object to identify the email account used to send messages.
-
Shut down OpenIDM.
-
Copy the sample configuration to
openidm/conf.$ cd /path/to/openidm/ $ cp samples/misc/external.email.json conf/
-
Edit
external.email.jsonto reflect the account used to send messages.{ "host" : "smtp.example.com", "port" : "25", "username" : "openidm", "password" : "secret12", "mail.smtp.auth" : "true", "mail.smtp.starttls.enable" : "true" }OpenIDM encrypts the password you provide.
Follow these hints when editing the configuration.
"host"-
SMTP server host name or IP address. This can be
"localhost"if the server is on the same system as OpenIDM. "port"-
SMTP server port number such as 25, or 587
"username"-
Mail account user name needed when
"mail.smtp.auth" : "true" "password"-
Mail account user password needed when
"mail.smtp.auth" : "true" "mail.smtp.auth"-
If
"true", use SMTP authentication "mail.smtp.starttls.enable"-
If
"true", use TLS "from"-
Optional default
From:address
-
Start up OpenIDM.
-
Check that the email service is active.
-> scr list ... [ 6] [active ] org.forgerock.openidm.external.email ...

