1

Topic: Errors after upgrade to iRedAdmin-Pro-LDAP-2.4.0

================================ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: CentOS Linux release 7.2.1511 (Core)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====

Errors when i use "action menu" in iRedAdmin-Pro-LDAP-2.4.0 (after upgrade or fresh install)

How to reproduce it:
1. click to "Domains and Accounts"
2. next to "List all mail users"
3. in action menu choose "Disable"
4. press "Apply" button and I received the http error 404 not found (in url: https://vm-iredmail.locadomain/iredadmi … =DISABLED)
5. mail account is disabled
Screen shots in attachment 1 and 2

A similar error then using "action menu" in "activities"
1. select address from "Top 10 senders"
2. in action menu choose "Delete selected"
3. press "Apply" button and I received the http error 404 not found (in url: https://vm-iredmail.localdomain/iredadm … in/page/1)
4. mail isn't deleted from amavisd database
Screen shots in attachment 4 and 3

Post's attachments

iredmail1.png
iredmail1.png 43.17 kb, file has never been downloaded. 

iredmail2.png
iredmail2.png 19.81 kb, file has never been downloaded. 

iredmail5.png
iredmail5.png 39.8 kb, file has never been downloaded. 

iredmail6.png
iredmail6.png 16.83 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: Errors after upgrade to iRedAdmin-Pro-LDAP-2.4.0

Caused by an incorrect regular expression which checks mail domain name or email address.  Please fix it with this patch:
http://www.iredmail.org/forum/post44744.html#p44744

or, i can send you a patched version, then you upgrade it by run 'tools/upgrade_iredadmin.sh' as usual.

3

Re: Errors after upgrade to iRedAdmin-Pro-LDAP-2.4.0

by the way I think similar error described in post http://www.iredmail.org/forum/topic1028 … ql220.html

Action menu works fine in all domains list and in "System -> Mail Log -> Sent Mails  or Received Mails"

Post's attachments

iredmail3.png
iredmail3.png 26.05 kb, file has never been downloaded. 

iredmail4.png
iredmail4.png 26.42 kb, file has never been downloaded. 

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

4

Re: Errors after upgrade to iRedAdmin-Pro-LDAP-2.4.0

ZhangHuangbin wrote:

Caused by an incorrect regular expression which checks mail domain name or email address.  Please fix it with this patch:
http://www.iredmail.org/forum/post44744.html#p44744

Thanks, this patch fixed error on license page, but action menu still broken.

5

Re: Errors after upgrade to iRedAdmin-Pro-LDAP-2.4.0

POST https://vm-iredmail.localdomain/iredadmin/users/example.com
Status code: 303

Request Headers:

Host: vm-iredmail.localdomain
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://vm-iredmail.localdomain/iredadmin/users/example.com
Cookie: iRedAdmin-Pro-ldap=696a2399895c3603e19e27b4f2014e7293b2553b
Connection: keep-alive

Response headers:

Connection: keep-alive
Content-Type: text/html
Date: Sun, 20 Dec 2015 15:02:11 GMT
Location: https://vm-iredmail.localdomain/iredadmin/users/example.com/page/1?msg=DISABLED
Server: nginx
Set-Cookie: iRedAdmin-Pro-ldap=696a2399895c3603e19e27b4f2014e7293b2553b; Path=/iredadmin/; httponly
Strict-Transport-Security: max-age=63072000; includeSubdomains
Transfer-Encoding: chunked

Request Body:

Content-Type: application/x-www-form-urlencoded
Content-Length: 116
csrf_token=SrSQawoOuG8ACtZUN2YlXHYmsYaBxVR3&mail=testuser%40example.com&cur_page=1&action=disable&submit_users=Apply

6

Re: Errors after upgrade to iRedAdmin-Pro-LDAP-2.4.0

GET https://vm-iredmail.localdomain/iredadmin/users/example.com/page/1?msg=DISABLED
Status code: 404

Query Strung:

msg=DISABLED

Request Headers:

Host: vm-iredmail.localdomain
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://vm-iredmail.localdomain/iredadmin/users/example.com
Cookie: iRedAdmin-Pro-ldap=696a2399895c3603e19e27b4f2014e7293b2553b
Connection: keep-alive

Response Headers:

Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html
Date: Sun, 20 Dec 2015 15:02:11 GMT
Server: nginx
Set-Cookie: iRedAdmin-Pro-ldap=696a2399895c3603e19e27b4f2014e7293b2553b; Path=/iredadmin/; httponly
Transfer-Encoding: chunked

Request Body:

Content-Type: application/x-www-form-urlencoded
Content-Length: 116
csrf_token=SrSQawoOuG8ACtZUN2YlXHYmsYaBxVR3&mail=testuser%40example.com&cur_page=1&action=disable&submit_users=Apply

7

Re: Errors after upgrade to iRedAdmin-Pro-LDAP-2.4.0

vsolomatin wrote:

Thanks, this patch fixed error on license page, but action menu still broken.

Please try the second patch in this post (you already applied first patch):
http://www.iredmail.org/forum/post44789.html#p44789

8

Re: Errors after upgrade to iRedAdmin-Pro-LDAP-2.4.0

ZhangHuangbin wrote:

Please try the second patch in this post (you already applied first patch):
http://www.iredmail.org/forum/post44789.html#p44789

Thanks, second patch fixed it.