1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 02:14:48 +00:00

Use msmtpd SMTP relay

This commit is contained in:
CrazyMax 2020-05-18 18:38:04 +02:00
parent 155262e0d5
commit 721ce2815c
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
10 changed files with 60 additions and 51 deletions

View file

@ -1,11 +1,7 @@
MYSQL_DATABASE=librenms
MYSQL_USER=librenms
MYSQL_PASSWORD=asupersecretpassword
SMTP_SERVER=smtp.example.com
SMTP_USERNAME=smtp@example.com
SMTP_PASSWORD=
TZ=Europe/Paris
PUID=1000
PGID=1000
MYSQL_DATABASE=librenms
MYSQL_USER=librenms
MYSQL_PASSWORD=asupersecretpassword

View file

@ -83,14 +83,11 @@ services:
- "FLUSH_DEAD_DATA_INTERVAL=3600"
restart: always
smtp:
image: juanluisbaptiste/postfix
container_name: librenms_smtp
environment:
- "SERVER_HOSTNAME=librenms.example.com"
- "SMTP_SERVER=${SMTP_SERVER}"
- "SMTP_USERNAME=${SMTP_USERNAME}"
- "SMTP_PASSWORD=${SMTP_PASSWORD}"
msmtpd:
image: crazymax/msmtpd:latest
container_name: librenms_msmtpd
env_file:
- "./msmtpd.env"
restart: always
librenms:

View file

@ -0,0 +1,10 @@
# https://github.com/crazy-max/docker-msmtpd
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_TLS=on
SMTP_STARTTLS=on
SMTP_TLS_CHECKCERT=on
SMTP_AUTH=on
SMTP_USER=foo
SMTP_PASSWORD=bar
SMTP_FROM=foo@gmail.com