Add mail functionality into the development branch (#12)

* Added basic code for sending emails
+ Added tests for emails
+ Modified README.md to reflect changes to .env file

* [create-pull-request] push formatted files

* Added dkim

* Fixed mistake in docker-compose.yml

Co-authored-by: Stefan <[email protected]>
This commit is contained in:
Stephan
2021-11-03 11:01:37 +01:00
committed by GitHub
co-authored by Stefan
parent 5c0bc20bfd
commit d596670f6b
8 changed files with 2254 additions and 65 deletions
+22 -20
View File
@@ -1,22 +1,24 @@
version: "3"
services:
mail:
image: boky/postfix
restart: always
environment:
- ALLOWED_SENDER_DOMAINS=mail.${DOMAIN}
ports:
- "587:587"
container_name: "postfix"
postgres:
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
ports:
- 5432:5432
container_name: "postgres"
#server:
# build: .
# restart: always
# container_name: "server"
mail:
image: boky/postfix
restart: always
environment:
- ALLOWED_SENDER_DOMAINS=mail.${DOMAIN}
ports:
- "587:587"
container_name: "postfix"
volumes:
- ./host/keys/:/etc/opendkim/keys
postgres:
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
ports:
- 5432:5432
container_name: "postgres"
#server:
# build: .
# restart: always
# container_name: "server"