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
add reject from origin domain feature #375
Conversation
Signed-off-by: Cyril Dupont <cyd@9bis.com>
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.
This needs test coverage. I'd suggest cloning the TestReadyStateInvalidCommands
func in handler_test.go and modifying it to do so.
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.
Looks good overall. But the tests no longer compile. If you are on Linux or similar, you can run the entire suite by just typing make
Let me know if there is anything I can do to help with this one, seems like we are pretty close. |
I'm sorry for not answering. I'm on summer hollydays. I'll be back at work next week. |
I've tryed to fix the issue with tests compilation (in file |
It looks like you did fix the compilation. Go doesn't run tests when you compile, but you can run the smtp tests with
looks like we are getting an unexpected SMTP response code
|
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.
Looks great overall, just a couple small tweaks
Signed-off-by: Cyril Dupont <cyd@9bis.com>
Signed-off-by: Cyril Dupont <cyd@9bis.com>
Thank you! |
Add a new feature to be able to reject email from specific domains.
The list of domains to reject is defined in a new environment variable
INBUCKET_SMTP_REJECTORIGINDOMAINS
.This variable is a coma separated strings list (like
INBUCKET_SMTP_ACCEPTDOMAINS
,INBUCKET_SMTP_REJECTDOMAINS
, ...).Signed-off-by: Cyril Dupont cyd@9bis.com