feat: configurable hosts for listen and reinject#84
Open
DarkCat09 wants to merge 6 commits intochatmail:mainfrom
Open
feat: configurable hosts for listen and reinject#84DarkCat09 wants to merge 6 commits intochatmail:mainfrom
DarkCat09 wants to merge 6 commits intochatmail:mainfrom
Conversation
j-g00da
reviewed
Mar 5, 2026
j-g00da
approved these changes
Mar 6, 2026
Collaborator
j-g00da
left a comment
There was a problem hiding this comment.
Looks good but we are yet to decide if we want to support this. Approved, but not merging yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, filtermail always listens on localhost and assumes that postfix is always on localhost. This can be different in some setups, e.g. when filtermail and postfix are in separate docker containers (sharing the same docker network).
This PR adds configurable listen IP and postfix host via
LISTEN_IPandPOSTFIX_HOSTenv vars.Postfix host is resolved with
ToSocketAddrsso we can use an internal docker container host (e.g. service name when run in a docker compose) instead of finding out its IP address.I'm absolutely okay with maintaining a soft-fork for my "chatmail in docker" project (work in progress), but i thought it could be useful for the upstream as well. Feel free to provide any suggestions regarding the code.