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

SMTP_NETWORKS doesn't work unless container is run in host mode? #106

Open
adamshand opened this issue Dec 5, 2023 · 0 comments
Open

SMTP_NETWORKS doesn't work unless container is run in host mode? #106

adamshand opened this issue Dec 5, 2023 · 0 comments

Comments

@adamshand
Copy link

adamshand commented Dec 5, 2023

Hey thanks for this image, I've been using it a lot recently! Much appreciated. :-)

Perhaps I'm missing something, but I believe that SMTP_NETWORKS doesn't work as currently described.

Unless the container is running in host mode, Postfix sees all requests as coming from the Docker host.

For example, when I connect and send email from a public IP, Postfix sees the connection as coming from 10.0.0.2, eg.

Dec 05 23:51:26 postfix postfix/smtpd[103]: connect from unknown[10.0.0.2]
Dec 05 23:51:36 postfix postfix/smtpd[103]: ECE5A38BD43: client=unknown[10.0.0.2]
Dec 05 23:51:44 postfix postfix/cleanup[107]: ECE5A38BD43: warning: header Subject: blasdhkf adslkfjads lfka sjdfklasf from unknown[10.0.0.2]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<foo>

This means that anyone who exposes port 25 to the world is creating an open relay.

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

No branches or pull requests

1 participant