I have a mailserver running on the Host, where lemmy is installed.

Since a time, i didn’t know when, i can’t send emails from lemmy anymore.

Connection refused.

It is an exim4 configured as satellite listening on localhost:25.

I configured exim to allow also connections from 172.17.0.0/16 and listen on 172.17.0.1 too, which is the docker-bridge ip.

Are there any ideas, how to configure docker or the docker-compose.yml?

  • Helix 🧬@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    You usually have to be in the right routing table or network namespace for this to work. You can get a shell in the container and try to open a telnet connection if that’s installed. Else you can cat < /dev/tcp/127.0.0.1/25

    • Jakob :lemmy:@lemmy.schuerz.atOP
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      i did this IN the container named lemmy.

      # ip a
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
          inet 127.0.0.1/8 scope host lo
             valid_lft forever preferred_lft forever
      158: eth1@if159: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP 
          link/ether 02:42:ac:1d:00:04 brd ff:ff:ff:ff:ff:ff
          inet 172.29.0.4/16 brd 172.29.255.255 scope global eth1
             valid_lft forever preferred_lft forever
      160: eth0@if161: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP 
          link/ether 02:42:ac:1e:00:03 brd ff:ff:ff:ff:ff:ff
          inet 172.30.0.3/16 brd 172.30.255.255 scope global eth0
             valid_lft forever preferred_lft forever