Stephen J. Turnbull a écrit le 02/09/2023 à 08:09 :
Gilles Filippini writes:
I remember now that I had to set up only one network interface for mailman-core because when I add another one to enable internet access then exim4 cannot reach mailman-core anymore:
Sep 1 15:08:09 lists exim[1004]: 2023-09-01 15:08:09 1qc5km-0000G9-2u H=mailman_core.exim4_internal [172.29.0.3] Connection refused
How can I fix that?
Depends on your network topology, where the DNS server, MTA, and Mailman core live on it, and where the network gateway to the public Internet is.
Sure.
The issue was that exim4 could connect to mmailman_core when the latter had only one network interface, but the connection was refused when it had two.
And the cause was that when MM_HOSTNAME is not defined, it is initialized with the result of the command 'hostname -i' which returns as mainy IPs as network interfaces:
172.29.0.3 172.18.0.19
This erroneous value was then used into /etc/mailman.cfg and /etc/exim-mailman.cfg.
The solution is to force MM_HOSTNAME to the wanted IP.
Thanks, _g.