Working mailrelay config

[ci skip]
This commit is contained in:
3wc 2020-09-28 22:31:13 +02:00
parent 76ea9a1408
commit a7dea0a00a
2 changed files with 22 additions and 0 deletions

View File

@ -5,3 +5,10 @@ export LETS_ENCRYPT_ENV=production
export DB_ROOT_PASSWORD_VERSION=v1
export DB_PASSWORD_VERSION=v1
export ADMIN_PASSWORD_VERSION=v1
## SMTP settings
#export COMPOSE_FILE="compose.yml:compose.mailrelay.yml"
#export SMTP_HOST="postfix_relay_app"
## Emails are sent from $MAIL_FROM@$MAIL_DOMAIN
#export MAIL_DOMAIN=b0x.f0x.link
#export MAIL_FROM_ADDRESS=nextcloud

15
compose.mailrelay.yml Normal file
View File

@ -0,0 +1,15 @@
version: "3.8"
services:
app:
environment:
- SMTP_HOST
- MAIL_FROM_ADDRESS
- MAIL_DOMAIN
- SMTP_AUTHTYPE=PLAIN
networks:
- mail
networks:
mail:
external: true