Author Topic: Active Directory Sync and IMAP email  (Read 2120 times)

jvoirol

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Active Directory Sync and IMAP email
« on: April 07, 2010, 05:58:25 pm »
I am having problems getting IMAP email working on ebox 1.4.1 with AD sync.  The AD sync part works great and brought over all of my users and groups.  I can log in to egroupware (http://SERVER/egroupware) with a newly created user and an existing user, I have email addresses setup for the users.  The problem I am having is when I try to get email using the egroupware site (http://SERVER/egroupware).  When I click on the email icon here is what I get:

The connection to the IMAP Server failed!!

NO, Temporary authentication failure.

Here is what I see in the /var/log/mail.err file:

Apr  7 11:27:19 jenolan dovecot: auth(default): LDAP: Can't connect to server: 127.0.0.1:1390

I can compose an email message from the egroupware site, send it, and it actually works.  I have 2 virtual mail domains, they are different from the Active Directory domain.  I have POP3 and POP3S disabled.

I also have problems with Thunderbird client logging onto the email account.

Any ideas?

jvoirol

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Active Directory Sync and IMAP email
« Reply #1 on: April 13, 2010, 05:50:44 pm »
Bump.

Anyone?

prusiel

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Active Directory Sync and IMAP email
« Reply #2 on: April 15, 2010, 06:49:21 pm »
edit /usr/share/ebox/stubs/mail/dovecot-ldap.conf.mas

Code: [Select]
# Space separated list of LDAP hosts to use. host:port is allowed too.
hosts = 127.0.0.1:<% $ldapport %>

change

Code: [Select]
# Space separated list of LDAP hosts to use. host:port is allowed too
hosts = 127.0.0.1:389

restart mail module
Not a good solution but works

jvoirol

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Active Directory Sync and IMAP email
« Reply #3 on: April 15, 2010, 07:33:22 pm »
Thanks for your reply.

I did this modification and IT WORKS!

Thank you very much, you are a life saver!
« Last Edit: April 15, 2010, 10:39:25 pm by jvoirol »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Active Directory Sync and IMAP email
« Reply #4 on: April 25, 2010, 10:47:59 am »
I've fixed it permanently here: http://trac.ebox-platform.com/changeset/17245

A new ebox-mail package will be released soon.

Thanks for reporting it!
Zentyal Server Lead Developer