Re: [exim] PIPELINING in exim 4.43

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Brian Candler
Ημερομηνία:  
Προς: Matthias Wimmer
Υ/ο: exim-users, Bill Hacker
Αντικείμενο: Re: [exim] PIPELINING in exim 4.43
On Wed, Apr 06, 2005 at 08:33:50PM +0200, Matthias Wimmer wrote:
> A tcpdump containing three SMTP sessions is published at
> http://web.amessage.info/freenet.dump


Interesting, the server advertises that it is running "Exim 4.51" - newer
than anything I can find as ftp.csx.cam.ac.uk :-)

Your tcpdump doesn't include the end of the sessions. Does Courier initiate
the disconnection? Does Exim initiate it? If Exim, does it send a response
first?

Attached to this mail is a little test ruby script which simulates your
problem, and the tcpdump output it generates. I can happily connect to their
server with the same pipelined sequence as you used (session from port 47057
in your freenet.dump file), and it works just fine. So I can only imagine
that (a) it was a temporary problem, or (b) there is something to do with
your IP address that they don't like - e.g. timeout doing reverse DNS, found
you in a blacklist, or something like that.

What happens if you telnet to port 25 on them from your own mailserver, and
issue the sequence of commands manually? It might be nothing to do with
pipelining at all.

Regards,

Brian.
require 'socket'
require 'expect'
$expect_verbose = true

smtp = TCPSocket.new('194.97.55.148', 25)
smtp.expect(/^2\d\d .*\n/, 5)
smtp.print "EHLO aare.eniac.de\r\n"
smtp.expect(/^2\d\d .*\n/, 5)
smtp.print "MAIL FROM:<kontakt@???>\r\n"
smtp.expect(/^2\d\d .*\n/, 5)
smtp.print "RCPT TO:<marlisrotenhof@???>\r\nDATA\r\n"
smtp.expect(/^2\d\d .*\n/, 300)
smtp.expect(/^3\d\d .*\n/, 300)
smtp.close
# tcpdump -i wi0 -n -s 1500 -X tcp port 25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wi0, link-type EN10MB (Ethernet), capture size 1500 bytes
10:40:37.874592 IP 192.168.0.116.62390 > 194.97.55.148.25: S 1401072095:1401072095(0) win 65535 <mss 1460,nop,nop,sackOK,nop,wscale 1,nop,nop,timestamp 5209263 0>
        0x0000:  4500 0040 6bc0 4000 4006 13e6 c0a8 0074  E..@k.@.@......t
        0x0010:  c261 3794 f3b6 0019 5382 a9df 0000 0000  .a7.....S.......
        0x0020:  b002 ffff 0cbe 0000 0204 05b4 0101 0402  ................
        0x0030:  0103 0301 0101 080a 004f 7caf 0000 0000  .........O|.....
10:40:37.916452 IP 194.97.55.148.25 > 192.168.0.116.62390: S 1140235885:1140235885(0) ack 1401072096 win 5792 <mss 1460,sackOK,timestamp 4239366521 5209263,nop,wscale 0>
        0x0000:  4500 003c 0000 4000 3806 87aa c261 3794  E..<..@.8....a7.
        0x0010:  c0a8 0074 0019 f3b6 43f6 9e6d 5382 a9e0  ...t....C..mS...
        0x0020:  a012 16a0 8f86 0000 0204 05b4 0402 080a  ................
        0x0030:  fcaf 9979 004f 7caf 0103 0300            ...y.O|.....
10:40:37.916523 IP 192.168.0.116.62390 > 194.97.55.148.25: . ack 1 win 33304 <nop,nop,timestamp 5209267 4239366521>
        0x0000:  4500 0034 6bc1 4000 4006 13f1 c0a8 0074  E..4k.@.@......t
        0x0010:  c261 3794 f3b6 0019 5382 a9e0 43f6 9e6e  .a7.....S...C..n
        0x0020:  8010 8218 52cf 0000 0101 080a 004f 7cb3  ....R........O|.
        0x0030:  fcaf 9979                                ...y
10:40:37.965142 IP 194.97.55.148.25 > 192.168.0.116.62390: P 1:69(68) ack 1 win 5792 <nop,nop,timestamp 4239366569 5209267>
        0x0000:  4500 0078 07ca 4000 3806 7fa4 c261 3794  E..x..@.8....a7.
        0x0010:  c0a8 0074 0019 f3b6 43f6 9e6e 5382 a9e0  ...t....C..nS...
        0x0020:  8018 16a0 1631 0000 0101 080a fcaf 99a9  .....1..........
        0x0030:  004f 7cb3 3232 3020 6d78 352e 6672 6565  .O|.220.mx5.free
        0x0040:  6e65 742e 6465 2045 534d 5450 2045 7869  net.de.ESMTP.Exi
        0x0050:  6d20 342e 3531 2054 6875 2c20 3037 2041  m.4.51.Thu,.07.A
        0x0060:  7072 2032 3030 3520 3131 3a34 303a 3431  pr.2005.11:40:41
        0x0070:  202b 3032 3030 0d0a                      .+0200..
10:40:37.968835 IP 192.168.0.116.62390 > 194.97.55.148.25: P 1:21(20) ack 69 win 33304 <nop,nop,timestamp 5209272 4239366569>
        0x0000:  4500 0048 6bc2 4000 4006 13dc c0a8 0074  E..Hk.@.@......t
        0x0010:  c261 3794 f3b6 0019 5382 a9e0 43f6 9eb2  .a7.....S...C...
        0x0020:  8018 8218 3633 0000 0101 080a 004f 7cb8  ....63.......O|.
        0x0030:  fcaf 99a9 4548 4c4f 2061 6172 652e 656e  ....EHLO.aare.en
        0x0040:  6961 632e 6465 0d0a                      iac.de..
10:40:38.009683 IP 194.97.55.148.25 > 192.168.0.116.62390: . ack 21 win 5792 <nop,nop,timestamp 4239366617 5209272>
        0x0000:  4500 0034 07cb 4000 3806 7fe7 c261 3794  E..4..@.8....a7.
        0x0010:  c0a8 0074 0019 f3b6 43f6 9eb2 5382 a9f4  ...t....C...S...
        0x0020:  8010 16a0 bd8a 0000 0101 080a fcaf 99d9  ................
        0x0030:  004f 7cb8                                .O|.
10:40:38.019362 IP 194.97.55.148.25 > 192.168.0.116.62390: P 69:252(183) ack 21 win 5792 <nop,nop,timestamp 4239366617 5209272>
        0x0000:  4500 00eb 07cc 4000 3806 7f2f c261 3794  E.....@.8../.a7.
        0x0010:  c0a8 0074 0019 f3b6 43f6 9eb2 5382 a9f4  ...t....C...S...
        0x0020:  8018 16a0 e40d 0000 0101 080a fcaf 99d9  ................
        0x0030:  004f 7cb8 3235 302d 6d78 352e 6672 6565  .O|.250-mx5.free
        0x0040:  6e65 742e 6465 2048 656c 6c6f 2064 736c  net.de.Hello.dsl
        0x0050:  2d32 3132 2d37 342d 3131 332d 3635 2e61  -212-74-113-65.a
        0x0060:  6363 6573 732e 756b 2e74 6973 6361 6c69  ccess.uk.tiscali
        0x0070:  2e63 6f6d 205b 3231 322e 3734 2e31 3133  .com.[212.74.113
        0x0080:  2e36 355d 0d0a 3235 302d 5349 5a45 2031  .65]..250-SIZE.1
        0x0090:  3034 3835 3736 3030 0d0a 3235 302d 4554  04857600..250-ET
        0x00a0:  524e 0d0a 3235 302d 5049 5045 4c49 4e49  RN..250-PIPELINI
        0x00b0:  4e47 0d0a 3235 302d 4155 5448 204c 4f47  NG..250-AUTH.LOG
        0x00c0:  494e 2050 4c41 494e 2043 5241 4d2d 4d44  IN.PLAIN.CRAM-MD
        0x00d0:  350d 0a32 3530 2d53 5441 5254 544c 530d  5..250-STARTTLS.
        0x00e0:  0a32 3530 2048 454c 500d 0a              .250.HELP..
10:40:38.027988 IP 192.168.0.116.62390 > 194.97.55.148.25: P 21:55(34) ack 252 win 33304 <nop,nop,timestamp 5209278 4239366617>
        0x0000:  4500 0056 6bc3 4000 4006 13cd c0a8 0074  E..Vk.@.@......t
        0x0010:  c261 3794 f3b6 0019 5382 a9f4 43f6 9f69  .a7.....S...C..i
        0x0020:  8018 8218 daa2 0000 0101 080a 004f 7cbe  .............O|.
        0x0030:  fcaf 99d9 4d41 494c 2046 524f 4d3a 3c6b  ....MAIL.FROM:<k
        0x0040:  6f6e 7461 6b74 406a 656e 732d 6c61 6e67  ontakt@jens-lang
        0x0050:  2e64 653e 0d0a                           .de>..
10:40:38.069476 IP 194.97.55.148.25 > 192.168.0.116.62390: P 252:260(8) ack 55 win 5792 <nop,nop,timestamp 4239366677 5209278>
        0x0000:  4500 003c 07cd 4000 3806 7fdd c261 3794  E..<..@.8....a7.
        0x0010:  c0a8 0074 0019 f3b6 43f6 9f69 5382 aa16  ...t....C..iS...
        0x0020:  8018 16a0 fdb4 0000 0101 080a fcaf 9a15  ................
        0x0030:  004f 7cbe 3235 3020 4f4b 0d0a            .O|.250.OK..
10:40:38.070013 IP 192.168.0.116.62390 > 194.97.55.148.25: P 55:98(43) ack 260 win 33304 <nop,nop,timestamp 5209283 4239366677>
        0x0000:  4500 005f 6bc4 4000 4006 13c3 c0a8 0074  E.._k.@.@......t
        0x0010:  c261 3794 f3b6 0019 5382 aa16 43f6 9f71  .a7.....S...C..q
        0x0020:  8018 8218 35bf 0000 0101 080a 004f 7cc3  ....5........O|.
        0x0030:  fcaf 9a15 5243 5054 2054 4f3a 3c6d 6172  ....RCPT.TO:<mar
        0x0040:  6c69 7372 6f74 656e 686f 6640 6672 6565  lisrotenhof@free
        0x0050:  6e65 742e 6465 3e0d 0a44 4154 410d 0a    net.de>..DATA..
10:40:38.141721 IP 194.97.55.148.25 > 192.168.0.116.62390: P 260:330(70) ack 98 win 5792 <nop,nop,timestamp 4239366745 5209283>
        0x0000:  4500 007a 07ce 4000 3806 7f9e c261 3794  E..z..@.8....a7.
        0x0010:  c0a8 0074 0019 f3b6 43f6 9f71 5382 aa41  ...t....C..qS..A
        0x0020:  8018 16a0 4334 0000 0101 080a fcaf 9a59  ....C4.........Y
        0x0030:  004f 7cc3 3235 3020 4163 6365 7074 6564  .O|.250.Accepted
        0x0040:  0d0a 3335 3420 456e 7465 7220 6d65 7373  ..354.Enter.mess
        0x0050:  6167 652c 2065 6e64 696e 6720 7769 7468  age,.ending.with
        0x0060:  2022 2e22 206f 6e20 6120 6c69 6e65 2062  .".".on.a.line.b
        0x0070:  7920 6974 7365 6c66 0d0a                 y.itself..
10:40:38.145267 IP 192.168.0.116.62390 > 194.97.55.148.25: F 98:98(0) ack 330 win 33304 <nop,nop,timestamp 5209290 4239366745>
        0x0000:  4500 0034 6bc5 4000 4006 13ed c0a8 0074  E..4k.@.@......t
        0x0010:  c261 3794 f3b6 0019 5382 aa41 43f6 9fb7  .a7.....S..AC...
        0x0020:  8011 8218 502d 0000 0101 080a 004f 7cca  ....P-.......O|.
        0x0030:  fcaf 9a59                                ...Y
10:40:38.186745 IP 194.97.55.148.25 > 192.168.0.116.62390: P 330:360(30) ack 99 win 5792 <nop,nop,timestamp 4239366794 5209290>
        0x0000:  4500 0052 07cf 4000 3806 7fc5 c261 3794  E..R..@.8....a7.
        0x0010:  c0a8 0074 0019 f3b6 43f6 9fb7 5382 aa42  ...t....C...S..B
        0x0020:  8018 16a0 9f2c 0000 0101 080a fcaf 9a8a  .....,..........
        0x0030:  004f 7cca 3432 3120 4c6f 7374 2069 6e63  .O|.421.Lost.inc
        0x0040:  6f6d 696e 6720 636f 6e6e 6563 7469 6f6e  oming.connection
        0x0050:  0d0a                                     ..
10:40:38.186833 IP 192.168.0.116.62390 > 194.97.55.148.25: R 1401072194:1401072194(0) win 0
        0x0000:  4500 0028 6bc6 4000 4006 13f8 c0a8 0074  E..(k.@.@......t
        0x0010:  c261 3794 f3b6 0019 5382 aa42 0000 0000  .a7.....S..B....
        0x0020:  5004 0000 033a 0000                      P....:..
10:40:38.196460 IP 194.97.55.148.25 > 192.168.0.116.62390: F 360:360(0) ack 99 win 5792 <nop,nop,timestamp 4239366795 5209290>
        0x0000:  4500 0034 07d0 4000 3806 7fe2 c261 3794  E..4..@.8....a7.
        0x0010:  c0a8 0074 0019 f3b6 43f6 9fd5 5382 aa42  ...t....C...S..B
        0x0020:  8011 16a0 bb54 0000 0101 080a fcaf 9a8b  .....T..........
        0x0030:  004f 7cca                                .O|.
10:40:38.196479 IP 192.168.0.116.62390 > 194.97.55.148.25: R 1401072194:1401072194(0) win 0
        0x0000:  4500 0028 6bc7 4000 4006 13f7 c0a8 0074  E..(k.@.@......t
        0x0010:  c261 3794 f3b6 0019 5382 aa42 0000 0000  .a7.....S..B....
        0x0020:  5004 0000 033a 0000                      P....:..