Closed glennpierce closed 8 months ago
192.168.80.1
the IP of the Docker host? Typically x.x.x.1
is the IP of the router...telnet 192.168.80.1:8025
, and then tail the Docker logs to see if it connects?
Is your Python script on the same machine as the container? yep
Is
192.168.80.1
the IP of the Docker host? Typicallyx.x.x.1
is the IP of the router...
yes it is the router. The ip of the container is 192.168.80.6
- Can you telnet to that host/port? Like
telnet 192.168.80.1:8025
, and then tail the Docker logs to see if it connects?
I did telnet 192.168.80.1 8025
and I get
Escape character is '^]'. 220 686db07d8b90.localdomain ESMTP Postfix
Actually having just sent a test through telent it did work.
So The python code sending must be at fault so not your problem I think. I wlll close the issue. Thanks
I have a setup like
network carnego is
"Subnet": "192.168.80.0/20", "Gateway": "192.168.80.1
The test email gets sent ok when I deploy but when I try to send from the host say from a python script
like
s = smtplib.SMTP('192.168.80.1', port=8025)
I get
lost connection after CONNECT from localhost[127.0.0.1]
Any idea why ?
Note I get the same error without mynetworks being set