1 # TLS client: tls-on-connect
3 # For packet-capture, use "runtest -keep" and add (at least) tls debug on the daemon line.
4 # For GnuTLS, additionally run the daemon under sudo.
5 # Tell wireshark to use DIR/spool/sslkeys for Master Secret log, and decode TCP/1225 as TLS, TLS/1225 as SMTP
7 # We get (TLS1.3 , OpenSSL):
12 # < Server Hello, Change Ciph, Extensions, Cert, Cert Verify, Finished
18 # < ACK,ACK,DATA-go-ahead
20 # GnuTLS splits both the server records and the client response pair over two TCP segments:
22 # < Server Hello, Change Ciph
24 # < Extensins, Cert, Cert Verify, Finished
26 # (otherwise the same). The extra segments are piplined and do not incur an extra roundtrip time.
28 # To see that pipelining:
29 # sudo tc qdisc add dev lo root netem delay 50ms / sudo tc qdisc delete dev lo root
31 # To test TFO, enable in the transport in the conf/ file
32 # With TFO we get the Client Hello on the SYN, and the initial Server segment pipelined with/after the SYN,ACK
33 # and before the 3rd-ACK. We still can't merge the 3rd-ACK with the second Client record set,
34 # but it does ack the initial Server data.
37 # First clear any previously-obtained cookie:
39 #open(INFO, "-|", "/usr/bin/uname -s");
42 #system("sysctl net.inet.tcp.fastopen.client_enable=0"); system("sysctl net.inet.tcp.fastopen.client_enable=1");
44 #system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
45 #system ("ip tcp_metrics delete 127.0.0.1");
51 # sudo exim -DSERVER=server -d+tls -bd -oX PORT_D
52 exim -DSERVER=server -bd -oX PORT_D
55 Test message. Contains FF: ΓΏ
57 exim CALLER@test.ex abcd@test.ex xyz@test.ex
58 Test message to two different hosts
63 exim -DSERVER=server -DNOTDAEMON -qf