The whitelist does not work if the container is in the host network, as postfix does not allow sending from localhost. This simple change allows localhost to send emails as well.
Motivation and Context
Using the host network does not work.
How Has This Been Tested?
Tested the change locally successful
Types of Changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (adding or updating documentation)
Checklist:
[ ] My change requires a change to the documentation and I have updated the documentation accordingly.
[ ] My change adds a new configuration variable and I have updated the .env.example file accordingly.
And lastly, many thanks for taking your time to help us improve this project !
Description of the change
The whitelist does not work if the container is in the host network, as postfix does not allow sending from localhost. This simple change allows localhost to send emails as well.
Motivation and Context
Using the host network does not work.
How Has This Been Tested?
Tested the change locally successful
Types of Changes
Checklist:
.env.example
file accordingly.And lastly, many thanks for taking your time to help us improve this project !