Closed Bug 655534 Opened 15 years ago Closed 15 years ago

Cannot send mail with SMTP over TLS over IPv6

Categories

(NSS :: Libraries, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 513659

People

(Reporter: mozilla, Unassigned)

Details

(Whiteboard: [has protocol logs])

User-Agent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.8.131 Version/11.10 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 I am unable to send mails with Thunderbird to a SMTP server that has a hostname containing a AAAA record and that requires TLS. If I disable TLS and send the mail unencrypted it works fine. If I enter the mail server's domain in the network.dns.ipv4OnlyDomains field it also works fine. Reproducible: Always Steps to Reproduce: 1. Get a host with working IPv6 connectivity. 2. Configure a new SMTP server. Make sure the entered host name has a AAAA record and the server will supports TLS. (For example mail.semidefinite.de, you don't actually need permission to send mails, as the connections is closed before you're asked for a username/password) 3. Connection security: STARTTLS (important), Authentication method: None (doesn't really matter). 4. Try to send a mail. Make sure it actually happens over IPv6 and uses encryption. Actual Results: The mail does not get sent: Send message error Sending of message failed. The message could not be sent using SMTP server mail.semidefinite.de for an unknown reason. Please verify that your SMTP server settings are correct and try again, or contact your network administrator. Here's a tcpdump of the connection, capped from the server side: SYN 21:59:18.790736 IP6 CLIENT.4303 > SERVER.25: Flags [S], seq 2561327468, win 65535, options [mss 1440], length 0 0x0000: 6000 0000 0018 063f XXXX XXXX XXXX XXXX `......?..M..... 0x0010: 0000 0000 0000 0015 2001 0780 0003 0005 ................ 0x0020: 0000 0000 0000 010d 10cf 0019 98aa c16c ...............l 0x0030: 0000 0000 6002 ffff 96da 0000 0204 05a0 ....`........... SYN/ACK 21:59:18.790785 IP6 SERVER.25 > CLIENT.4303: Flags [S.], seq 4048011320, ack 2561327469, win 3969, options [mss 1323], length 0 0x0000: 6000 0000 0018 0640 2001 0780 0003 0005 `......@........ 0x0010: 0000 0000 0000 010d XXXX XXXX XXXX XXXX ..........M..... 0x0020: 0000 0000 0000 0015 0019 10cf f147 c038 .............G.8 0x0030: 98aa c16d 6012 0f81 967f 0000 0204 052b ...m`..........+ ACK 21:59:18.822870 IP6 CLIENT.4303 > SERVER.25: Flags [.], ack 1, win 65535, length 0 0x0000: 6000 0000 0014 063f XXXX XXXX XXXX XXXX `......?..M..... 0x0010: 0000 0000 0000 0015 2001 0780 0003 0005 ................ 0x0020: 0000 0000 0000 010d 10cf 0019 98aa c16d ...............m 0x0030: f147 c039 5010 ffff fcf1 0000 .G.9P....... Server greeting 21:59:18.835067 IP6 SERVER.25 > CLIENT.4303: Flags [P.], seq 1:78, ack 1, win 3969, length 77 0x0000: 6000 0000 0061 0640 2001 0780 0003 0005 `....a.@........ 0x0010: 0000 0000 0000 010d XXXX XXXX XXXX XXXX ..........M..... 0x0020: 0000 0000 0000 0015 0019 10cf f147 c039 .............G.9 0x0030: 98aa c16d 5018 0f81 b912 0000 3232 3020 ...mP.......220. 0x0040: 7a65 6669 7269 732e 7365 6d69 6465 6669 zefiris.semidefi 0x0050: 6e69 7465 2e64 6520 4553 4d54 5020 4578 nite.de.ESMTP.Ex 0x0060: 696d 2034 2e37 3220 5361 742c 2030 3720 im.4.72.Sat,.07. 0x0070: 4d61 7920 3230 3131 2032 313a 3539 3a31 May.2011.21:59:1 0x0080: 3820 2b30 3030 300d 0a 8.+0000.. Client EHLO 21:59:18.965212 IP6 CLIENT.4303 > SERVER.25: Flags [P.], seq 1:33, ack 78, win 65458, length 32 0x0000: 6000 0000 0034 063f XXXX XXXX XXXX XXXX `....4.?..M..... 0x0010: 0000 0000 0000 0015 2001 0780 0003 0005 ................ 0x0020: 0000 0000 0000 010d 10cf 0019 98aa c16d ...............m 0x0030: f147 c086 5018 ffb2 0581 0000 4548 4c4f .G..P.......EHLO 0x0040: 205b 4950 7636 3aXX XXXX XX3a XXXX XXXX .[IPv6:XXXX:XXXX 0x0050: 3aXX XXXX XX3a 3a31 355d 0d0a :XXXX::15].. ACK 21:59:18.965291 IP6 SERVER.25 > CLIENT.4303: Flags [.], ack 33, win 3969, length 0 0x0000: 6000 0000 0014 0640 2001 0780 0003 0005 `......@........ 0x0010: 0000 0000 0000 010d XXXX XXXX XXXX XXXX ..........M..... 0x0020: 0000 0000 0000 0015 0019 10cf f147 c086 .............G.. 0x0030: 98aa c18d 5010 0f81 967b 0000 ....P....{.. Server offers options, STARTTLS being among them 21:59:18.965634 IP6 SERVER.25 > CLIENT.4303: Flags [P.], seq 78:218, ack 33, win 3969, length 140 0x0000: 6000 0000 00a0 0640 2001 0780 0003 0005 `......@........ 0x0010: 0000 0000 0000 010d XXXX XXXX XXXX XXXX ..........M..... 0x0020: 0000 0000 0000 0015 0019 10cf f147 c086 .............G.. 0x0030: 98aa c18d 5018 0f81 64d1 0000 3235 302d ....P...d...250- 0x0040: 7a65 6669 7269 732e 7365 6d69 6465 6669 zefiris.semidefi 0x0050: 6e69 7465 2e64 6520 4865 6c6c 6f20 XXXX nite.de.Hello.XX 0x0060: XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXXXXXXXXXXXXXX 0x0070: XXXX XXXX XXXX 205b XXXX XXXX 3aXX XXXX XXXXXX.[XXXX:XXX 0x0080: XX3a XXXX XXXX 3a3a 3135 5d0d 0a32 3530 X:XXXX::15]..250 0x0090: 2d53 495a 4520 3532 3432 3838 3030 0d0a -SIZE.52428800.. 0x00a0: 3235 302d 5049 5045 4c49 4e49 4e47 0d0a 250-PIPELINING.. 0x00b0: 3235 302d 5354 4152 5454 4c53 0d0a 3235 250-STARTTLS..25 0x00c0: 3020 4845 4c50 0d0a 0.HELP.. Thunderbird says STARTTLS 21:59:19.046348 IP6 CLIENT.4303 > SERVER.25: Flags [P.], seq 33:43, ack 218, win 65318, length 10 0x0000: 6000 0000 001e 063f XXXX XXXX XXXX XXXX `......?..M..... 0x0010: 0000 0000 0000 0015 2001 0780 0003 0005 ................ 0x0020: 0000 0000 0000 010d 10cf 0019 98aa c18d ................ 0x0030: f147 c112 5018 ff26 ba67 0000 5354 4152 .G..P..&.g..STAR 0x0040: 5454 4c53 0d0a TTLS.. Server says OK 21:59:19.056281 IP6 SERVER.25 > CLIENT.4303: Flags [P.], seq 218:236, ack 43, win 3969, length 18 0x0000: 6000 0000 0026 0640 2001 0780 0003 0005 `....&.@........ 0x0010: 0000 0000 0000 010d XXXX XXXX XXXX XXXX ..........M..... 0x0020: 0000 0000 0000 0015 0019 10cf f147 c112 .............G.. 0x0030: 98aa c197 5018 0f81 83f0 0000 3232 3020 ....P.......220. 0x0040: 544c 5320 676f 2061 6865 6164 0d0a TLS.go.ahead.. Thunderbird closes the connection. 21:59:19.090930 IP6 CLIENT.4303 > SERVER.25: Flags [F.], seq 43, ack 236, win 65300, length 0 0x0000: 6000 0000 0014 063f XXXX XXXX XXXX XXXX `......?..M..... 0x0010: 0000 0000 0000 0015 2001 0780 0003 0005 ................ 0x0020: 0000 0000 0000 010d 10cf 0019 98aa c197 ................ 0x0030: f147 c124 5011 ff14 fcc6 0000 .G.$P....... 21:59:19.091274 IP6 SERVER.25 > CLIENT.4303: Flags [F.], seq 236, ack 44, win 3969, length 0 0x0000: 6000 0000 0014 0640 2001 0780 0003 0005 `......@........ 0x0010: 0000 0000 0000 010d XXXX XXXX XXXX XXXX ..........M..... 0x0020: 0000 0000 0000 0015 0019 10cf f147 c124 .............G.$ 0x0030: 98aa c198 5011 0f81 967b 0000 ....P....{.. 21:59:19.122606 IP6 CLIENT.4303 > SERVER.25: Flags [.], ack 237, win 65300, length 0 0x0000: 6000 0000 0014 063f XXXX XXXX XXXX XXXX `......?..M..... 0x0010: 0000 0000 0000 0015 2001 0780 0003 0005 ................ 0x0020: 0000 0000 0000 010d 10cf 0019 98aa c198 ................ 0x0030: f147 c125 5010 ff14 fcc5 0000 .G.%P....... Expected Results: Thunderbird starts the TLS handshake. I have confirmed this bug at home with the current Windows XP 32 bit version as well as at work with the Linux 64 bit version. I'm pretty sure it's a general problem not related to the OS.
OS: Windows XP → All
Hardware: x86 → All
David shall I move that to Core ? And if I do NSS or NSPR ?
Component: General → Networking
Product: Thunderbird → MailNews Core
QA Contact: general → networking
Whiteboard: [has protocol logs]
NSS would be the better place to start.
Assignee: nobody → nobody
Component: Networking → Libraries
Product: MailNews Core → NSS
QA Contact: networking → libraries
I can confirm: * My earlier comment of this happening on Linux 64 bit was wrong. I tested this about a month ago and got the same generic error message, but couldn't tcpdump the connection at that time, so I assumed it was the same problem. It wasn't, it was completely unrelated. Sorry about that. * Everything works fine with Windows 7 64 bit. * My SO_RCVBUF defaults to >64 KB. So yeah, probably the same problem, just for Thunderbird instead of Firefox. I'm not familiar with the Mozilla build system, will the patch posted in that other bug fix it for Thunderbird too, or was it fixed in a Firefox-only place? Is a beta build of Thunderbird that includes this patch available to test the fix?
OS: All → Windows XP
Hardware: All → x86
The fix is in core code, so Thunderbird should get it. There are no builds with that patch in it, because it hasn't been checked in.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.