Enabling the SMTP configuration

The workflow feature of watsonx Orchestrate uses the SMTP configuration to send emails to the users when they are assigned a task.

Enabling the SMTP configuration

Note: Configuring SMTP in your cluster is optional.
To configure SMTP in your cluster, do the following steps:
  1. Export PROJECT_CPD_INST_OPERANDS = 'Your_Operand_Namespace' .
  2. Create an SMTP secret in your cluster.
    oc create secret generic $SMTP_SECRET_NAME -n ${PROJECT_CPD_INST_OPERANDS} \
    --from-literal=SMTP_SENDER_EMAIL="$EMAIL_ADDRESS" \
    --from-literal=SMTP_ADDRESS="$SMTP_ADDRESS" \
    --from-literal=SMTP_PORT="$PORT" \
    --from-literal=SMTP_SSL_ENABLED="$SSL_ENABLED" \
    --from-literal=SMTP_SSL_PROTOCOL="$SSL_PROTOCOL"
    Where:

    Required parameters:

    • SMTP_SENDER_EMAIL is the sender email address.
    • SMTP_ADDRESS is the host address of the SMTP server.
    Optional parameters:
    • SMTP_PORT is the SMTP sever port. By default, it is set to 587.
    • SMTP_SSL_ENABLED is to enable SSL for SMTP communication. By default, it is set to true.
    • SMTP_SSL_PROTOCOL is the SSL protocol for communication. By default, it is set to TLSv1.2.
  3. Run the following CLI command to enable SMTP configuration.
    oc patch watsonxorchestrate wo \
    --namespace=${PROJECT_CPD_INST_OPERANDS} \
    --type=merge \
    --patch='{"spec":{"smtp":{"secretName":"$SMTP_SECRET_NAME"}}}'