-
Notifications
You must be signed in to change notification settings - Fork 3
enhancement: Added the ability to configure a list of domains and only send mail to addresses in those domains #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…y send mail to addresses in those domains
internal/mail/mail.go
Outdated
| func RemoveInvalidRecipients(recipients []server.EmailRecipient, allowedDomains []string) []server.EmailRecipient { | ||
| valid := []server.EmailRecipient{} | ||
| for _, recipient := range recipients { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary newline
davidcheung
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think RESTRICT_EMAIL_TO_DOMAINS might be a little more clear, but with the description i think is good enough
|
That's what I used originally, but I changed it because I found "Restrict" to be a little more ambiguous. Does it mean emails are restricted from going to those domains or restricted to going to anything that's not those domains? |
|
How about |
|
Right now it's |
1 similar comment
|
Right now it's |
|
👍 Yeah i think either way once the user reads the description the behavior will be apparent, |
…y send mail to addresses in those domains (commitdev#21) * enhancement: Added the ability to configure a list of domains and only send mail to addresses in those domains * Added env var docs * Updated helm chart
A comma separated list of domains can now be specified as an env var, and email sending (including to, cc, bcc) will be restricted to only addresses in those domains.