1

Topic: "Error: 303 See Other" received when deleting members from mailing lis

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL): iRedMail 0.8.0 OpenLDAP with 1.7.2 Pro
- Linux/BSD distribution name and version: CentOS 6.2
- Any related log? Log is helpful for troubleshooting.
====

I am receiving the following error whenever trying to "DELETE" members from a mailing list:

"Error: 303 See Other"

The entry (email alias) deletes from the mailing list but that error is displayed each time without fail. Is this a bug or am I the only one experiencing this issue?

----

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

2

Re: "Error: 303 See Other" received when deleting members from mailing lis

I cannot reproduce this issue, sorry. sad

3

Re: "Error: 303 See Other" received when deleting members from mailing lis

I am encountering same behavior (LDAP backend)

4

Re: "Error: 303 See Other" received when deleting members from mailing lis

I also have same problem. http://www.iredmail.org/forum/topic5205 … error.html

5

Re: "Error: 303 See Other" received when deleting members from mailing lis

I cannot reproduce this issue, it works fine for me here.

I need your help to figure it out:

*) Please show me LDIF data of this mailing list
*) Show me LDIF data of one of its internal member (it's just the LDIF data of the mail user)
*) *) Show me LDIF data of one of its external member (external member is stored under ou=Externals,domainName=[your_domain],o=domains,dc=xx,dc=xx)

Or, there's a quicker way to fix it: is it possible for you to give me SSH access so that i can debug on your server? It will be faster to get it solved. Switching to root user is required, we need to modify iRedAdmin source file for debugging.

6

Re: "Error: 303 See Other" received when deleting members from mailing lis

ZhangHuangbin wrote:

I cannot reproduce this issue, it works fine for me here.
1) Please show me LDIF data of this mailing list

dn: mail=list@example.org,ou=Groups,domainName=example.org,o=domains,dc=lan
accountStatus: active
cn: list
enabledService: mail
enabledService: deliver
mail: list@example.org
objectClass: mailList
ZhangHuangbin wrote:

2) Show me LDIF data of one of its internal member (it's just the LDIF data of the mail user)

dn: mail=user1@example.org,ou=Users,domainName=example.org,o=domains,dc=lan
accountStatus: active
amavisLocal: TRUE
cn: user1
enabledService: internal
enabledService: doveadm
enabledService: lib-storage
enabledService: mail
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: deliver
enabledService: lda
enabledService: recipientbcc
enabledService: senderbcc
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
homeDirectory: /var/vmail/vmail1/example.org/u/s/e/user1-2013.07.23.14.12.34/
mail: user1@example.org
mailMessageStore: vmail1/example.org/u/s/e/user1-2013.07.23.14.12.34/
mailQuota: 262144000
memberOfGroup: list@example.org
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
preferredLanguage: cs_CZ
shadowLastChange: 0
sn: user1
storageBaseDirectory: /var/vmail
uid: user1
userPassword: {SSHA}*****==
ZhangHuangbin wrote:

3) Show me LDIF data of one of its external member (external member is stored under ou=Externals,domainName=[your_domain],o=domains,dc=xx,dc=xx)

dn: memberOfGroup=list@example.org,ou=Externals,domainName=example.org,o=domains,dc=lan
accountstatus: active
enabledservice: mail
enabledservice: deliver
mail: external@user-example-domain.com
memberofgroup: list@example.org
objectclass: mailExternalUser
ZhangHuangbin wrote:

Or, there's a quicker way to fix it: is it possible for you to give me SSH access so that i can debug on your server? It will be faster to get it solved. Switching to root user is required, we need to modify iRedAdmin source file for debugging.

Sorry, at this time I can't arrange this. But it's reproducible on default install on FreeBSD 9.1. Just create list, add users (both external and internal) and try to delete one of internal members from the list (not from the user).

7

Re: "Error: 303 See Other" received when deleting members from mailing lis

Hi @rk,

Thanks for your help. I will setup a new FreeBSD 9.1 virtual machine and try to reproduce this issue again.
I'm working with forum user @"network nevsehir" too, hope we can get it solved soon.

8

Re: "Error: 303 See Other" received when deleting members from mailing lis

Attaching screenshot with the error message (recent google chrome browser). I was deleting user2@example.org. As You can see, the user was deleted, but the confusing error pops up.

Url of this page is

/profile/maillist/members/list@example.org?msg=303%20See%20Other

and it was served with error code 200 (not 303 post-redirect-get as one would expect).

Post's attachments

503.png
503.png 19.12 kb, file has never been downloaded. 

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

9 (edited by rain6966 2013-07-24 18:04:05)

Re: "Error: 303 See Other" received when deleting members from mailing lis

hi ,rk
maybe you must have a fresh system ,and install iredmail 0.8.1
http://www.iredmail.com/bbs/post10700.html#p10700

10

Re: "Error: 303 See Other" received when deleting members from mailing lis

Hi rain6966,

I don't think @rk can read Chinese. So let's keep the discussion in this thread.

11

Re: "Error: 303 See Other" received when deleting members from mailing lis

any news?

12

Re: "Error: 303 See Other" received when deleting members from mailing lis

Hi rk,

Author of this forum thread contacted me before, and we got it solved:
http://www.iredmail.org/forum/topic5205 … error.html

This is not an iRedAdmin-Pro bug, instead it's a OpenLDAP related issue.

During our debug with iRedAdmin-Pro and command line tool 'ldapdelete', OpenLDAP returns error message like this:

entry index delete failed, implementation specific error

It turns out OpenLDAP doesn't have correct INDEX. You can fix it with OpenLDAP builtin command 'slapindex'.

WARNING: You must stop OpenLDAP service first, then execute 'slapindex' command to generate correct index files.
Reference: http://www.openldap.org/software/man.cg … ormat=html

You can fix it yourself, or purchase our remote support service (just $29) to solve it for you remotely (via SSH, with root privileges):
http://www.iredmail.org/support.html

13

Re: "Error: 303 See Other" received when deleting members from mailing lis

Yes, thanks.

I found that too on lines 289-292 in controllers/ldap/maillist.py

290 raise web.seeother('/profile/maillist/members/%s?msg=%s' % (
291   self.mail, ldaputils.getExceptionDesc(e), )
292 )

My point is, that the error given to user is "303 See Other" instead of "entry index delete failed, implementation specific error".

Btw. I reindexed LDAP database, but the error is still there.

14

Re: "Error: 303 See Other" received when deleting members from mailing lis

rk wrote:

My point is, that the error given to user is "303 See Other" instead of "entry index delete failed, implementation specific error".

I know, but the root cause is OpenLDAP index issue.

rk wrote:

Btw. I reindexed LDAP database, but the error is still there.

May i know how you reindexed it? Did you restarting both OpenLDAP and Apache services?

15

Re: "Error: 303 See Other" received when deleting members from mailing lis

May i know how you reindexed it? Did you restarting both OpenLDAP and Apache services?

I stopped slapd, ran slapindex -v and then started slapd and restarted apache.

16

Re: "Error: 303 See Other" received when deleting members from mailing lis

Could you please try below tests?

1. Take the one account you have issue for testing. Backup its members first, so that you can re-create this account and update with correct members.

2. Try to delete this account with command line tool: ldapdelete. Show us the output.

3. If account was deleted successfully, please re-create it and add members back.

We want to make sure there's no LDAP index related issue while you performing step #2.

17

Re: "Error: 303 See Other" received when deleting members from mailing lis

With account you mean the whole group (maillist) or one of its members?

To be exact - should I remove:

a) DN mail=user@example.org,ou=Users,domainName=example.org,o=domains,dc=test
or
b) its memberOfGroup attribute
or
c) DN mail=list@example.org,ou=Groups,domainName=example.org,o=domains,dc=test

thanks

18

Re: "Error: 303 See Other" received when deleting members from mailing lis

this one:

rk wrote:

c) DN mail=list@example.org,ou=Groups,domainName=example.org,o=domains,dc=test