-
Notifications
You must be signed in to change notification settings - Fork 14
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
Can't access container from outside #3
Comments
While I don't use K8s, this looks to me like a network configuration problem. Basically, you need to tell K8s to permit the connection from your source container to the destination container. This error is a networking error, not an application error. |
I am able to do a curl request on port 587 to the relay container. Obviously it breaks, but the container logs it. So by this I assume the container is reachable from other containers in the cluster.
|
The important part is
You could give it like that a spin, to see how it works (without TLS), maybe you can narrow it down. As for |
@tlex Changing the port to 25 worked. Thank you! |
Basically, port 587 assumes TLS (and everything that comes with it: a certificate). For this to work as expected, the variables Now, it would probably make sense to test with exim, how's the behavior if the port is set to 587 but there's no certificate there. Thanks for your feedback, I'll close this now :-) |
Hello, I'm trying to use your image in Kubernetes as a Gmail relay. I'm not being able to connect to the container from outside, from another container.
Form inside the container it is working. I can use python to run a simple script to connect and send a mail the way I intent to.
But from outside I can't connect to the relay.
I think I'm not configuring my environment variables correctly for this case. Can you advise on what variables and values I should use? I'm trying with
RELAY_NETWORKS
and/orRELAY_DOMAINS
but with no success.I can allow all connections because the container is only exposed inside the Kubernetes cluster.
To illustrate:
From inside
From outside
The text was updated successfully, but these errors were encountered: