Changes for page Configuring a VPS machine from scratch
Last modified by Alexandru Pentilescu on 2024/07/22 21:37
From version 5.1
edited by Alexandru Pentilescu
on 2022/11/13 22:14
on 2022/11/13 22:14
Change comment:
There is no comment for this version
To version 6.1
edited by Alexandru Pentilescu
on 2022/11/13 22:21
on 2022/11/13 22:21
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -121,4 +121,15 @@ 121 121 122 122 Docker is almost an irreplaceable piece of software that will be critical to your whole infrastructure. Docker needs to be installed on the system properly. In order to do so, please follow the guide [[here>>https://docs.docker.com/engine/install/ubuntu/]] 123 123 124 += Force postfix to bind to non-local IP addresses on start = 125 + 126 +If we plan on using our SMPT server to relay emails coming from our docker containers, we will have to force postfix to bind to an IP address that's different from localhost. This needs to be done because, if we configure postfix to only bind to localhost, it will effectively be unreachable to our docker containers and they will not be able to use it as a relay. 127 +In order to allow for postfix to bind to non-local addresses, we have to add the following configuration file /etc/sysctl.d/80-network.conf with the following contents: 128 + 129 +{{code language="ini"}} 130 +net.ipv4.ip_nonlocal_bind = 1 131 +net.ipv6.ip_nonlocal_bind = 1 132 +{{/code}} 133 + 134 +Honestly, the "ipv6" line is unnecessary for our purposes, but I'm adding it anyway. After this file is added, after reboot, postfix will be able to bind itself to nonlocal addresses successfully. 124 124 )))