# Kan de wijziging van het IP-adres van de host e-mailbezorging beïnvloeden?

**URL:** <https://meta.discourse.org/t/can-the-change-of-the-ip-of-the-host-affect-email-delivery/319709>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [1 augustus 2024 om 20:53 UTC](https://meta.discourse.org/t/can-the-change-of-the-ip-of-the-host-affect-email-delivery/319709 "2024-08-01T20:53:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rrodrigueznt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rrodrigueznt/32/351504_2.png) [@rrodrigueznt](https://meta.discourse.org/u/rrodrigueznt)\
**Post date:** [1 augustus 2024 om 20:53 UTC](https://meta.discourse.org/t/can-the-change-of-the-ip-of-the-host-affect-email-delivery/319709/1 "2024-08-01T20:53:43Z")

</div>

Hi! We have a `Discourse` instance running on an `Ubuntu 22.04.4 LTS` server. Fully updated. It is reachable at [https://forum.igfae.usc.es/](https://forum.igfae.usc.es/). Due to some changes in infrastructure, we need to change the IP address of the server. Until that change, email delivery worked fine: we use an SMTP server as a relay, authorizing the IP of the `Discourse` server. But, after the change, the SMTP server records delivery attempts as coming from IP 10.x.y.z (omitting the actual address to avoid any potential security disclosure).

10.x.y.z replies to ping. I guess it is some piece of communication infrastructure. Also, note that the change of the IP implied a change of class C network.

In the same server, we have other not-containerized applications that are successfully relaying on the same SMTP server. That is why I’m concluding that the behavior could be related with Discourse, with Docker, or with any interaction between both.

`NetworkSettings` for the container read:

```plaintext
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "f80dc06362bb6982d93de5aa0301624b3932744dd4d23a8dea140c33064dec23",
            "SandboxKey": "/var/run/docker/netns/f80dc06362bb",
            "Ports": {
                "443/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "443"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "443"
                    }
                ],
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "80"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "80"
                    }
                ]
            },
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "5d6105ab3bb9d331667c9c1be73eeea8be64a5b85daffa99cb0c711df9cc0dc9",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:21:a3:2c:a4:cf",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "MacAddress": "02:21:a3:2c:a4:cf",
                    "DriverOpts": null,
                    "NetworkID": "bbfd3d524dc976e2534f3f6a9df98f49f1ee4e018d9e32a144f05b037d6df1fc",
                    "EndpointID": "5d6105ab3bb9d331667c9c1be73eeea8be64a5b85daffa99cb0c711df9cc0dc9",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DNSNames": null
                }
            }
        }

```

Does it make sense for you? Do you know why the change of the IP leads to this behavior? Please, how could it be solved?

Thank you very much!

---

_[View the full topic](https://meta.discourse.org/t/can-the-change-of-the-ip-of-the-host-affect-email-delivery/319709)._
