1 (edited by bluecat129 2014-08-25 20:14:59)

Topic: How To Connect iRedMail with LDAP to OpenLdap Server (separate Box)

Hi Zhang,


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

I'm Newbie to iredMail as well as in linux, my new company is currently using open source edition of iRedAdmin and are planning to migrate to iRedAdmin-Pro-LDAP..I currently testing on Ubuntu 14.04 with Separate LDAP Server to prepare for the migration.. i successfully installed the latest version of iredmail with LDAP backend and can now send internal email (local) and also installed phpldap on separate Ubuntu 14.04 server.
The question is, How can I  Connect iRedMail to my separate openldap server ??


Thanks!

----

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

2 (edited by kmihalj 2014-08-27 05:24:24)

Re: How To Connect iRedMail with LDAP to OpenLdap Server (separate Box)

bluecat129 wrote:

The question is, How can I  Connect iRedMail to my separate openldap server ??

I have similar issue, and I solve it with shell script in cron (every 4 hours) .... and I'm pretty happy with solution (asynchronous LDAP sync, so if my primary LDAP server die, mailserver is unaffected).

solution for this is in http://www.iredmail.org/forum/post27294.html#p27294

somebody with better programming skils can probably do it better...

3

Re: How To Connect iRedMail with LDAP to OpenLdap Server (separate Box)

Reference: http://www.iredmail.org/forum/topic2034 … erver.html

4

Re: How To Connect iRedMail with LDAP to OpenLdap Server (separate Box)

Thanks for the Reply..

Is there any step by step guide for non advanced users how to connect iRedMail with existing OpenLDAP server??


I done this steps already

1. Copied LDAP schema file "iredmail.schema" to LDAP server
2. copied ldap_init.ldif to LDAP Server (can't import all the object using phpldapadmin)
3. Change LDAP server address in Postfix/Dovecot/Roundcube config files on iRedMail server

Postfix (LDAP): i change server_host = ip pf my LDAP server
    * Configuration files:
        - /etc/postfix/ldap/virtual_mailbox_domains.cf
        - /etc/postfix/ldap/relay_domains.cf
        - /etc/postfix/ldap/transport_maps_domain.cf
        - /etc/postfix/ldap/transport_maps_user.cf
        - /etc/postfix/ldap/virtual_mailbox_maps.cf
        - /etc/postfix/ldap/sender_login_maps.cf
        - /etc/postfix/ldap/virtual_alias_maps.cf
        - /etc/postfix/ldap/virtual_group_maps.cf
        - /etc/postfix/ldap/virtual_group_members_maps.cf
        - /etc/postfix/ldap/catchall_maps.cf
        - /etc/postfix/ldap/recipient_bcc_maps_domain.cf
        - /etc/postfix/ldap/recipient_bcc_maps_user.cf
        - /etc/postfix/ldap/sender_bcc_maps_domain.cf
        - /etc/postfix/ldap/sender_bcc_maps_user.cf

Dovecot:
    * Configuration files:
       
       - /etc/dovecot/dovecot-ldap.conf

Roundcube webmail:
    * Configuration files:
        - /usr/share/apache2/roundcubemail-1.0.1/config/config.inc.php

5

Re: How To Connect iRedMail with LDAP to OpenLdap Server (separate Box)

bluecat129 wrote:

Is there any step by step guide for non advanced users how to connect iRedMail with existing OpenLDAP server??

You already did most steps.

bluecat129 wrote:

1. Copied LDAP schema file "iredmail.schema" to LDAP server

Schema file 'amavisd.schema' is required too.

6

Re: How To Connect iRedMail with LDAP to OpenLdap Server (separate Box)

Above reply mentioned that change "server_host = ip of my LDAP server" in configuration files in postfix/ . But there are some other values  in those configuration files still use the iredmail openldap servers values. such as
bind_dn         = cn=admin,dc=xxx,dc=xxxx
bind_pw         = xxxxxxxxxxxxxxxxxxxxxx
search_base     = o=domains,dc=xxx,dc=xxx

so do we have to change those values  with the working LDAP server ?