1 (edited by chrispyfur 2014-11-06 19:23:42)

Topic: Support new domain name without upgrading everything

- iRedMail version: 0.81
- Store mail accounts in which backend (MySQL):
- Linux/BSD distribution name and version: debian 7

Hi, I'm running iredadminpro v1.4.0 and I need to quickly add support for new domain names like .holdings and .solutions.

I'm migrating this whole server to a new one shortly and don't want to follow the laborious upgrade process up through 8 versions of iredmail just to get this support in there.

Is there any way to hack the current system to allow it to support these newer style domain names? Is there a list of acceptable suffixes I can add to somewhere for example?

Chris.

----

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

2

Re: Support new domain name without upgrading everything

Sure. Find below two parameters in file libs/iredutils.py, replace their value by below two:

regx_email = r'''[\w\-][\w\-\.\+\=]*@[\w\-][\w\-\.]*\.[a-zA-Z]{2,15}'''
regx_domain = r'''[\w\-][\w\-\.]*\.[a-z]{2,15}'''

Note: the variable names might be different the above ones, but you can still easily find them, don't change the variable names, just change their values.

3

Re: Support new domain name without upgrading everything

Hi, I tried this, replacing the values below:

#reEmail = r'''[\w\-][\w\-\.]*@[\w\-][\w\-\.]+[a-zA-Z]{2,6}'''
reEmail = r'''[\w\-][\w\-\.\+\=]*@[\w\-][\w\-\.]*\.[a-zA-Z]{2,15}'''
# Domain.
#reDomain = r'''[\w\-][\w\-\.]*\.[a-z]{2,6}'''
reDomain = r'''[\w\-][\w\-\.]*\.[a-z]{2,15}'''

But I still get:

Error: Invalid domain name.

Chris.

4

Re: Support new domain name without upgrading everything

Did you restart Apache service after modified libs/iredutils.py?

5

Re: Support new domain name without upgrading everything

Bingo! That worked, thanks.