1

Topic: error when adding memberto mailing list

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

TypeError('expected a string in the list', u'test@test.de')

====

Hi,

Since iRedAdmin 3.8 (LDAP) were getting the above error when adding a member to an alias. A screenshot is attached.

Post's attachments

Screenshot_2019-07-31 Profil bearbeiten(1).png 101.89 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: error when adding memberto mailing list

Sorry about this trouble.

Confirmed it's a bug of iRedAdmin-Pro-LDAP-3.7. You can fix it with patch below, if you're not familiar with patch, please contact us to get a patched version (https://www.iredmail.org/contact.html)

diff -r 9ffc675664f0 libs/iredutils.py
--- a/libs/iredutils.py    Wed Jul 31 09:27:15 2019 +0800
+++ b/libs/iredutils.py    Wed Jul 31 23:45:08 2019 +0800
@@ -863,7 +863,7 @@
             (_user, _ext) = _orig_user.split(delimiter, 1)
             return _user.lower() + delimiter + _ext + "@" + _domain.lower()
 
-    return mail
+    return str(mail)
 
 
 def get_password_policies(db_settings=None):

3

Re: error when adding memberto mailing list

UPDATE: I sent download link of patched version to support@ your domain, let me know if you didn't receive it.

4

Re: error when adding memberto mailing list

ZhangHuangbin wrote:

UPDATE: I sent download link of patched version to support@ your domain, let me know if you didn't receive it.

Thank you for the quick support. The update fixed our issue.