An alert configuration file must be created to specify where your SMTP server resides. Here is the template of the alertconfig.yaml
file:
email:
receivers:
- receiver@example.com
sender: sender@example.com
server:
host: smtp.example.com
port: 25
username:
password:
Modify this file by:
-
Updating the
host
field to reflect the host of the SMTP server. -
Updating the
port
to reflect the port that your SMTP server is listening on. This port must be open and available. -
Updating
senders
andreceivers
details to reflect where the email will be sent to and received from. -
Updating the
username
andpassword
if 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.
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: