Skip to content
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

Allow setting empty ALLOWED_SENDER_DOMAINS #17

Merged
merged 1 commit into from
Oct 20, 2019

Conversation

kir4h
Copy link
Contributor

@kir4h kir4h commented Oct 20, 2019

This PR allows setting an empty ALLOWED_SENDER_DOMAINS variable. The default behaviour remains the same (empty ALLOWED_SENDER_DOMAINS will throw an error), but it is posible to override this behaviour via a new variable ALLOW_EMPTY_SENDER_DOMAINS.

The use case is being able to set restrictions on the recipient and not on the sender (anyone can send mails but just to a single domain for instance). This can be achieved by extending the image through custom scripts, and it's cleaner if the base image supports a way not to enforce setting a value on it.

@bokysan
Copy link
Owner

bokysan commented Oct 20, 2019

LGTM. Merging.

@bokysan bokysan merged commit 074125f into bokysan:master Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants