docker icon indicating copy to clipboard operation
docker copied to clipboard

[Errno 101] Network is unreachable - problem with SMTP when running local instance

Open jaroslavhuss opened this issue 10 months ago • 2 comments

Dear team,

I am simply trying to connect my locally running instance of odoo with publicly available SMTP. I am 100% sure credentials are all good:

  1. I am using normal login with username
  2. Encryption is SSL/TLS - port 465
  3. smtp server = smtp.seznam.cz
  4. valid email
  5. valid password

Image

Anyway - when I try to connect to this SMPT (test connection) I will get [Errno 101] Network is unreachable. I thought docker blocks port 465 so I allowed it but this error still persists... Any ideas?

Thank you!

jaroslavhuss avatar Mar 18 '25 14:03 jaroslavhuss

Does your container resolve dns? Can you ping the smtp hostname? If not, can you ping an ip? You might check howt the resolv.conf in your container looks like. Docker should automagically mount the system resolv.conf into your container

hertell avatar Mar 28 '25 19:03 hertell

Any progress in testing the connection from your container? If you got it working, then please close this ticket.

hertell avatar Apr 22 '25 14:04 hertell