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:
    1
    stackstate:
    2
    components:
    3
    server:
    4
    config: |
    5
    stackstate{
    6
    email {
    7
    properties {
    8
    "mail.smtp.auth" = "true" # "true" when user/pass provided
    9
    "mail.smtp.starttls.enable" = "false" # use "true" for TLS
    10
    }
    11
    sender = "<EMAIL_SENDER_ADDRESS>"
    12
    server {
    13
    protocol = "smtp"
    14
    host = "<SMTP_SERVER_HOST>"
    15
    port = 25
    16
    username = "XXX" # optional
    17
    password = "XXX" # optional
    18
    }
    19
    }
    20
    }
    Copied!
  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:
    1
    stackstate{
    2
    ...
    3
    4
    email {
    5
    properties {
    6
    "mail.smtp.auth" = "true" # "true" when user/pass provided
    7
    "mail.smtp.starttls.enable" = "false" # use "true" for TLS
    8
    }
    9
    sender = "<EMAIL_SENDER_ADDRESS>"
    10
    server {
    11
    protocol = "smtp"
    12
    host = "<SMTP_SERVER_HOST>"
    13
    port = 25
    14
    username = "XXX" # optional
    15
    password = "XXX" # optional
    16
    }
    17
    }
    18
    19
    ...
    20
    }
    Copied!
  2. 2.
    Restart StackState to apply the configuration changes.
  3. 3.
    Add an email event handler.
Last modified 5mo ago
Copy link