1

Topic: Error when removing user from Mailing List

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

When I uncheck a group membership in the User Management Screen and save the data, I get this error message at the top of the screen.

Error: {'matched': 'o=domains,dc=ansspc,dc=com', 'desc': 'No such object'}

----

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 removing user from Mailing List

- Could you take a screenshot of the "User Management Screen" to help us understand this issue?
- Is this a local mail user (member), or a external user (like Gmail, hotmail user)?

3

Re: Error when removing user from Mailing List

ZhangHuangbin wrote:

- Could you take a screenshot of the "User Management Screen" to help us understand this issue?
- Is this a local mail user (member), or a external user (like Gmail, hotmail user)?

This is a local mail user. In this case I was trying to adjust her Quota. Attached a PNG file.

4

Re: Error when removing user from Mailing List

No image attached. sad

5

Re: Error when removing user from Mailing List

ZhangHuangbin wrote:

No image attached. sad

I think I attached it correctly this time.

Tom

Post's attachments

iRedMail.PNG
iRedMail.PNG 65.07 kb, 1 downloads since 2018-09-02 

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

6

Re: Error when removing user from Mailing List

tom cotton wrote:

When I uncheck a group membership in the User Management Screen and save the data, I get this error message at the top of the screen.

Does the checked group exist? Is it an old mailing list, or the new mlmmj mailing list?

7

Re: Error when removing user from Mailing List

ZhangHuangbin wrote:
tom cotton wrote:

When I uncheck a group membership in the User Management Screen and save the data, I get this error message at the top of the screen.

Does the checked group exist? Is it an old mailing list, or the new mlmmj mailing list?

Yes, the checked groups exist. The groups are old mailing lists.

I have found that this also occurs when I was changing the mailbox quota. The mailbox quota was the only field changed on the form.

Post's attachments

Capture.PNG
Capture.PNG 62.36 kb, 1 downloads since 2018-09-03 

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

8

Re: Error when removing user from Mailing List

tom cotton wrote:
ZhangHuangbin wrote:
tom cotton wrote:

When I uncheck a group membership in the User Management Screen and save the data, I get this error message at the top of the screen.

Does the checked group exist? Is it an old mailing list, or the new mlmmj mailing list?

Yes, the checked groups exist. The groups are old mailing lists.

I have found that this also occurs when I was changing the mailbox quota. The mailbox quota was the only field changed on the form.

I need to get this fixed as I cannot make any changes to these users because the error prevents any save of changes. How do I get this fixed?

9

Re: Error when removing user from Mailing List

Dear Tom,

I'm working on it and will give you a patch soon. Stay tuned.
If i didn't reply, feel free to contact me directly: zhb at iredmail dot org.

10

Re: Error when removing user from Mailing List

Hi Tom,

Could you try this patch? it works for me:

diff -r 6b3edfb63a75 libs/ldaplib/user.py
--- a/libs/ldaplib/user.py      Mon Sep 03 00:15:20 2018 +0800
+++ b/libs/ldaplib/user.py      Sun Sep 09 07:35:17 2018 +0800
@@ -1419,7 +1419,7 @@
             _subscribed_mls = _qr[1]
 
         # Get newly subscribed and unsubscribed lists
-        _unsubscribe_lists = [i for i in _existing_mls if i not in _subscribed_mls]
+        _unsubscribe_lists = [i for i in _subscribed_mls if i not in _existing_mls]
         _new_subscribed_lists = [i for i in _existing_mls if i not in _subscribed_mls]
 
         for l in _unsubscribe_lists:

11

Re: Error when removing user from Mailing List

ZhangHuangbin wrote:

Hi Tom,

Could you try this patch? it works for me:

diff -r 6b3edfb63a75 libs/ldaplib/user.py
--- a/libs/ldaplib/user.py      Mon Sep 03 00:15:20 2018 +0800
+++ b/libs/ldaplib/user.py      Sun Sep 09 07:35:17 2018 +0800
@@ -1419,7 +1419,7 @@
             _subscribed_mls = _qr[1]
 
         # Get newly subscribed and unsubscribed lists
-        _unsubscribe_lists = [i for i in _existing_mls if i not in _subscribed_mls]
+        _unsubscribe_lists = [i for i in _subscribed_mls if i not in _existing_mls]
         _new_subscribed_lists = [i for i in _existing_mls if i not in _subscribed_mls]
 
         for l in _unsubscribe_lists:

I would like to but don't really know how to. Do you have instructions as to how to run this?

Thanks for your help.

12

Re: Error when removing user from Mailing List

I can help patch it if it's ok to grant me direct ssh access. Contact me directly please: zhb at iredmail dot org.