1

Topic: "Invalid domain name" error when using new gTLD extensions

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.4
- Related log if you're reporting an issue:
====

Dear Zhang,

I kindly ask you to update the check performed when inserting new domain names to manage on iRedAdmin-Pro.
In fact, trying to insert a new domain domain with a new gTLD extension (es. xxx.ventures) I receive the "invalid domain name" error, while it is a perfectly correct and live domain name!

Best regards,

Luca

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: "Invalid domain name" error when using new gTLD extensions

Dear Zhang,

following my previous message, please kindly provide a patch for all iRedAdmin-Pro system, because even correcting the domain on vmail db, iRedAdmin-Pro refuses to manage it correctly hmm (ie. "not found" error when trying to manage the domain, or the domain not listed when adding new users).

Best regards,

Luca

3

Re: "Invalid domain name" error when using new gTLD extensions

OK, here's patch for iRedAdmin-Pro:

diff -r 9280c1988e7d libs/iredutils.py
--- a/libs/iredutils.py    Sat Feb 22 14:01:37 2014 +0800
+++ b/libs/iredutils.py    Thu Feb 27 11:03:22 2014 +0800
@@ -16,10 +16,10 @@
 # Regular expressions.
 #
 # Mail address. +, = is used in SRS rewritten addresses.
-regx_email = r'''[\w\-][\w\-\.\+\=]*@[\w\-][\w\-\.]*\.[a-zA-Z]{2,6}'''
+regx_email = r'''[\w\-][\w\-\.\+\=]*@[\w\-][\w\-\.]*\.[a-zA-Z]{2,10}'''
 
 # Domain name
-regx_domain = r'''[\w\-][\w\-\.]*\.[a-z]{2,6}'''
+regx_domain = r'''[\w\-][\w\-\.]*\.[a-z]{2,10}'''
 
 
 def is_email(s):

This fix will be available in next release of iRedAdmin-Pro.

4

Re: "Invalid domain name" error when using new gTLD extensions

ZhangHuangbin wrote:

OK, here's patch for iRedAdmin-Pro:

diff -r 9280c1988e7d libs/iredutils.py
--- a/libs/iredutils.py    Sat Feb 22 14:01:37 2014 +0800
+++ b/libs/iredutils.py    Thu Feb 27 11:03:22 2014 +0800
@@ -16,10 +16,10 @@
 # Regular expressions.
 #
 # Mail address. +, = is used in SRS rewritten addresses.
-regx_email = r'''[\w\-][\w\-\.\+\=]*@[\w\-][\w\-\.]*\.[a-zA-Z]{2,6}'''
+regx_email = r'''[\w\-][\w\-\.\+\=]*@[\w\-][\w\-\.]*\.[a-zA-Z]{2,10}'''
 
 # Domain name
-regx_domain = r'''[\w\-][\w\-\.]*\.[a-z]{2,6}'''
+regx_domain = r'''[\w\-][\w\-\.]*\.[a-z]{2,10}'''
 
 
 def is_email(s):

This fix will be available in next release of iRedAdmin-Pro.

Dear Zhang,

thank you for the quick reply and for the patch smile
However, If I try to edit the account profile for a "new extension" domain (ie. xxx.ventures), when visiting the URL iredadmin/profile/domain/general/xxx.ventures I receive the "not found" error.


Luca

5

Re: "Invalid domain name" error when using new gTLD extensions

Did you restart Apache service after modified file?

6

Re: "Invalid domain name" error when using new gTLD extensions

ZhangHuangbin wrote:

Did you restart Apache service after modified file?

Forgot it hmm !
Now everything's ok!