Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Move SMTP auth to the config file #308
Implements enhancement proposed in #306.
Edit: Environment variables are no longer supported
Documentation additionally updated to reflect the fact that the config file is the preferred place to store creds.
Rebased to a single commit.
I updated the RegEx to be more loose. I agree that probably we'd always want to obscure anything matching these terms.
I guess it would be something like this?
global: # The smarthost and SMTP sender used for mail notifications. smtp_smarthost: 'localhost:25' smtp_from: 'email@example.com' smtp_auth: - username: 'alertmanager' password: 'password'
I didn't address it because your comment was a question, but if you'd prefer that syntax I can.
Not sure what to say. I just tested with Mailgun and that's working too. Not sure how there could be something different with SES. You appear to be using simple. I've used that as well for both Mailgun and Mandrill. It should function no differently than it did with environment variables.