[Dovecot] Proxy setup between two servers
Abhijit Hoskeri
abhijit at deeproot.co.in
Thu Sep 27 10:48:38 EEST 2007
Hi,
I am trying to set up a proxy between two dovecot servers. I have the
following set up here.
Dovecot version: 1.0.rc15
dovecot -n:
# /etc/dovecot/dovecot.conf
info_log_path: /var/log/dovecot.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: pop3 imap
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_extra_groups: mail
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
verbose: yes
debug: yes
passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
userdb:
driver: prefetch
In dovecot-ldap.conf:
hosts = localhost
dn = <dn>
dnpass = <dnpass>
sasl_bind = no
auth_bind = yes
ldap_version = 2
base = <ldap-base-dn>
pass_attrs = uid=user,userPassword=password,homeDirectory=userdb_home,uidNumber=userdb_uid,
gidNumber=userdb_gid,mailQuota=quota,mailHost=proxy
If I set the mailHost attribute for a user as "localhost" or
"127.0.0.1", I get the following error message in syslog:
mail.err: Sep 27 13:01:06 dovecot: auth(default): Master request 5534.1 not found
and at the same time, in info_log_path (/var/log/dovecot.log), I get the
following messages:
Info: auth(default): client in: AUTH 1 PLAIN service=IMAP secured lip=127.0.0.1 rip=127.0.0.1 resp=<hidden>
Info: auth(default): ldap(hoskeri,127.0.0.1): bind search: base=dc=deeproot,dc=co,dc=in filter=(&(objectClass=posixAccount)(uid=hoskeri))
Info: auth(default): ldap(hoskeri,127.0.0.1): result: uid(user)=hoskeri uidNumber(userdb_uid)=1004 homeDirectory(userdb_home)=/home/hoskeri mailHost(proxy)=127.0.0.1 gidNumber(userdb_gid)=1000
Info: auth(default): ldap(hoskeri,127.0.0.1): bind: dn=uid=hoskeri,ou=People,dc=deeproot,dc=co,dc=in
Info: auth(default): client out: OK 1 user=hoskeri proxy pass=<hidden>
# I notice that in the above line, proxy does not any value associated with it. Can't understand why.
Info: auth(default): master in: REQUEST 1 5534 1
Info: auth(default): master out: NOTFOUND 1
Info: imap-login: Internal login failure: user=<hoskeri>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
I have not yet tried to proxy to some other host.
Also, I have another question. In the setup I need to do, I need to use
the hostname itself for the mailhost, and not IPs, but I understand that
it is not implemented and only IP addresses are acceptable. Any major
reason why this is so? Could I help implement it?
Thanks in advance...
-Abhijit
More information about the dovecot
mailing list