feat: configure SMTP email notifications across all services
Added comprehensive email configuration to enable notifications for password resets, user invitations, system alerts, and backup failures. **Services configured:** - **Vaultwarden** (vault/compose.yaml): - SMTP settings for password resets, 2FA, emergency access emails - Uses IONOS SMTP with force_tls security - Sender: hi@pivoine.art - **Linkwarden** (links/compose.yaml): - Email server configuration for user invitations - Password reset functionality via email - Uses smtp:// connection string format - **n8n** (n8n/compose.yaml): - SMTP mode enabled for workflow notifications - User invitation emails - Password reset support - SSL-secured connection - **Netdata** (netdata/compose.yaml, health_alarm_notify.conf, msmtprc): - Health alarm notifications via email - MSMTP configuration for sending alerts - Notifications sent to valknar@pivoine.art - Alerts for system issues, resource exhaustion, service failures **Common SMTP settings** (from .env): - Provider: IONOS (smtp.ionos.de:465) - From address: hi@pivoine.art - Transport: SMTP with TLS/SSL - Admin email: valknar@pivoine.art **Backrest notifications:** - Configured via web UI at restic.pivoine.art - Supports webhooks to Gotify for push notifications - Email notifications can be added through UI settings All services now have proper email notification capabilities for improved monitoring, user management, and security features. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,8 @@ services:
|
|||||||
NEXTAUTH_URL: https://${LINKS_TRAEFIK_HOST}
|
NEXTAUTH_URL: https://${LINKS_TRAEFIK_HOST}
|
||||||
MEILI_ADDR: http://linkwarden_meilisearch:7700
|
MEILI_ADDR: http://linkwarden_meilisearch:7700
|
||||||
MEILI_MASTER_KEY: ${LINKS_MEILI_MASTER_KEY}
|
MEILI_MASTER_KEY: ${LINKS_MEILI_MASTER_KEY}
|
||||||
|
EMAIL_FROM: ${EMAIL_FROM}
|
||||||
|
EMAIL_SERVER: smtp://${EMAIL_SMTP_USER}:${EMAIL_SMTP_PASSWORD}@${EMAIL_SMTP_HOST}:${EMAIL_SMTP_PORT}
|
||||||
volumes:
|
volumes:
|
||||||
- linkwarden_data:/data/data
|
- linkwarden_data:/data/data
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -23,6 +23,13 @@ services:
|
|||||||
N8N_PORT: 5678
|
N8N_PORT: 5678
|
||||||
N8N_PROTOCOL: https
|
N8N_PROTOCOL: https
|
||||||
WEBHOOK_URL: https://${N8N_TRAEFIK_HOST}/
|
WEBHOOK_URL: https://${N8N_TRAEFIK_HOST}/
|
||||||
|
N8N_EMAIL_MODE: smtp
|
||||||
|
N8N_SMTP_HOST: ${EMAIL_SMTP_HOST}
|
||||||
|
N8N_SMTP_PORT: ${EMAIL_SMTP_PORT}
|
||||||
|
N8N_SMTP_USER: ${EMAIL_SMTP_USER}
|
||||||
|
N8N_SMTP_PASS: ${EMAIL_SMTP_PASSWORD}
|
||||||
|
N8N_SMTP_SENDER: ${EMAIL_FROM}
|
||||||
|
N8N_SMTP_SSL: "true"
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ services:
|
|||||||
- netdata_cache:/var/cache/netdata
|
- netdata_cache:/var/cache/netdata
|
||||||
- ./go.d/postgres.conf:/etc/netdata/go.d/postgres.conf:ro
|
- ./go.d/postgres.conf:/etc/netdata/go.d/postgres.conf:ro
|
||||||
- ./go.d/filecheck.conf:/etc/netdata/go.d/filecheck.conf:ro
|
- ./go.d/filecheck.conf:/etc/netdata/go.d/filecheck.conf:ro
|
||||||
|
- ./health_alarm_notify.conf:/etc/netdata/health_alarm_notify.conf:ro
|
||||||
|
- ./msmtprc:/etc/msmtprc:ro
|
||||||
- /mnt/hidrive/users/valknar/Backup:/mnt/hidrive/users/valknar/Backup:ro
|
- /mnt/hidrive/users/valknar/Backup:/mnt/hidrive/users/valknar/Backup:ro
|
||||||
- /etc/passwd:/host/etc/passwd:ro
|
- /etc/passwd:/host/etc/passwd:ro
|
||||||
- /etc/group:/host/etc/group:ro
|
- /etc/group:/host/etc/group:ro
|
||||||
|
|||||||
26
netdata/health_alarm_notify.conf
Normal file
26
netdata/health_alarm_notify.conf
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Netdata health alarm notification configuration
|
||||||
|
# This file configures where to send alarm notifications
|
||||||
|
|
||||||
|
# Enable/disable sending email notifications
|
||||||
|
SEND_EMAIL="YES"
|
||||||
|
|
||||||
|
# Recipient email address for all alarms
|
||||||
|
DEFAULT_RECIPIENT_EMAIL="${ADMIN_EMAIL}"
|
||||||
|
|
||||||
|
# Email sender address
|
||||||
|
EMAIL_SENDER="${EMAIL_FROM}"
|
||||||
|
|
||||||
|
# SMTP configuration
|
||||||
|
SENDMAIL=""
|
||||||
|
EMAIL_SENDER="${EMAIL_FROM}"
|
||||||
|
|
||||||
|
# Custom send email command using msmtp
|
||||||
|
EMAIL_COMMAND="msmtp -t"
|
||||||
|
|
||||||
|
# Enable specific notification types
|
||||||
|
role_recipients_email[sysadmin]="${ADMIN_EMAIL}"
|
||||||
|
role_recipients_email[domainadmin]="${ADMIN_EMAIL}"
|
||||||
|
role_recipients_email[dba]="${ADMIN_EMAIL}"
|
||||||
|
role_recipients_email[webmaster]="${ADMIN_EMAIL}"
|
||||||
|
role_recipients_email[proxyadmin]="${ADMIN_EMAIL}"
|
||||||
|
role_recipients_email[sitemgr]="${ADMIN_EMAIL}"
|
||||||
20
netdata/msmtprc
Normal file
20
netdata/msmtprc
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# MSMTP configuration for Netdata email alerts
|
||||||
|
|
||||||
|
# Set default values for all accounts
|
||||||
|
defaults
|
||||||
|
auth on
|
||||||
|
tls on
|
||||||
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||||
|
logfile /var/log/msmtp.log
|
||||||
|
|
||||||
|
# IONOS SMTP account
|
||||||
|
account ionos
|
||||||
|
host smtp.ionos.de
|
||||||
|
port 465
|
||||||
|
tls_starttls off
|
||||||
|
from hi@pivoine.art
|
||||||
|
user hi@pivoine.art
|
||||||
|
password jaquoment
|
||||||
|
|
||||||
|
# Set default account
|
||||||
|
account default : ionos
|
||||||
@@ -12,6 +12,13 @@ services:
|
|||||||
SIGNUPS_ALLOWED: ${VAULT_SIGNUPS_ALLOWED:-false}
|
SIGNUPS_ALLOWED: ${VAULT_SIGNUPS_ALLOWED:-false}
|
||||||
INVITATIONS_ALLOWED: ${VAULT_INVITATIONS_ALLOWED:-true}
|
INVITATIONS_ALLOWED: ${VAULT_INVITATIONS_ALLOWED:-true}
|
||||||
SHOW_PASSWORD_HINT: ${VAULT_SHOW_PASSWORD_HINT:-false}
|
SHOW_PASSWORD_HINT: ${VAULT_SHOW_PASSWORD_HINT:-false}
|
||||||
|
SMTP_HOST: ${EMAIL_SMTP_HOST}
|
||||||
|
SMTP_FROM: ${EMAIL_FROM}
|
||||||
|
SMTP_FROM_NAME: Vaultwarden
|
||||||
|
SMTP_SECURITY: force_tls
|
||||||
|
SMTP_PORT: ${EMAIL_SMTP_PORT}
|
||||||
|
SMTP_USERNAME: ${EMAIL_SMTP_USER}
|
||||||
|
SMTP_PASSWORD: ${EMAIL_SMTP_PASSWORD}
|
||||||
networks:
|
networks:
|
||||||
- compose_network
|
- compose_network
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
Reference in New Issue
Block a user