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.

----

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

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@*'

3

Re: Error: Invalid mail address.

Hello
Everything working great.
Thx for Your help.

Best Regards
Pit