A simple docker service for JUST sending emails, using postfix
-
Write your
.env
DOMAIN=kys.org MAIL_HOST=very_cool_namespace.kys.org
-
Generate DKIM keys:
./scripts/gen-dkim
in
data
directory should have DKIM DNS value in txt ( pls take exactly in( ... )
. you can keep quotes but some dns service may deny endline ) you should also have SPF and DMARC value to avoid being spam flagged. -
Start stack('nt):
docker-compose up -d --build
-
Add a mail address:
python3 manage.py add --email [email protected] --password "your_password"
To send a test email, use the following command:
python3 manage.py test --email [email protected] --password "your_password" --recipient [email protected]
Using mail-tester.com to test the final result