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:- Export
PROJECT_CPD_INST_OPERANDS= 'Your_Operand_Namespace' . - Create an SMTP secret in your
cluster.
Where: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"Required parameters:
SMTP_SENDER_EMAILis the sender email address.SMTP_ADDRESSis the host address of the SMTP server.
SMTP_PORTis the SMTP sever port. By default, it is set to587.SMTP_SSL_ENABLEDis to enable SSL for SMTP communication. By default, it is set totrue.- SMTP_SSL_PROTOCOL is the SSL protocol for communication. By default, it is set to
TLSv1.2.
- 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"}}}'