Proxy to more Servers
Luca Bertoncello
lucabert at lucabert.de
Tue Jun 23 13:16:45 UTC 2015
Hi list!
Finally I got the LDAP-Authentication work (it was a problem of the
OU-Path... :( ).
Now I can authenticate the user against the AD and forwarding the
IMAP-Connection to the Exchange Server.
Wow!
My next problem: we have TWO ADs and TWO Exchange-Servers. The first
AD has the users for the first Exchange, and the second AD for the
second Exchange.
I defined two files so:
auth-ldap-OLDAD.conf.ext:
passdb {
driver = ldap
args = /etc/dovecot/dovecot-ldap-OLDAD.conf.ext
}
userdb {
driver = ldap
args = /etc/dovecot/dovecot-ldap-OLDAD.conf.ext
default_fields = imapc_user=%u imapc_password=%w imapc_ssl=imaps
imapc_host=sphinx.company.local imapc_port=993 driver=imap
uid=imapproxy gid=imapproxy home=/home/imapproxy
}
auth-ldap-NEWAD.conf.ext:
passdb {
driver = ldap
args = /etc/dovecot/dovecot-ldap-NEWAD.conf.ext
}
userdb {
driver = ldap
args = /etc/dovecot/dovecot-ldap-NEWAD.conf.ext
default_fields = imapc_user=%u imapc_password=%w imapc_ssl=imaps
imapc_host=exchange01.ad.company.org imapc_port=993 driver=imap
uid=imapproxy gid=imapproxy home=/home/imapproxy
}
Well, the authentication works as expected, but when a user of the
second AD/Exchanges tries to log in, after a SUCCESSFULLY
authentication can't speak with the new Exchange server... :(
In the log of Dovecot I see:
Jun 23 15:07:58 proxy01 dovecot: imap(chorris): Error: User
initialization failed: Namespace '': Mailbox list driver imapc:
missing imapc_host
Jun 23 15:07:58 proxy01 dovecot: imap(chorris): Error: Invalid user
settings. Refer to server log for more information.
Could someone explain me, why the configuration for imapc_host in the
second file are ignored?
Thanks
Luca Bertoncello
(lucabert at lucabert.de)
More information about the dovecot
mailing list