[Email Feature] add relay smtp server configuration #1167
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(smtp-relay): add relay smtp server configuration
Types of changes
Thanks for sending a pull request! Please fill in the following content to let us know better about this change.
Please put an
x
in the box that appliesDescription
目前
[email protected]
的寄信流程處於過渡期,目前希望透過*@python.tw
取代[email protected]
來寄信。當中,Google Workspace (
python.tw
) 的架構需要在 server (staging vm + prod vm) 架設 SMTP server 來 route email message 至 google relay server。因此增加了一個 docker service 來達成此目的。Steps to Test This Pull Request
Steps to reproduce the behavior (只適用於 production environment):
前置作業:
Server 端修改
.env
需要新增ALLOWED_SENDER_DOMAINS=python.tw
.env
的EMAIL_URL
至smtp://mailserver:587
(local service 會轉傳,不是直接透過 google smtp 了)docker-compose pull
docker-compose up
Expected behavior
@python.tw
address 當作 sender 發信。