1

Topic: Error: Invalid mail address.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.4.0
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:  FreeBSD 11.4-RELEASE-p9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?  Yes, iRedAdmin-Pro-SQL-4.8
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello after update to newest iRedAdmin-Pro-SQL-4.8 i can't add new email user with special char "=" like "no-reply=15=test@domain.com". Please help, I really need to create that specific account because of another mail server in our environment which is using that strange account name.

2

Re: Error: Invalid mail address.

Here's patch to fix it. Please restart "iredadmin" service after applied the patch.

diff --git a/libs/regxes.py b/libs/regxes.py
index f2bbf926..b8353aba 100644
--- a/libs/regxes.py
+++ b/libs/regxes.py
@@ -14,7 +14,7 @@ cmp_email = re.compile(r"^" + email + r"$", re.IGNORECASE | re.DOTALL)
 #
 # `auth_email` allows less characters than `email`.
 # Disallowed chars: `+`, `=`, `/`.
-auth_email = r"""[\w\-\#][\w\-\.\&\#]*@[\w\-][\w\-\.]*\.[a-zA-Z0-9\-]{2,15}"""
+auth_email = r"""[\w\-\#][\w\-\=\.\&\#]*@[\w\-][\w\-\.]*\.[a-zA-Z0-9\-]{2,15}"""
 cmp_auth_email = re.compile(r"^" + auth_email + r"$", re.IGNORECASE | re.DOTALL)
 
 # Wildcard sender address: 'user@*'

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: Error: Invalid mail address.

Hello
Everything working great.
Thx for Your help.

Best Regards
Pit