1

Topic: Search filter issue in iRedAdmin-Pro Control panel

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

Hi All,

When i search for mail transaction logs (ex: email received or sent to gmail.com) in control panel as a domain admin it is fetching all other domain users logs also.

Kindly suggest how to restrict the search per domain wise for domain admin.

Below are search filter in amavisd.conf:
=====================================
# Integrate Amavisd-new with OpenLDAP.
$enable_ldap    = 1;    # 1 -> enable, 0 -> disable.
$default_ldap   = {
    hostname        => "127.0.0.1",
    port            => 389,
    version         => 3,
    tls             => 0,
    timeout         => 120,
    base            => "o=domains,dc=****,dc=********,dc=com",
    scope           => "sub",
    query_filter    => "(&(objectClass=mailUser)(objectClass=amavisAccount)(accountStatus=active)(|(mail=%m)(shadowAddress=%m)))",
    bind_dn         => "cn=vmail,dc=****,dc=***********,dc=com",
    bind_password   => "**************",
===========================================

Thanks in advance.

Khanb

2

Re: Search filter issue in iRedAdmin-Pro Control panel

It's not a Amavisd issue.
Did you try the latest iRedAdmin-Pro-LDAP-2.1? Does it happen again?

3

Re: Search filter issue in iRedAdmin-Pro Control panel

ZhangHuangbin wrote:

It's not a Amavisd issue.
Did you try the latest iRedAdmin-Pro-LDAP-2.1? Does it happen again?

Hi Zhang,

I am using IRedAdmin-Pro-LDAP-1.6.3 version. Can u guide me how do i achieve result here. Seems like it is a bug.

Regards,

Khanb

4

Re: Search filter issue in iRedAdmin-Pro Control panel

Hi Khanb,

Please try iRedAdmin-Pro-LDAP-2.1 first, v1.6.3 is too old.