-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paulius Juzenas
committed
Jan 15, 2025
1 parent
ba06fea
commit 007fff5
Showing
8 changed files
with
70 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
EMAIL_HOST = 'postfix' | ||
|
||
EMAIL_HOST_USER = '' | ||
|
||
EMAIL_HOST_PASSWORD = '' | ||
|
||
# Normally using port 25 is unsafe as it cannot be encrypted. | ||
# However, all the traffic to port 25 will remain inside docker. | ||
# After the traffic leaves docker through the mailserver, it will be on port 587. | ||
EMAIL_PORT = '25' | ||
|
||
EMAIL_USE_TLS = False | ||
|
||
EMAIL_USE_SSL = False | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This is only included as an example. | ||
# You should create your own .env file with real values for prod! | ||
|
||
SMTP_SERVER=smtp.some-provier.com | ||
SMTP_PORT=587 | ||
SMTP_USERNAME=the username for the smtp server | ||
SMTP_PASSWORD=a very secure password | ||
SERVER_HOSTNAME=nettverksdagene.no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM juanluisbaptiste/postfix:latest | ||
|
||
# Add a delay between every email sent | ||
# Needed to avoid hitting the rate limit | ||
# A bit hacky but it works :) | ||
RUN echo -e "\ndefault_destination_rate_delay = 3s\n" >> /etc/postfix/main.cf |