[exim-dev] Help debugging a tls smtp session

Etusivu
Poista viesti
Vastaa
Lähettäjä: Andrew C Aitchison
Päiväys:  
Vastaanottaja: exim-dev
Aihe: [exim-dev] Help debugging a tls smtp session

I'm attempting to write CLIENTID support for Exim.

My current attempt is available at
https://www.aitchison.me.uk/exim/clientid.20230325.patch

I am using the exim test suite. Below is the significant part of
    runtest --keep 3752


When I do STARTTLS -> CLIENTID -> NOOP
the CLIENTID gives the correct response code but the next command
fails (it doesn't have to be a NOOP) in a way suggesting that I have
lost synchronization. Sometimes the TLS connection reports unexpected
commands in the input buffer (which I confirm to match what I expect
the script to send next).

I do have PIPECONNECT enabled, so I may well be tangled up in that somehow.

Any suggestions on how to proceed ?

Connecting to 127.0.0.1 port 1225 ... connected
Certificate file =
/home/eximtest/git/Exim/exim/test/aux-fixed/exim-ca/example.org/server2.example.org/server2.examp
le.org.pem
Key file =
/home/eximtest/git/Exim/exim/test/aux-fixed/exim-ca/example.org/server2.example.org/server2.example.org.u
nlocked.key
??? 220
<<< 220 myhost.test.ex ESMTP Exim x.yz Sat, 25 Mar 2023 17:48:12 +0000
>>> EHLO tester2a

??? 250-
<<< 250-myhost.test.ex Hello tester2a [127.0.0.1]
??? 250-
<<< 250-SIZE 52428800
??? 250-
<<< 250-8BITMIME
??? 250-STARTTLS
<<< 250-STARTTLS
??? 250 HELP
<<< 250 HELP
>>> STARTTLS

??? 220
<<< 220 TLS go ahead
Attempting to start TLS
Succeeded in starting TLS
>>> EHLO tester2b

??? 250-
<<< 250-myhost.test.ex Hello tester2b [127.0.0.1]
??? 250-
<<< 250-SIZE 52428800
??? 250-
<<< 250-8BITMIME
??? 250-AUTH
<<< 250-AUTH EXTERNAL
??? 250-CLIENTID
<<< 250-CLIENTID
??? 250 HELP
<<< 250 HELP
>>> CLIENTID exim-device client-id-token

??? 250 OK
<<< 250 OK
>>> NOOP

??? 250 OK
Error in the pull function.
Unexpected EOF read

Thanks,

-- 
Andrew C. Aitchison                      Kendal, UK
                    andrew@???