[Dovecot] problems with folders in another server (2nd. issue)
Hello ppl,
we are using two servers, with dovecot 2.0.5, Sx and Sy, with:
cat dovecot-ldap-ext: ... pass_attrs = uid=user,userPassword=password,=y=proxy,mailHost=host ...
When I access server Sx via IMAP I see all my folders. When I access server Sy via IMAP it do not proxy to Sx.
I want to see my IMAP folders independently of the server.
any help?
-- :) cumprimentos
José Luís Faria Network Eng./Administrador de Sistemas Departamento de Informática Universidade do Minho Braga, Portugal
On Thu, 2010-11-18 at 12:55 +0000, Jose Luis Faria wrote:
we are using two servers, with dovecot 2.0.5, Sx and Sy, with:
cat dovecot-ldap-ext: ... pass_attrs = uid=user,userPassword=password,=y=proxy,mailHost=host ...
When I access server Sx via IMAP I see all my folders. When I access server Sy via IMAP it do not proxy to Sx.
It doesn't look like it's even trying to proxy. Otherwise your login to Sx would fail with "Proxying loops to itself" error. So..
Change =y=proxy to =y=proxy_maybe
Show your doveconf -n output
Set auth_debug=yes and show the logs when logging in to Sy.
Hello Timo,
I'm using qmail-LDAP in cluster with 2 servers:
mx1.di.uminho.pt and mx2.di.uminho.pt
the email cx1 is on mx1 and I want to get access using both servers.
dovecot-ldap.conf.ext: ... pass_attrs = uid=user,userPassword=password,=y=proxy_maybe,mailHost=host ...
every user on LDAP have the attribute
mailHost=mx1.di.uminho.pt
or
mailHost=mx2.di.uminho.pt
dovecot_debug.log:
Nov 18 17:54:11 auth: Debug: ldap(cx1,127.0.0.1): result: uid(user)=cx1 userPassword(password)=<hidden> mailHost(host)=193.136.19.24 Nov 18 17:54:11 auth: Debug: client out: OK 1 user=cx1 host=193.136.19.24 y=proxy_maybe Nov 18 17:54:11 auth: Debug: master in: REQUEST 1 31148 1 4e4916b2f719ec9b4f6df62d8b007b3a Nov 18 17:54:11 auth: Debug: ldap(cx1,127.0.0.1): user search: base=dc=di, dc=uminho, dc=pt scope=subtree filter=(&(objectClass=qmailUser)(uid=cx1)) fields=mailMessageStore,qmailUID,qmailGID Nov 18 17:54:11 auth: Debug: ldap(cx1,127.0.0.1): result: mailMessageStore(home)=/var/qmail/maildirs1/cx1 qmailGID(gid)=800 qmailUID(uid)=800 Nov 18 17:54:11 auth: Debug: master out: USER 1 cx1 home=/var/qmail/maildirs1/cx1 gid=800 uid=800
#dovecot -n
# 2.0.2: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.9-42.0.2.ELsmp x86_64 CentOS release 4.3 (Final) auth_debug = yes auth_mechanisms = plain login base_dir = /var/run/dovecot/ debug_log_path = /var/log/dovecot/dovecot_debug.log default_client_limit = 100 default_login_user = nobody director_servers = /etc/dovecot/director disable_plaintext_auth = no info_log_path = /var/log/dovecot/dovecot_mail.log listen = * log_path = /var/log/dovecot/dovecot.log mail_location = maildir:~/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date imapflags notify passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename setting_name = sieve sieve = ~/sieve/dovecot.sieve sieve_dir = ~/sieve sieve_extensions = +notify +imapflags sieve_max_actions = 32 sieve_max_redirects = 4 sieve_max_script_size = 1M } postmaster_address = jose@di.uminho.pt protocols = imap pop3 sieve service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service managesieve-login { inet_listener sieve { port = 4190 } process_min_avail = 0 service_count = 1 vsz_limit = 134217728 } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } ssl_cert =
-- :) cumprimentos
José Luís Faria Network Eng./Administrador de Sistemas Departamento de Informática Universidade do Minho Braga, Portugal
Em 18-11-2010 17:27, Timo Sirainen escreveu:
On Thu, 2010-11-18 at 12:55 +0000, Jose Luis Faria wrote:
we are using two servers, with dovecot 2.0.5, Sx and Sy, with:
cat dovecot-ldap-ext: ... pass_attrs = uid=user,userPassword=password,=y=proxy,mailHost=host ...
When I access server Sx via IMAP I see all my folders. When I access server Sy via IMAP it do not proxy to Sx.
It doesn't look like it's even trying to proxy. Otherwise your login to Sx would fail with "Proxying loops to itself" error. So..
Change =y=proxy to =y=proxy_maybe
Show your doveconf -n output
Set auth_debug=yes and show the logs when logging in to Sy.
On Thu, 2010-11-18 at 17:58 +0000, Jose Luis Faria wrote:
pass_attrs = uid=user,userPassword=password,=y=proxy_maybe,mailHost=host ... Nov 18 17:54:11 auth: Debug: client out: OK 1 user=cx1 host=193.136.19.24 y=proxy_maybe
See the "y=proxy_maybe". It should be "proxy_maybe=y", meaning you should set:
pass_attrs = uid=user,userPassword=password,=proxy_maybe=y,mailHost=host
(Some day I need to redesign this LDAP configuration. It's horribly ugly.)
participants (2)
-
Jose Luis Faria
-
Timo Sirainen