Configuring the SMTP Settings in Keycloak
View content for :
Platform:

Configuring the SMTP Settings in Keycloak

After you have added the certificate to your trust store, configure the SMTP settings in Keycloak.
  1. Retrieve the Keycloak admin password. Extract this from the cluster using the following command:
    kubectl get secrets keycloak-initial-admin -o jsonpath='{.data.password}' | base64 -d && echo
  2. Log in to the Keycloak administration console at
    https://<RESONATE FQDN SERVER>/trifecta/v1/keycloak/admin/
    with the username
    admin
    and the password retrieved in the previous step.
  3. At the top left of the landing page, set the realm to
    trifecta-realm
    .
    Dialog showing setting the realm.
  4. Click the
    Realm Settings
    tab on the left, and then select the
    Email
    tab in the page presented.
    Dialog showing email settings.
  5. Set the following SMTP settings:
    • From
      : Specify the same SMTP account as the one you specified during installation.
    • Host
      : Specify the SMTP hostname. The installation might have already set this.
    • Port
      : Specify the appropriate port. For the default SMTP server, specify 25. If you are using SSL or STARTTLS, specify 465 or 587, respectively.
    If you require authentication, you should probably use SSL or STARTTLS. You must set the
    Username
    field to
    admin
    and
    Password
    field to the password retrieved using keycloak-initial-admin.
  6. Click
    Test Connection
    to verify connectivity. You might need to set the email for the admin account in the master realm. Alternatively, you can navigate to the
    Users
    tab and select your user.
    Dialog to verify connectivity.
  7. Click
    Credentials
    and then
    Credential Reset
    .
    Dialog to reset credentials.
    This sends an email to the specified user to reset their password. You receive an error message if SMTP fails to send.
  8. Check the Keycloak logs for additional details:
    kubectl logs -l app=keycloak