Mailing List Archive

LMTP connection - how to debug?
Hello,

I am having a bit of problem with exim4 talking to Cyrus
lmtpd.

I have been using Cyrus and Exim for last 10+ years or so,
and I just set up a new host. New hardware with fresh
Ubuntu server 18.04 LTS installed.

Cyrus IMAP as imap server is working. I can connect to the
IMAP from client. netstat -an | grep LISTEN | grep 2003
prints out a line, and when I do

telnet localhost 2003
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailserver Cyrus LMTP 2.5.10-Debian-2.5.10-3ubuntu1 server ready

So, it looks like lmtpd TCP socket seems working all right.

I get mails using fetchmail, it is sent to exim, and exim
sends it to Cyrus.

From /var/log/mail.log

Nov 7 15:21:23 mailserver exim[28104]: 2018-11-07 15:21:23 Start queue
run: pid=28104
Nov 7 15:21:23 mailserver exim[28107]: 2018-11-07 15:21:23
1gKIxS-0006X5-KE H=localhost [::1] Connection refused
Nov 7 15:21:23 mailserver exim[28107]: 2018-11-07 15:21:23
1gKIxS-0006X5-KE H=localhost [127.0.0.1] Connection refused
Nov 7 15:21:23 mailserver exim[28106]: 2018-11-07 15:21:23
1gKIxS-0006X5-KE == root@nile.cleanwinner.com R=local_user T=cyrus_ltcp
defer (111): Connection refused
Nov 7 15:21:23 mailserver exim[28104]: 2018-11-07 15:21:23 End queue
run: pid=28104

EXIM says "connection refused". I know, if you do plain TCP connection
(like telnet), it does connect.

How can I debug this?
I want to know why Exim says "connection refused".

As I said, although this is a new box, I've done this (with virtually
identical set up) many times over years. This is the first time
exim is giving me a hard time.

For info - cyrus lmptd is running using "lmtpd -a" which I learned
from https://github.com/Exim/exim/wiki/CyrusImap
so, the authentication of lmtp connection shouldn't be the problem.

Thanks.

-- Tai

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: LMTP connection - how to debug? [ In reply to ]
On 07/11/2018 23:21, Naoyuki Tai via Exim-users wrote:
> netstat -an | grep LISTEN | grep 2003
> prints out a line, and when I do
>
> telnet localhost 2003
> Trying ::1...
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 mailserver Cyrus LMTP 2.5.10-Debian-2.5.10-3ubuntu1 server ready
>
> So, it looks like lmtpd TCP socket seems working all right.

I assume that is cyrus on the port it's expecting the lmtp feed on.

> Nov 7 15:21:23 mailserver exim[28104]: 2018-11-07 15:21:23 Start queue
> run: pid=28104
> Nov 7 15:21:23 mailserver exim[28107]: 2018-11-07 15:21:23
> 1gKIxS-0006X5-KE H=localhost [::1] Connection refused
> Nov 7 15:21:23 mailserver exim[28107]: 2018-11-07 15:21:23
> 1gKIxS-0006X5-KE H=localhost [127.0.0.1] Connection refused
> Nov 7 15:21:23 mailserver exim[28106]: 2018-11-07 15:21:23
> 1gKIxS-0006X5-KE == root@nile.cleanwinner.com R=local_user T=cyrus_ltcp
> defer (111): Connection refused
> Nov 7 15:21:23 mailserver exim[28104]: 2018-11-07 15:21:23 End queue
> run: pid=28104

Presumably your cyrus_ltcp transport has a port option. Check it
is set to the expected one.

If you want the port logged, add outgoing_port to your log_selector.
--
Cheers,
Jeremy

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/