Links
Comment on page

Configure email alerts

This page describes StackState version 4.1.
The StackState 4.1 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.1 version range to upgrade to a more recent release.
To receive email alerts for changes in health state, the StackState configuration must include SMTP server details.
Kubernetes
Linux
  1. 1.
    Update the StackState configuration in values.yaml to include SMTP server details:
    stackstate:
    components:
    server:
    config: |
    stackstate{
    email {
    properties {
    "mail.smtp.auth" = "true" # "true" when user/pass provided
    "mail.smtp.starttls.enable" = "false" # use "true" for TLS
    }
    sender = "<EMAIL_SENDER_ADDRESS>"
    server {
    protocol = "smtp"
    host = "<SMTP_SERVER_HOST>"
    port = 25
    username = "XXX" # optional
    password = "XXX" # optional
    }
    }
    }
  2. 2.
    Restart StackState to apply the configuration changes.
  3. 3.
    Add an email event handler.
  1. 1.
    Update the StackState configuration file application_stackstate.conf to include SMTP server details:
    stackstate{
    ...
    email {
    properties {
    "mail.smtp.auth" = "true" # "true" when user/pass provided
    "mail.smtp.starttls.enable" = "false" # use "true" for TLS
    }
    sender = "<EMAIL_SENDER_ADDRESS>"
    server {
    protocol = "smtp"
    host = "<SMTP_SERVER_HOST>"
    port = 25
    username = "XXX" # optional
    password = "XXX" # optional
    }
    }
    ...
    }
  2. 2.
    Restart StackState to apply the configuration changes.
  3. 3.
    Add an email event handler.