this post was submitted on 13 Jan 2023
4 points (100.0% liked)

Asklemmy

43811 readers
889 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

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?

all 4 comments
sorted by: hot top controversial new old
[–] Helix@feddit.de 2 points 2 years ago (2 children)

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.schuerz.at 1 points 2 years ago

telnet is not installed in the container. I tried you command... but error. ls /dev/ lists no tcp directory...

[–] jakob@lemmy.schuerz.at 1 points 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