Mailman and Exim 4.94.2 (Debian Bullseye)
Hi.
I moved Mailman instance to a machine running Debian Bullseye last week.
Ran into an issue with the Exim transport from this doc:
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht...
The issue I ran into was that Exim wasn't able to resolve localhost in order to connect to the LMTP listener.
I changed VPS provider at the same time (moved from Bytemark to Gandi) so not sure if they were doing anything different with DNS, but by default Exim doesn't use standard libraries to lookup hosts:
https://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_dnslookup_r...
I solved the issue by using the following configuration on the Mailman router:
# /etc/exim4/conf.d/transport/55_mm3_transport mailman3_transport: driver = smtp protocol = lmtp allow_localhost gethostbyname hosts = localhost port = MM3_LMTP_PORT rcpt_include_affixes = true
I haven't defined the lmtp settings at all in mailman.cfg meaning they are using the default settings of 127.0.0.1:8024.
Is this the best modification to make to the Exim config or should I go an alternative route?
Thanks. Andrew.
Andrew Hodgson writes:
The issue I ran into was that Exim wasn't able to resolve localhost in order to connect to the LMTP listener.
That's odd.
I changed VPS provider at the same time (moved from Bytemark to Gandi) so not sure if they were doing anything different with DNS,
Sure looks like it. My home router resolves localhost to 127.0.0.1 as expected. So does my employer's.
I solved the issue by using the following configuration on the Mailman router:
Using the gethostbyname option is one way to solve the problem. Since you should only be able to reach the Mailman 3 transport via the Mailman 3 router (in Exim), this shouldn't cause whatever problem made Exim decide to use only DNS and not gethostbyname.
An alternative would be to specify the LMTP host as 127.0.0.1 in the hosts list. This is more precise, but I doubt it has other advantages over "gethostbyname / hosts = localhost".
Steve
participants (2)
-
Andrew Hodgson
-
Stephen J. Turnbull