Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why does Thunderbird warn me that my email address with so called gTLDs or generic Top-Level Domain is wrong ?

  • 2 replies
  • 2 have this problem
  • 4 views
  • Last reply by alexcube

I'm owner of something.foundation generic Top-Level Domain [gTLDs]. When I try to setup new mail account for an email address whose format is name@something.foundation a warning message appearing which suggests that such address is incorrect.

I'm owner of something.foundation generic Top-Level Domain [gTLDs]. When I try to setup new mail account for an email address whose format is name@something.foundation a warning message appearing which suggests that such address is incorrect.

Chosen solution

Hmm, name@something.foundation should work. Or should I say, it should not draw any objection based on the host name -- the text to the right of the @ symbol.

I think the code used by Thunderbird to check the host name is this function:

https://dxr.mozilla.org/comm-release/source/mailnews/base/util/hostnameUtils.jsm#52

When I use Firefox's web console to test that comparison code, something.foundation checks out, as well as mail.something.foundation (in case your actual host name contains a subdomain). Here's what I did:

Open Firefox's Web Console in the lower part of a tab using either:

  • Ctrl+Shift+k
  • "3-bar" menu button > Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console

Paste the following in the slot at the bottom and press Enter to run it:

var aHostName = "something.foundation"; var hostPattern = /^(([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])\.?$/i; if((aHostName.length <= 255) && hostPattern.test(aHostName)) console.log("It's valid"); else console.log("Hate it");

and/or

var aHostName = "mail.something.foundation"; var hostPattern = /^(([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])\.?$/i; if((aHostName.length <= 255) && hostPattern.test(aHostName)) console.log("It's valid"); else console.log("Hate it");

Unless Thunderbird has started doing something new...

Read this answer in context 👍 1

All Replies (2)

Chosen Solution

Hmm, name@something.foundation should work. Or should I say, it should not draw any objection based on the host name -- the text to the right of the @ symbol.

I think the code used by Thunderbird to check the host name is this function:

https://dxr.mozilla.org/comm-release/source/mailnews/base/util/hostnameUtils.jsm#52

When I use Firefox's web console to test that comparison code, something.foundation checks out, as well as mail.something.foundation (in case your actual host name contains a subdomain). Here's what I did:

Open Firefox's Web Console in the lower part of a tab using either:

  • Ctrl+Shift+k
  • "3-bar" menu button > Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console

Paste the following in the slot at the bottom and press Enter to run it:

var aHostName = "something.foundation"; var hostPattern = /^(([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])\.?$/i; if((aHostName.length <= 255) && hostPattern.test(aHostName)) console.log("It's valid"); else console.log("Hate it");

and/or

var aHostName = "mail.something.foundation"; var hostPattern = /^(([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])\.?$/i; if((aHostName.length <= 255) && hostPattern.test(aHostName)) console.log("It's valid"); else console.log("Hate it");

Unless Thunderbird has started doing something new...

tnx jscher2000 and my apologies for post! The problem was on server side, not on client. I was confused because of this message, which appeared during the settings. Anyway, Thunderbird works very well with gTLDs.