exim4 + mailman3 lmtp failure
Hello,
I tried to setup exim4 + mailman3 but it seems to stuck at lmtp delivery of mailman3. Could you give me a hint, to detect the reason of failure ?
greetings Thomas
---- returned message --- This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
seebruecke@listen.td3.eu all hosts for 'listen.td3.eu' have been failing for a long time (and retry time not reached)
Reporting-MTA: dns; detroit.drillich.net
Action: failed Final-Recipient: rfc822;seebruecke@listen.td3.eu Status: 5.0.0
exim -bv -d+all seebruecke@listen.td3.eu ...
19:45:02.715 32200 listen.td3.eu in "+mm_domains"? yes (matched "+mm_domains") 19:45:02.715 32200 checking require_files 19:45:02.715 32200 ┌considering: /var/lib/mailman3//lists/${local_part}.${domain} 19:45:02.715 32200 ├──expanding: /var/lib/mailman3//lists/${local_part}.${domain} 19:45:02.715 32200 └─────result: /var/lib/mailman3//lists/seebruecke.listen.td3.eu 19:45:02.715 32200 file check: /var/lib/mailman3//lists/${local_part}.${domain} 19:45:02.715 32200 expanded file: /var/lib/mailman3//lists/seebruecke.listen.td3.eu 19:45:02.715 32200 stat() yielded 0 19:45:02.715 32200 calling mailman3_router router 19:45:02.715 32200 mailman3_router router called for seebruecke@listen.td3.eu 19:45:02.715 32200 domain = listen.td3.eu 19:45:02.715 32200 set transport mailman3_transport 19:45:02.715 32200 queued for mailman3_transport transport: local_part = seebruecke 19:45:02.715 32200 domain = listen.td3.eu 19:45:02.715 32200 errors_to=NULL 19:45:02.715 32200 domain_data=NULL localpart_data=NULL 19:45:02.715 32200 routed by mailman3_router router 19:45:02.715 32200 envelope to: seebruecke@listen.td3.eu 19:45:02.715 32200 transport: mailman3_transport seebruecke@listen.td3.eu router = mailman3_router, transport = mailman3_transport
# /etc/exim4/conf.d/transport/55_mm3_transport mailman3_transport: driver = smtp protocol = lmtp allow_localhost hosts = localhost port = MM3_LMTP_PORT rcpt_include_affixes = true
-- mit freundlichem Gruss -- regards
Thomas Drillich Heugasse 4 / D-55116 Mainz / Germany fon +49-6131-570-2621 mobil +49-162-469-5875
On 5/6/20 10:54 AM, Thomas Drillich wrote:
Hello,
I tried to setup exim4 + mailman3 but it seems to stuck at lmtp delivery of mailman3. Could you give me a hint, to detect the reason of failure ? ... # /etc/exim4/conf.d/transport/55_mm3_transport mailman3_transport: driver = smtp protocol = lmtp allow_localhost hosts = localhost port = MM3_LMTP_PORT rcpt_include_affixes = true
Have you defined MM3_LMTP_PORT and is it the same value as the lmtp_port: setting in the [mta] section of mailman.cfg - default 8024?
And is Mailman core and particularly its lmtp runner running and is it listening on the relevant port?
Is there more information about "all hosts for 'listen.td3.eu' have been failing for a long time" in exim's logs?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hello Mark,
thank you four your fast response, yes I use the default port 8024
netstat -atp: tcp 0 0 localhost:8024 0.0.0.0:* LISTEN 26555/python
grep MM3_LMTP_PORT /var/lib/exim4/config.autogenerated MM3_LMTP_PORT=8024
lines from exim4/mainlog 2020-05-06 21:48:08.506 [5776] 1jWQ1Y-0001VA-2A <= th@drillich.com H=mo4-p00-ob.smtp.rzone.de [85.215.255.20]:20961 I=[85.25.8.21]:25 P=esmtps L- X=TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=no S=7313 M8S=0 DKIM=drillich.com RT=0.146s id=bb5a020a-bcc3-81a2-b5ab-6d89eaf5b28d@drillich.com from <th@drillich.com> for seebruecke@listen.td3.eu 2020-05-06 21:48:08.517 [5776] SMTP connection from mo4-p00-ob.smtp.rzone.de [85.215.255.20]:20961 I=[85.25.8.21]:25 closed by QUIT 2020-05-06 21:48:08.787 [5777] 1jWQ1Y-0001VA-2A ** seebruecke@listen.td3.eu F=<th@drillich.com> P=<th@drillich.com> R=mailman3_router T=mailman3_transport: all hosts for 'listen.td3.eu' have been failing for a long time (and retry time not reached)
Am 06.05.20 um 20:55 schrieb Mark Sapiro:
On 5/6/20 10:54 AM, Thomas Drillich wrote:
Hello,
I tried to setup exim4 + mailman3 but it seems to stuck at lmtp delivery of mailman3. Could you give me a hint, to detect the reason of failure ? ... # /etc/exim4/conf.d/transport/55_mm3_transport mailman3_transport: driver = smtp protocol = lmtp allow_localhost hosts = localhost port = MM3_LMTP_PORT rcpt_include_affixes = true Have you defined MM3_LMTP_PORT and is it the same value as the lmtp_port: setting in the [mta] section of mailman.cfg - default 8024?
And is Mailman core and particularly its lmtp runner running and is it listening on the relevant port?
Is there more information about "all hosts for 'listen.td3.eu' have been failing for a long time" in exim's logs?
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- mit freundlichem Gruss -- regards
Thomas Drillich Heugasse 4 / D-55116 Mainz / Germany fon +49-6131-570-2621 mobil +49-162-469-5875
Thomas Drillich <th@drillich.com> wrote:
yes I use the default port 8024
netstat -atp: tcp 0 0 localhost:8024 0.0.0.0:* LISTEN 26555/python
What do you have in mailman.cfg for the [mta] section? I have a very similar setup to you and just have the following:
[mta] incoming: mailman.mta.exim4.LMTP configuration: python:mailman.config.exim4
Hope this helps. Andrew.
On 5/6/20 12:52 PM, Thomas Drillich wrote:
lines from exim4/mainlog 2020-05-06 21:48:08.506 [5776] 1jWQ1Y-0001VA-2A <= th@drillich.com H=mo4-p00-ob.smtp.rzone.de [85.215.255.20]:20961 I=[85.25.8.21]:25 P=esmtps L- X=TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=no S=7313 M8S=0 DKIM=drillich.com RT=0.146s id=bb5a020a-bcc3-81a2-b5ab-6d89eaf5b28d@drillich.com from <th@drillich.com> for seebruecke@listen.td3.eu 2020-05-06 21:48:08.517 [5776] SMTP connection from mo4-p00-ob.smtp.rzone.de [85.215.255.20]:20961 I=[85.25.8.21]:25 closed by QUIT 2020-05-06 21:48:08.787 [5777] 1jWQ1Y-0001VA-2A ** seebruecke@listen.td3.eu F=<th@drillich.com> P=<th@drillich.com> R=mailman3_router T=mailman3_transport: all hosts for 'listen.td3.eu' have been failing for a long time (and retry time not reached)
It's not clear to me from the log what is happening. It all happens within a fraction of a second, so there don't seem to be any time outs involved. It seems the first two entries are the delivery of the message from th@drillich.com to exim for seebruecke@listen.td3.eu.
I'm guessing here because I don't know that much about exim, but it looks like exim is trying to connect to listen.td3.eu rather than localhost to deliver the message and most likely, port 8024 is not open to the outside which is correct.
I think you need to add
hosts_override = true
to your transport definition to tell exim to use hosts = localhost
rather than the host part of the email address.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 5/6/20 1:33 PM, Mark Sapiro wrote:
I think you need to add
hosts_override = true
to your transport definition to tell exim to use
hosts = localhost
rather than the host part of the email address.
Please report back if this is the solution. If it is, we'll update the docs.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hello Mark, Andrew,
thank you for your hints, the hosts_override gives me the way to solve my problem.
It was a problem of DNS + resolv.conf,
- inside resolv.conf there is a domain search defined, - search example.com -
- Inside the Domain example.com there exists a record "* in a 85.25.8.21", so the question localhost resolvs to localhost.example.com ... 85.25.8.21
After I added the localhost in a 127.0.0.1 into the domain, the exim transport delivers correctly.
greetings Thomas
Am 06.05.20 um 22:39 schrieb Mark Sapiro:
On 5/6/20 1:33 PM, Mark Sapiro wrote:
I think you need to add
hosts_override = true
to your transport definition to tell exim to use
hosts = localhost
rather than the host part of the email address.Please report back if this is the solution. If it is, we'll update the docs.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- mit freundlichem Gruss -- regards
Thomas Drillich Heugasse 4 / D-55116 Mainz / Germany fon +49-6131-570-2621 mobil +49-162-469-5875
participants (3)
-
Andrew Hodgson
-
Mark Sapiro
-
Thomas Drillich