1

Topic: Unicode issue with forwards and missing whitelist/blacklists

==== Required information ====
- iRedMail version: 0.9.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: CentOS 6
- Related log if you're reporting an issue:
====

I recently upgraded from iRedMail 0.8.6 to 0.9.1 following the documentation you provided and the upgrade tools. I also upgraded our iRedAdmin-Pro-LDAP-2.1.1 to version iRedAdmin-Pro-LDAP-2.3.0 at the same time.

Now when adding forwards using the Admin panel we receive an error that states:

Error: ('expected a string in the list', u'username@domainname.com')

In some initial research I discovered this link: http://www.deseret-tech.com/journal/pyt … -the-list/

I also noticed that the whitelist/blacklist are still active but the lists in the Admin panel are now blank. Is this by design?

Thanks,

----

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

2

Re: Unicode issue with forwards and missing whitelist/blacklists

Do you add mail forwarding as a domain admin, or as self-service?

3

Re: Unicode issue with forwards and missing whitelist/blacklists

Hi Zhang,

The error occurred while adding the forward under the Domain Admin.

I went ahead and enabled self-service and that does not have the unicode error.

Thanks,

4

Re: Unicode issue with forwards and missing whitelist/blacklists

Forwarding issue can be fixed with below patch. New version of iRedAdmin-Pro will be available very soon.

diff -r b90b2a9f9141 libs/ldaplib/user.py
--- a/libs/ldaplib/user.py    Mon Jun 01 23:44:31 2015 +0800
+++ b/libs/ldaplib/user.py    Wed Jun 03 05:32:51 2015 +0800
@@ -673,7 +673,7 @@
     @decorators.require_domain_access
     def update(self, profile_type, mail, form):
         profile_type = web.safestr(profile_type)
-        mail = mail.lower()
+        mail = str(mail).lower()
         (username, self.domain) = mail.split('@', 1)
 
         domainAccountSetting = {}
globalfocus-systems wrote:

I also noticed that the whitelist/blacklist are still active but the lists in the Admin panel are now blank. Is this by design?

I'm not quite sure what this issue is, could you help capture a screenshot to help me understand it?

5

Re: Unicode issue with forwards and missing whitelist/blacklists

Here are some screenshots:

Before Upgrade:

https://mail.globalfocusdm.com/ired-lists-before.jpg

After Upgrade:

https://mail.globalfocusdm.com/ired-lists-after.jpg

Both Blacklists and Whitelist are still enforced but they no longer show in the interface which makes it hard for us to add/remove additional items.

Thanks,

6

Re: Unicode issue with forwards and missing whitelist/blacklists

*) Do you mean you cannot add per-domain whitelists?
*) Could you please upgrade to the latest iRedAdmin-Pro-LDAP-2.3.1 and test again? if it doesn't work, please let me know.

i tested global and per-domain wblist with iRedAdmin-Pro-LDAP-2.3.1, works fine for me.