add reject from origin domain feature#375
add reject from origin domain feature#375jhillyerd merged 3 commits intoinbucket:mainfrom cyd01:main
Conversation
Signed-off-by: Cyril Dupont <[email protected]>
jhillyerd
left a comment
There was a problem hiding this comment.
This needs test coverage. I'd suggest cloning the TestReadyStateInvalidCommands func in handler_test.go and modifying it to do so.
jhillyerd
left a comment
There was a problem hiding this comment.
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 |
jhillyerd
left a comment
There was a problem hiding this comment.
Looks great overall, just a couple small tweaks
Signed-off-by: Cyril Dupont <[email protected]>
Signed-off-by: Cyril Dupont <[email protected]>
|
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 [email protected]