StackState can send an event notification by email whenever the health state of an entity or view changes. To enable email event notifications, the StackState configuration must include details of the SMTP server to use.
Configure an SMTP server to use for email event notifications
Kubernetes
Linux
1.
Update the StackState configuration in values.yaml to include SMTP server details:
1
stackstate:
2
components:
3
viewHealth:
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.
Restart StackState to apply the configuration changes.
3.
Use the Manage event handlers panel in the StackState UI to add an email event handler to a view.
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.
Restart StackState to apply the configuration changes.
3.
Use the Manage Event Handlers in the StackState UI to add an email event handler to a view.