Skip to content
Charlie Martin edited this page Oct 24, 2017 · 1 revision

CHORDS Mail Transfer Agent --EDITING IN PROGRESS--

We have included dockerhub:todz/postfix as the chords_mta container.

  • MY_NETWORKS = 172.0.0.0/8. Thus chords_mta will allow all other docker containers to connect to it without authentication.
  • However, gmail is very picky about the IP originating address, and will reject messages addressed to gmail.com. EC2 elastic IPs will mostly be rejected. I found one IP out of five that gmail allows.
  • The rejection errors are found in chords_mta/var/log/syslog, and look like:

Using smtp with an existing email account

Grafana

Grafana alerting will work either when using chords_mta as the mail transfer agent, or going directly to an email service such as gmail. For the latter, a mail server, user and password must be provided. These are included in the smtp settings for Grafana, defined in docker-compose.yml (well, actually in .env). Of course, this should NOT be a personal email account, but rather one that is only used for CHORDS:

GF_SMTP_ENABLED=true
GF_FROM_ADDRESS=xyz@gmail.com
GF_FROM_NAME=CHORDS Grafana
GF_SMTP_HOST=smtp.gmail.com:465
GF_SMTP_USER=xyz@gmail.com
GF_SMTP_PASSWORD=*********
Clone this wiki locally