1

Topic: Iredmail problem with autenticate with samba 4 in dmz

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

I had a problem in my implementation of iredmail. I follow http://www.iredmail.org/wiki/index.php? … y.iRedMail when a test the conection with de samba 4 server i received this query

telnet localhost 143
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
. login admin@example.com pa$$word
* OK Waiting for authentication process to respond..
* BYE Disconnected for inactivity during authentication.
Connection closed by foreign host.

The dmz is like this.

fw: 192.168.1.5
samba 4 server: 192.168.1.8
iredmail server: 192.168.1.11

----

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

2

Re: Iredmail problem with autenticate with samba 4 in dmz

What's content in /etc/dovecot/dovecot-ad.conf? Does the query filter return any value?

3

Re: Iredmail problem with autenticate with samba 4 in dmz

this is the content of /etc/dovecot/dovecot-ldap.conf
hosts           = samba4.example.com:389
ldap_version    = 3
auth_bind       = yes
dn              = admin@example.com
dnpass          = pa$$word
base            = dc=example,dc=com
scope           = subtree
deref           = never
user_filter     = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountCon$
pass_filter     = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountCon$
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = =home=/var/vmail/vmail1/%Ld/%Ln/Maildir/,=mail=maildir:/var/v$

4

Re: Iredmail problem with autenticate with samba 4 in dmz

Please paste FULL content.