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 = j...@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 = </var/qmail/control/mx2_ate_2020.pem
ssl_key = </var/qmail/control/mx2_ate_2020.key.unsecure
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lmtp {
  info_log_path = /var/log/dovecot/lmtp-deliver.log
  log_path = /var/log/dovecot/dovecot-lmtp-errors.log
  mail_plugins = sieve mangesieve
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  info_log_path = /var/log/dovecot/dovecot-deliver.log
  log_path = /var/log/dovecot/dovecot-deliver.log
  mail_plugins = sieve
  postmaster_address = tecni...@di.uminho.pt
}
protocol imap {
  imap_id_log = *
  mail_max_userip_connections = 100
}
protocol sieve {
  mail_plugins = sieve
  managesieve_implementation_string = Dovecot Pigeonhole
  managesieve_logout_format = bytes=%i/%o
  managesieve_max_compile_errors = 5
  managesieve_max_line_length = 65536
}
protocol pop3 {
  mail_max_userip_connections = 100
}
#



---------------------------------------------------------------------------

--
   :)   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..

1) Change =y=proxy to =y=proxy_maybe

2) Show your doveconf -n output

3) Set auth_debug=yes and show the logs when logging in to Sy.



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to