1

Topic: Setting up iRedMail with Active Directory with different OUs

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

iRedMail-0.8.7 on Ubuntu 14.04

I have successfully setup the iRedmail to work with Active Directory/Server 2008 R2 - using the link http://www.iredmail.org/docs/active.directory.html

default search_base and base are in the following files, = cn=users,dc=example,dc=com

/etc/postfix/ad_sender_login_maps.cf
/etc/postfix/ad_virtual_mailbox_maps.cf
/etc/postfix/ad_virtual_group_maps.cf

/etc/dovecot/dovecot-ldap.conf


I got users in different OU, called "staff" and I tried to change like ...
cn=staff,dc=example,dc=com , also cn=staff,dc=example,dc=com in all three files in search_base and base

but it didn't help - authentication failed, can any one suggest to fix 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: Setting up iRedMail with Active Directory with different OUs

Just turn on debug in ad_*_maps.cf to check why it doesn't return correct data.

3

Re: Setting up iRedMail with Active Directory with different OUs

ZhangHuangbin wrote:

Just turn on debug in ad_*_maps.cf to check why it doesn't return correct data.

I enabled in the file -  /etc/postfix/ad_sender_login_maps.cf and got the error message as below;



Nov 13 23:35:03 mail-uu roundcube: IMAP Error: Login failed for test@doamin.com.au from 192.168.7.21. LOGIN: Temporary authentication failure. [mail-uu.domain.com.au:2014-11-13 12:35:03] in /usr/share/apache2/roundcubemail-1.0.1/program/lib/Roundcube/rcube_imap.php on line 184 (POST /mail/?_task=login?_task=login&_action=login)


search base on /etc/postfix/ad_sender_login_maps.cf

search_base     = ou=staff,dc=domain,dc=com,dc=au

any suggestion with this error.

4

Re: Setting up iRedMail with Active Directory with different OUs

Pasted log is useless. You should follow our tutorial to debug it:
http://www.iredmail.org/docs/active.dir … in-postfix

5

Re: Setting up iRedMail with Active Directory with different OUs

ZhangHuangbin wrote:

Pasted log is useless. You should follow our tutorial to debug it:
http://www.iredmail.org/docs/active.dir … in-postfix

I set in the all 4 files in the format - ou=staff,dc=domain,dc=com,dc=au

and got that working. thanks

6

Re: Setting up iRedMail with Active Directory with different OUs

How to integrate calendar feature in iredmal server to use with roundcube?
Note. my redmail server uses Active Directory integrated users.

7

Re: Setting up iRedMail with Active Directory with different OUs

You can try SOGo groupware (http://sogo.nu/) or other calendar solutions.
iRedMail-0.9.0-rc2 integrates SOGo groupware to provide calendar/contacts service.