Closed Bug 733210 Opened 13 years ago Closed 7 years ago

IPv6 address literal is not usable as SMTP server name (no connection to server established)

Categories

(MailNews Core :: Networking: SMTP, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 199391

People

(Reporter: shrek-m, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.53.11 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10 Steps to reproduce: see bug #491843 IPv6 address literal is not usable as server name Same problem is now fixed for POP3, IMAP Set the smtp server name to "server.name" (IPv6) e.g. "ipv6.smtpserver.local" (2001:db8:1::2) all is ok Set the server name with the Config Editor to a "direct IPv6" address e.g. "2001:db8:1::2" you can not send mails. Actual results: There is absolutely no IPv6 network traffic with the "direct IPv6" but you get immediately the message: "Unable to authenticate to SMTP server 2001:db8:1::2. Please check the password, and verify the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'." daily 13.0a1 (2012-03-05) tested on the TB OSX machine with tcpdump. With the server name as IPv6, IPv6 network traffic is ok. With the "direct IPv6" # tcpdump -i en1 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on en1, link-type EN10MB (Ethernet), capture size 65535 bytes [... absolutely none IPv6 traffic ...]
Component: General → Networking: SMTP
Depends on: 491843
Product: Thunderbird → MailNews Core
QA Contact: general → networking.smtp
Summary: IPv6 address literal is not usable as SMTP server name → IPv6 address literal is not usable as SMTP server name (no connection to server established)
Version: unspecified → Trunk
Only as reminder. It is not possible to set a "direct IPv6" as server name, you get the message: "Please enter a valid server name." > max. allowed size for bugzilla $ strace -o daily-smtpserver-no-direct-ipv6.txt /usr/local/thunderbird/thunderbird 1. start daily 2. cancel logon "direct IPv6" IMAP 3. open settings 4. try to change the smtp server name from "ipv6.server.localdomain" to direct IPv6 "2001:db8:1::2" 5. Message: "Please enter a valid server name." 6. cancel and exit
OS: Mac OS X → All
Don't worry, that is prepared to be fixed in bug 80855. We just can't officially allow IPv6 literals when they do not work right. But if this one is fixed I think we can safely allow it in the Account settings. You need to edit the prefs.js file for now.
Blocks: 80855
SMTP test under Fedora 16 (linux x86) 1) SMTP with "server name" (ipv6.server.localdomain = IPv6 = 2001:db8:1::2) IPv6 SMTP network traffic is ok == this comment 2) SMTP with "direct IPv6" (2001:db8:1::2) "Unable to authenticate to SMTP server 2001:db8:1::2. Please check the password, and verify the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'." NO IPv6 SMTP network traffic == see next comment Info for the tests ---- IPv6 settings on the TB client machine ---- $ grep 2001: /etc/hosts 2001:db8:1::2 ipv6.server.localdomain $ ifconfig eth0 | grep inet inet Adresse:192.168.101.101 Bcast:192.168.101.255 Maske:255.255.255.0 inet6 Adresse: fe80::216:cbff:fea3:7629/64 Gültigkeitsbereich:Verbindung inet6 Adresse: 2001:db8:1::101/64 Gültigkeitsbereich:Global $ ping6 -c3 ipv6.server.localdomain PING ipv6.server.localdomain(ipv6.server.localdomain) 56 data bytes 64 bytes from ipv6.server.localdomain: icmp_seq=1 ttl=64 time=0.264 ms 64 bytes from ipv6.server.localdomain: icmp_seq=2 ttl=64 time=0.256 ms 64 bytes from ipv6.server.localdomain: icmp_seq=3 ttl=64 time=0.265 ms --- ipv6.server.localdomain ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.256/0.261/0.265/0.019 ms $ ping6 -c3 2001:db8:1::2 PING 2001:db8:1::2(2001:db8:1::2) 56 data bytes 64 bytes from 2001:db8:1::2: icmp_seq=1 ttl=64 time=0.274 ms 64 bytes from 2001:db8:1::2: icmp_seq=2 ttl=64 time=0.286 ms 64 bytes from 2001:db8:1::2: icmp_seq=3 ttl=64 time=0.271 ms --- 2001:db8:1::2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.271/0.277/0.286/0.006 ms ---- no ip6tables firewall (client and server) --- # ip6tables-save # # nmap -p 25,110,143 -6 2001:db8:1::2 -6 Starting Nmap 5.51 ( http://nmap.org ) at 2012-03-06 19:19 CET Nmap scan report for ipv6.server.localdomain (2001:db8:1::2) Host is up (0.00051s latency). PORT STATE SERVICE 25/tcp open smtp 110/tcp open pop3 143/tcp open imap Nmap done: 1 IP address (1 host up) scanned in 0.15 seconds Test 1) $ grep hostname .thunderbird/fd19lt71.default/prefs.js user_pref("mail.server.server1.hostname", "2001"); user_pref("mail.server.server1.realhostname", "2001:db8:1::2"); user_pref("mail.server.server2.hostname", "Local Folders"); user_pref("mail.smtpserver.smtp1.hostname", "ipv6.server.localdomain"); # tcpdump -ieth0 [...] 19:42:14.878059 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [S], seq 2524402730, win 14400, options [mss 1440,sackOK,TS val 11333762 ecr 0,nop,wscale 4], length 0 19:42:14.878316 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [S.], seq 538478560, ack 2524402731, win 14280, options [mss 1440,sackOK,TS val 9576909 ecr 11333762,nop,wscale 5], length 0 19:42:14.878348 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [.], ack 1, win 900, options [nop,nop,TS val 11333762 ecr 9576909], length 0 19:42:14.878858 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [P.], seq 1:38, ack 1, win 447, options [nop,nop,TS val 9576909 ecr 11333762], length 37 19:42:14.878880 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [.], ack 38, win 900, options [nop,nop,TS val 11333763 ecr 9576909], length 0 19:42:14.900733 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [P.], seq 1:27, ack 38, win 900, options [nop,nop,TS val 11333784 ecr 9576909], length 26 19:42:14.900942 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [.], ack 27, win 447, options [nop,nop,TS val 9576931 ecr 11333784], length 0 19:42:14.900977 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [P.], seq 38:164, ack 27, win 447, options [nop,nop,TS val 9576932 ecr 11333784], length 126 19:42:14.922219 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [P.], seq 27:72, ack 164, win 900, options [nop,nop,TS val 11333806 ecr 9576932], length 45 19:42:14.922502 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [P.], seq 164:178, ack 72, win 447, options [nop,nop,TS val 9576953 ecr 11333806], length 14 19:42:14.923489 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [P.], seq 72:106, ack 178, win 900, options [nop,nop,TS val 11333807 ecr 9576953], length 34 19:42:14.938100 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [P.], seq 178:192, ack 106, win 447, options [nop,nop,TS val 9576969 ecr 11333807], length 14 19:42:14.939646 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [P.], seq 106:112, ack 192, win 900, options [nop,nop,TS val 11333823 ecr 9576969], length 6 19:42:14.940159 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [P.], seq 192:229, ack 112, win 447, options [nop,nop,TS val 9576971 ecr 11333823], length 37 19:42:14.979731 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [.], ack 229, win 900, options [nop,nop,TS val 11333864 ecr 9576971], length 0 19:42:15.000462 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [P.], seq 112:490, ack 229, win 900, options [nop,nop,TS val 11333884 ecr 9576971], length 378 19:42:15.000645 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [P.], seq 490:493, ack 229, win 900, options [nop,nop,TS val 11333884 ecr 9576971], length 3 19:42:15.000856 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [.], ack 493, win 480, options [nop,nop,TS val 9577031 ecr 11333884], length 0 19:42:15.100597 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [P.], seq 229:263, ack 493, win 480, options [nop,nop,TS val 9577131 ecr 11333884], length 34 19:42:15.100635 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [.], ack 263, win 900, options [nop,nop,TS val 11333984 ecr 9577131], length 0 19:42:15.105797 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [P.], seq 493:499, ack 263, win 900, options [nop,nop,TS val 11333990 ecr 9577131], length 6 19:42:15.106203 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [P.], seq 263:278, ack 499, win 480, options [nop,nop,TS val 9577137 ecr 11333990], length 15 19:42:15.106236 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [F.], seq 278, ack 499, win 480, options [nop,nop,TS val 9577137 ecr 11333990], length 0 19:42:15.112933 IP6 macmini.localdomain.32917 > ipv6.server.localdomain.smtp: Flags [F.], seq 499, ack 279, win 900, options [nop,nop,TS val 11333997 ecr 9577137], length 0 19:42:15.113129 IP6 macmini.localdomain.60808 > ipv6.server.localdomain.imap: Flags [S], seq 184689668, win 14400, options [mss 1440,sackOK,TS val 11333997 ecr 0,nop,wscale 4], length 0 19:42:15.113164 IP6 ipv6.server.localdomain.smtp > macmini.localdomain.32917: Flags [.], ack 500, win 480, options [nop,nop,TS val 9577144 ecr 11333997], length 0 19:42:15.113328 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60808: Flags [S.], seq 2610587737, ack 184689669, win 14280, options [mss 1440,sackOK,TS val 9577144 ecr 11333997,nop,wscale 5], length 0 19:42:15.113350 IP6 macmini.localdomain.60808 > ipv6.server.localdomain.imap: Flags [.], ack 1, win 900, options [nop,nop,TS val 11333997 ecr 9577144], length 0 19:42:15.115474 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60808: Flags [P.], seq 1:171, ack 1, win 447, options [nop,nop,TS val 9577146 ecr 11333997], length 170 19:42:15.115515 IP6 macmini.localdomain.60808 > ipv6.server.localdomain.imap: Flags [.], ack 171, win 967, options [nop,nop,TS val 11333999 ecr 9577146], length 0 19:42:15.133865 IP6 macmini.localdomain.60808 > ipv6.server.localdomain.imap: Flags [P.], seq 1:23, ack 171, win 967, options [nop,nop,TS val 11334018 ecr 9577146], length 22 19:42:15.134072 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60808: Flags [.], ack 23, win 447, options [nop,nop,TS val 9577165 ecr 11334018], length 0 19:42:15.134100 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60808: Flags [P.], seq 171:175, ack 23, win 447, options [nop,nop,TS val 9577165 ecr 11334018], length 4 19:42:15.134311 IP6 macmini.localdomain.60808 > ipv6.server.localdomain.imap: Flags [P.], seq 23:49, ack 175, win 967, options [nop,nop,TS val 11334018 ecr 9577165], length 26 19:42:15.173977 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60808: Flags [.], ack 49, win 447, options [nop,nop,TS val 9577205 ecr 11334018], length 0 19:42:15.244723 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60808: Flags [P.], seq 175:531, ack 49, win 447, options [nop,nop,TS val 9577275 ecr 11334018], length 356 19:42:15.245551 IP6 macmini.localdomain.60808 > ipv6.server.localdomain.imap: Flags [P.], seq 49:69, ack 531, win 1034, options [nop,nop,TS val 11334129 ecr 9577275], length 20 19:42:15.245783 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60808: Flags [.], ack 69, win 447, options [nop,nop,TS val 9577276 ecr 11334129], length 0 19:42:15.245808 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60808: Flags [P.], seq 531:552, ack 69, win 447, options [nop,nop,TS val 9577276 ecr 1133 [...]
Test 2) $ grep hostname .thunderbird/fd19lt71.default/prefs.js user_pref("mail.server.server1.hostname", "2001"); user_pref("mail.server.server1.realhostname", "2001:db8:1::2"); user_pref("mail.server.server2.hostname", "Local Folders"); user_pref("mail.smtpserver.smtp1.hostname", "2001:db8:1::2"); # tcpdump -ieth0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 20:10:31.333884 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:31.337132 IP 192.168.101.254 > all-systems.mcast.net: igmp query v3 20:10:31.435599 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:31.535209 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:31.635396 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:31.735588 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:31.848410 IP 192.168.101.200.ipp > 192.168.101.255.ipp: UDP, length 217 20:10:31.850027 IP macmini.localdomain.41576 > blackhole-2.iana.org.domain: 23025% [1au] PTR? 200.101.168.192.in-addr.arpa. (57) 20:10:31.889913 IP blackhole-2.iana.org.domain > macmini.localdomain.41576: 23025 NXDomain*- 0/1/1 (134) 20:10:31.890613 IP macmini.localdomain.npdbgmngr > v.arin.net.domain: 24677% [1au] DS? 168.192.in-addr.arpa. (49) 20:10:31.923502 IP v.arin.net.domain > macmini.localdomain.npdbgmngr: 24677*- 0/4/1 (499) 20:10:32.849635 IP 192.168.101.200.ipp > 192.168.101.255.ipp: UDP, length 178 20:10:33.313817 IP 192.168.101.200 > igmp.mcast.net: igmp v3 report, 1 group record(s) 20:10:34.019602 IP 192.168.101.11.ipp > 192.168.101.255.ipp: UDP, length 171 20:10:34.019641 IP 192.168.101.11.ipp > 192.168.101.255.ipp: UDP, length 172 20:10:34.850878 IP 192.168.101.200.ipp > 192.168.101.255.ipp: UDP, length 184 20:10:35.791430 IP6 macmini.localdomain.60804 > ipv6.server.localdomain.imap: Flags [P.], seq 3044455533:3044455541, ack 1380538931, win 1302, options [nop,nop,TS val 13034675 ecr 11257717], length 8 20:10:35.791877 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60804: Flags [P.], seq 1:11, ack 8, win 480, options [nop,nop,TS val 11277832 ecr 13034675], length 10 20:10:35.791914 IP6 macmini.localdomain.60804 > ipv6.server.localdomain.imap: Flags [.], ack 11, win 1302, options [nop,nop,TS val 13034676 ecr 11277832], length 0 20:10:35.792931 IP6 macmini.localdomain.60804 > ipv6.server.localdomain.imap: Flags [P.], seq 8:18, ack 11, win 1302, options [nop,nop,TS val 13034677 ecr 11277832], length 10 20:10:35.793189 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60804: Flags [P.], seq 11:21, ack 18, win 480, options [nop,nop,TS val 11277833 ecr 13034677], length 10 20:10:35.793480 IP6 macmini.localdomain.60804 > ipv6.server.localdomain.imap: Flags [P.], seq 18:28, ack 21, win 1302, options [nop,nop,TS val 13034677 ecr 11277833], length 10 20:10:35.793840 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60804: Flags [P.], seq 21:32, ack 28, win 480, options [nop,nop,TS val 11277833 ecr 13034677], length 11 20:10:35.794094 IP6 macmini.localdomain.60804 > ipv6.server.localdomain.imap: Flags [P.], seq 28:38, ack 32, win 1302, options [nop,nop,TS val 13034678 ecr 11277833], length 10 20:10:35.794375 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60804: Flags [P.], seq 32:46, ack 38, win 480, options [nop,nop,TS val 11277834 ecr 13034678], length 14 20:10:35.798632 IP6 macmini.localdomain.60804 > ipv6.server.localdomain.imap: Flags [P.], seq 38:48, ack 46, win 1302, options [nop,nop,TS val 13034682 ecr 11277834], length 10 20:10:35.798879 IP6 ipv6.server.localdomain.imap > macmini.localdomain.60804: Flags [P.], seq 46:54, ack 48, win 480, options [nop,nop,TS val 11277839 ecr 13034682], length 8 20:10:35.838742 IP6 macmini.localdomain.60804 > ipv6.server.localdomain.imap: Flags [.], ack 54, win 1302, options [nop,nop,TS val 13034723 ecr 11277839], length 0 20:10:36.832458 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:36.859738 ARP, Request who-has 192.168.101.254 tell macmini.localdomain, length 28 20:10:36.860025 ARP, Reply 192.168.101.254 is-at 88:25:2c:62:a3:a0 (oui Unknown), length 46 20:10:36.932969 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:37.033001 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:37.133181 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:37.233383 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:38.283740 IP macmini.localdomain > igmp.mcast.net: igmp v3 report, 1 group record(s) 20:10:38.693565 IP 192.168.101.203 > igmp.mcast.net: igmp v3 report, 1 group record(s) 20:10:39.845996 IP 192.168.101.11 > 224.0.0.251: igmp v2 report 224.0.0.251 20:10:39.932876 (NOV-ETHII) IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-nearest-req FileServer 20:10:39.933259 (NOV-ETHII) IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-req FileServer 20:10:39.933647 (NOV-ETHII) IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-req DirectoryServer Netware 4.x 20:10:39.934038 IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-nearest-req FileServer 20:10:39.934429 IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-req FileServer 20:10:39.934824 IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-req DirectoryServer Netware 4.x 20:10:39.935209 IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-nearest-req FileServer 20:10:39.935593 IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-req FileServer 20:10:39.935980 IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-req DirectoryServer Netware 4.x 20:10:39.936382 (NOV-ETHII) IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-nearest-req FileServer 20:10:39.936785 (NOV-ETHII) IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-req FileServer 20:10:39.937187 (NOV-ETHII) IPX 00000000.00:c0:02:43:68:13.4013 > 00000000.ff:ff:ff:ff:ff:ff.0452: ipx-sap-req DirectoryServer Netware 4.x 20:10:42.335156 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:42.436487 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:42.536429 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:42.636619 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:42.736810 AT 255.89.1.zip > 0.0.zip: at-#6 25 20:10:42.937185 NBF Packet: Datagram ^C 56 packets captured 56 packets received by filter 0 packets dropped by kernel ----/---- IPv6 IMAP is ok NO IPv6 SMTP: "Unable to authenticate to SMTP server 2001:db8:1::2. Please check the password, and verify the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'."
No longer blocks: 80855
Blocks: 80855
Would be nice to have this for ipv6 launch day :(
You know who can look at it :)
Is this bug a duplicate of bug 199391?
Confirmed in 24.0 on Linux Ubuntu 64bit
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.