An alert configuration file must be created to specify where your SMTP server resides. Here is the template of the alertconfig.yaml file:
location:
email:
receivers:
- receiver@example.com
sender: sender@example.com
server:
host: smtp.example.com
port: 25
username:
password:
Modify this file by:
-
Updating the
hostfield to reflect the host of the SMTP server. -
Updating the
portto reflect the port that your SMTP server is listening on. This port must be open and available. -
Updating
sendersandreceiversdetails to reflect where the email will be sent to and received from. -
Updating the
usernameandpasswordif needed.
The following example file shows a configuration of an SMTP server running on an EC2 instance, sending an email to a singlestore.user Gmail user. You may add multiple recipients to the receiver list.
location:
email:
receivers:
- singlestore.user@gmail.com
sender: ec2-user@ip-172-31-77-34.ec2.internal
server:
host: ip-172-30-77-34.ec2.internal
port: 25
username:
password: