On Mon, Jun 28, 2010 at 07:57:01AM -0300, Francisco Jr wrote: > Return message to Server. Try again. > > :-)
Thanks. I can replicate your problem from a Linux client. It pauses for a short time part-way through the message, then continues and hangs where shown: $ telnet pop.nitro.com.br 110 Trying 187.72.225.121... Connected to pop.nitro.com.br. Escape character is '^]'. +OK Hello there. user [email protected] +OK Password required. pass ninini +OK logged in. stat +OK 1 63535 retr 1 +OK 63535 octets follow. Return-Path: <[email protected]> ... \lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority33 \lsdlocked0 = Book Title;\lsdpriority37 \lsdlocked0 Bibliography;\lsdqformat1 = \lsdpriority39 \lsdlocked0 TOC Heading;}}{\*\datastore = 010500000200000018000000 4d73786d6c322e534158584d4c5265616465722e352e3000000000000000000000060000 d0cf11e0a1b11ae1000000000000000000000000000000003e000300feff0900060000000= 00000000000000001000000010000000000000000100000feffffff00000000feffffff00= 00000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff= fffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff= ffffffffffffffffff On a second attempt, exactly the same. If I copy-paste from Return-Path: onwards into wc, I get: 1095 4144 63457 Compared to your problem_msg.zip, it seems the last ~3KB is missing: 1140 4188 66323 Like Sam says: you should first reproduce this problem using telnet localhost 110. Or, run imapd directly from the command line (first su to the correct user, cd to the home directory, then run "imapd Maildir") If either of these work correctly, then I suspect a problem with your TCP stack, or some intervening firewall which doesn't understand TCP window scaling. (It's quite easy to misconfigure an OpenBSD firewall to break TCP, especially older versions, so do say if you have an OpenBSD firewall) Looking at tcpdump from this side, here's what I see on opening the connection with telnet: 12:32:47.071286 IP 172.31.131.185.48002 > 187.72.225.121.110: S 3370814662:3370814662(0) win 5840 <mss 1460,sackOK,timestamp 3004981 0,nop,wscale 7> 0x0000: 4510 003c 56f3 4000 4006 171e ac1f 83b9 E..<v...@.@....... 0x0010: bb48 e179 bb82 006e c8ea 8cc6 0000 0000 .H.y...n........ 0x0020: a002 16d0 7890 0000 0204 05b4 0402 080a ....x........... 0x0030: 002d da35 0000 0000 0103 0307 .-.5........ 12:32:47.294909 IP 187.72.225.121.110 > 172.31.131.185.48002: S 108323618:108323618(0) ack 3370814663 win 5792 <mss 1452,sackOK,timestamp 2959796000 3004981,nop,wscale 6> 0x0000: 4500 003c 0000 4000 2f06 7f21 bb48 e179 E..<....@./..!.H.y 0x0010: ac1f 83b9 006e bb82 0674 e322 c8ea 8cc7 .....n...t.".... 0x0020: a012 16a0 f795 0000 0204 05ac 0402 080a ................ 0x0030: b06a e720 002d da35 0103 0306 .j...-.5.... 12:32:47.294951 IP 172.31.131.185.48002 > 187.72.225.121.110: . ack 1 win 46 <nop,nop,timestamp 3005037 2959796000> (notice window scaling is active) The last two packets I see are: 12:37:40.465562 IP 187.72.225.121.110 > 172.31.131.185.48003: . 63208:64648(1440) ack 53 win 91 <nop,nop,timestamp 2960089152 3077154> 0x0000: 4500 05d4 be5e 4000 2f06 bb2a bb48 e179 e.....@./..*.H.y 0x0010: ac1f 83b9 006e bb83 07bc 9cd0 c94c d853 .....n.......L.S 0x0020: 8010 005b 68a2 0000 0101 080a b06f 6040 ...[h........o`@ 0x0030: 002e f422 6c73 6475 6e68 6964 6575 7365 ..."lsdunhideuse 0x0040: 6430 205c 6c73 6470 7269 6f72 6974 7936 d0.\lsdpriority6 0x0050: 3920 5c6c 7364 6c6f 636b 6564 3020 3d0d 9.\lsdlocked0.=. 0x0060: 0a4d 6564 6975 6d20 4772 6964 2033 2041 .Medium.Grid.3.A 0x0070: 6363 656e 7420 363b 5c6c 7364 7365 6d69 ccent.6;\lsdsemi 0x0080: 6869 6464 656e 3020 5c6c 7364 756e 6869 hidden0.\lsdunhi 0x0090: 6465 7573 6564 3020 5c6c 7364 7072 696f deused0.\lsdprio 0x00a0: 7269 7479 3730 203d 0d0a 5c6c 7364 6c6f rity70.=..\lsdlo 0x00b0: 636b 6564 3020 4461 726b 204c 6973 7420 cked0.Dark.List. 0x00c0: 4163 6365 6e74 2036 3b0d 0a5c 6c73 6473 Accent.6;..\lsds 0x00d0: 656d 6968 6964 6465 6e30 205c 6c73 6475 emihidden0.\lsdu 0x00e0: 6e68 6964 6575 7365 6430 205c 6c73 6470 nhideused0.\lsdp 0x00f0: 7269 6f72 6974 7937 3120 5c6c 7364 6c6f riority71.\lsdlo 0x0100: 636b 6564 3020 436f 6c6f 7266 756c 203d cked0.Colorful.= 0x0110: 0d0a 5368 6164 696e 6720 4163 6365 6e74 ..Shading.Accent 0x0120: 2036 3b5c 6c73 6473 656d 6968 6964 6465 .6;\lsdsemihidde 0x0130: 6e30 205c 6c73 6475 6e68 6964 6575 7365 n0.\lsdunhideuse 0x0140: 6430 205c 6c73 6470 7269 6f72 6974 7937 d0.\lsdpriority7 0x0150: 3220 3d0d 0a5c 6c73 646c 6f63 6b65 6430 2.=..\lsdlocked0 0x0160: 2043 6f6c 6f72 6675 6c20 4c69 7374 2041 .Colorful.List.A 0x0170: 6363 656e 7420 363b 5c6c 7364 7365 6d69 ccent.6;\lsdsemi 0x0180: 6869 6464 656e 3020 5c6c 7364 756e 6869 hidden0.\lsdunhi 0x0190: 6465 7573 6564 3020 3d0d 0a5c 6c73 6470 deused0.=..\lsdp 0x01a0: 7269 6f72 6974 7937 3320 5c6c 7364 6c6f riority73.\lsdlo 0x01b0: 636b 6564 3020 436f 6c6f 7266 756c 2047 cked0.Colorful.G 0x01c0: 7269 6420 4163 6365 6e74 2036 3b0d 0a5c rid.Accent.6;..\ 0x01d0: 6c73 6473 656d 6968 6964 6465 6e30 205c lsdsemihidden0.\ 0x01e0: 6c73 6475 6e68 6964 6575 7365 6430 205c lsdunhideused0.\ 0x01f0: 6c73 6471 666f 726d 6174 3120 5c6c 7364 lsdqformat1.\lsd 0x0200: 7072 696f 7269 7479 3139 205c 6c73 646c priority19.\lsdl 0x0210: 6f63 6b65 6430 203d 0d0a 5375 6274 6c65 ocked0.=..Subtle 0x0220: 2045 6d70 6861 7369 733b 5c6c 7364 7365 .Emphasis;\lsdse 0x0230: 6d69 6869 6464 656e 3020 5c6c 7364 756e mihidden0.\lsdun 0x0240: 6869 6465 7573 6564 3020 5c6c 7364 7166 hideused0.\lsdqf 0x0250: 6f72 6d61 7431 203d 0d0a 5c6c 7364 7072 ormat1.=..\lsdpr 0x0260: 696f 7269 7479 3231 205c 6c73 646c 6f63 iority21.\lsdloc 0x0270: 6b65 6430 2049 6e74 656e 7365 2045 6d70 ked0.Intense.Emp 0x0280: 6861 7369 733b 0d0a 5c6c 7364 7365 6d69 hasis;..\lsdsemi 0x0290: 6869 6464 656e 3020 5c6c 7364 756e 6869 hidden0.\lsdunhi 0x02a0: 6465 7573 6564 3020 5c6c 7364 7166 6f72 deused0.\lsdqfor 0x02b0: 6d61 7431 205c 6c73 6470 7269 6f72 6974 mat1.\lsdpriorit 0x02c0: 7933 3120 5c6c 7364 6c6f 636b 6564 3020 y31.\lsdlocked0. 0x02d0: 3d0d 0a53 7562 746c 6520 5265 6665 7265 =..Subtle.Refere 0x02e0: 6e63 653b 5c6c 7364 7365 6d69 6869 6464 nce;\lsdsemihidd 0x02f0: 656e 3020 5c6c 7364 756e 6869 6465 7573 en0.\lsdunhideus 0x0300: 6564 3020 5c6c 7364 7166 6f72 6d61 7431 ed0.\lsdqformat1 0x0310: 203d 0d0a 5c6c 7364 7072 696f 7269 7479 .=..\lsdpriority 0x0320: 3332 205c 6c73 646c 6f63 6b65 6430 2049 32.\lsdlocked0.I 0x0330: 6e74 656e 7365 2052 6566 6572 656e 6365 ntense.Reference 0x0340: 3b0d 0a5c 6c73 6473 656d 6968 6964 6465 ;..\lsdsemihidde 0x0350: 6e30 205c 6c73 6475 6e68 6964 6575 7365 n0.\lsdunhideuse 0x0360: 6430 205c 6c73 6471 666f 726d 6174 3120 d0.\lsdqformat1. 0x0370: 5c6c 7364 7072 696f 7269 7479 3333 205c \lsdpriority33.\ 0x0380: 6c73 646c 6f63 6b65 6430 203d 0d0a 426f lsdlocked0.=..Bo 0x0390: 6f6b 2054 6974 6c65 3b5c 6c73 6470 7269 ok.Title;\lsdpri 0x03a0: 6f72 6974 7933 3720 5c6c 7364 6c6f 636b ority37.\lsdlock 0x03b0: 6564 3020 4269 626c 696f 6772 6170 6879 ed0.Bibliography 0x03c0: 3b5c 6c73 6471 666f 726d 6174 3120 3d0d ;\lsdqformat1.=. 0x03d0: 0a5c 6c73 6470 7269 6f72 6974 7933 3920 .\lsdpriority39. 0x03e0: 5c6c 7364 6c6f 636b 6564 3020 544f 4320 \lsdlocked0.TOC. 0x03f0: 4865 6164 696e 673b 7d7d 7b5c 2a5c 6461 Heading;}}{\*\da 0x0400: 7461 7374 6f72 6520 3d0d 0a30 3130 3530 tastore.=..01050 0x0410: 3030 3030 3230 3030 3030 3031 3830 3030 0000200000018000 0x0420: 3030 300d 0a34 6437 3337 3836 6436 6333 000..4d73786d6c3 0x0430: 3232 6535 3334 3135 3835 3834 6434 6335 22e534158584d4c5 0x0440: 3236 3536 3136 3436 3537 3232 6533 3532 265616465722e352 0x0450: 6533 3030 3030 3030 3030 3030 3030 3030 e300000000000000 0x0460: 3030 3030 3030 3030 3630 3030 300d 0a64 0000000060000..d 0x0470: 3063 6631 3165 3061 3162 3131 6165 3130 0cf11e0a1b11ae10 0x0480: 3030 3030 3030 3030 3030 3030 3030 3030 0000000000000000 0x0490: 3030 3030 3030 3030 3030 3030 3030 3033 0000000000000003 0x04a0: 6530 3030 3330 3066 6566 6630 3930 3030 e000300feff09000 0x04b0: 3630 3030 3030 3030 3d0d 0a30 3030 3030 60000000=..00000 0x04c0: 3030 3030 3030 3030 3030 3031 3030 3030 0000000000010000 0x04d0: 3030 3031 3030 3030 3030 3030 3030 3030 0001000000000000 0x04e0: 3030 3030 3130 3030 3030 6665 6666 6666 0000100000feffff 0x04f0: 6666 3030 3030 3030 3030 6665 6666 6666 ff00000000feffff 0x0500: 6666 3030 3d0d 0a30 3030 3030 3030 3030 ff00=..000000000 0x0510: 3030 3030 3066 6666 6666 6666 6666 6666 00000fffffffffff 0x0520: 6666 6666 6666 6666 6666 6666 6666 6666 ffffffffffffffff 0x0530: 6666 6666 6666 6666 6666 6666 6666 6666 ffffffffffffffff 0x0540: 6666 6666 6666 6666 6666 6666 6666 6666 ffffffffffffffff 0x0550: 3d0d 0a66 6666 6666 6666 6666 6666 6666 =..fffffffffffff 0x0560: 6666 6666 6666 6666 6666 6666 6666 6666 ffffffffffffffff 0x0570: 6666 6666 0d0a 6666 6666 6666 6666 6666 ffff..ffffffffff 0x0580: 6666 6666 6666 6666 6666 6666 6666 6666 ffffffffffffffff 0x0590: 6666 6666 6666 6666 6666 6666 6666 6666 ffffffffffffffff 0x05a0: 6666 6666 6666 6666 6666 6666 6666 6666 ffffffffffffffff 0x05b0: 6666 6666 6666 6666 6666 6666 6666 663d fffffffffffffff= 0x05c0: 0d0a 6666 6666 6666 6666 6666 6666 6666 ..ffffffffffffff 0x05d0: 6666 6666 ffff 12:37:40.465594 IP 172.31.131.185.48003 > 187.72.225.121.110: . ack 64648 win 491 <nop,nop,timestamp 3078330 2960089152,nop,nop,sack 1 {67528:67567}> 0x0000: 4510 0040 3f62 4000 4006 2eab ac1f 83b9 e...@?b@....@....... 0x0010: bb48 e179 bb83 006e c94c d853 07bc a270 .H.y...n.L.S...p 0x0020: b010 01eb f5c7 0000 0101 080a 002e f8ba ................ 0x0030: b06f 6040 0101 050a 07bc adb0 07bc add7 ....@............ It's possible the server is sending further packets, but they are being dropped on the way. So, another test you can do is to run tcpdump on the server and on the client, then telnet, and compare the tcpdump results from both sides. Use something like: tcpdump -i eth0 -n -s0 -X host x.x.x.x where x.x.x.x is the IP address of the other side. Another test is to strace the imapd server process, to see if it's writing the data you expect. You can: 1. telnet in and login, identify the imapd process from a ps listing, then "strace -p <pid>" or 2. run imapd from the command line: su - username cd ~username strace imapd Maildir Finally, what platform are you running the server under? If it's a Windows or cygwin build then you know what the answer will be :-) Regards, Brian. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
