Has anyone ever been able to use Amazon SES as an SMTP server and pass AWS generated SMTP credentials into the grafana config.ini?
I’ve tried it so many different ways but it just isn’t working for me. I thought it could take a generic SMTP server and with user/pass just start sending alert notifications on a configured alert channel.
Provisioned channel config:
notifiers:
- name: email-channel-1
type: email
uid: emailnotifier1
org_id: 1
is_default: true
send_reminder: false
disable_resolve_message: false
# See `Supported Settings` section for settings supported for each
# alert notification type.
settings:
uploadImage: true
singleEmail: true
addresses: asdf@myrealemailaddress.com;asdf2@otherrealemailaddress.com
config.ini additions:
[smtp]
# If the password contains # or ; you have to wrap it with trippel quotes. Ex “”"#password;"""
enabled = true
host = email-smtp.us-west-2.amazonaws.com:465
# password do not contain semicolon or hash symbol
# does it expect them base64 encoded or something?
user = <got from AWS SMTP username>
password = <got from AWS SMTP password>
;skip_verify = true
from_address = myverifiedemail@mydomain.com
from_name = Grafana
error “failed to send notification to email addresses: ***: gomail: could not send email 1: read tcp 100.1.220.225:35110->52.0.157.14:587: i/o timeout”
Connectivity seems fine. From another pod in the cluster:
I tested a local SMTP server and TLS is functional. I also tested the same connection parameters from another app inside the cluster and AWS SES works properly.
I don’t know why I keep getting i/o error. I see many questions online about gomail and SES failing because of the timeout not being high enough? I don’t see a way to configure the smtp timeout via Grafana config?