[Dovecot] Problem with Prefetch User Database
Hi there Community,
I am currently setting up a Dovecot Mailserver, which works fine with some basic configuration (Dovecot + Sendmail). Sending and receiving Mails is just fine. For improving timings, I wanted to activate the prefetch user database - but apparently it doesn't seem to work correctly - I hope you can help me out!
When I activate the prefetch user database, every time I get a "passdb didn't return userdb entries" from my mail.debug logs.
Here's my config:
passdb { driver = pam }
# (I authenticate via PAM which is itself configured to ask ldap server, ldap returns it back to PAM - so Dovecot only sees the PAM-authentication part)
userdb { driver = prefetch }
userdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext }
# My userdb is going over ldap.
Relevant parts of /etc/dovecot/dovecot-ldap.conf.ext:
. .. user_attrs = uidNumber=50014,gidNumber=2084,modem-quota=quota_rule=*:storage=%$
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uidNumber==50014,gidNumber=2084
I'm not sure.... maybe it's because of the PAMLDAPPAM? Or am I missing out something other fundamental? Thanks for any insights, Megodin
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! http://email.freenet.de/produkte/basic/index.html
Send and receive anonymous emails to your inbox with InboxAlias. http://www.inboxalias.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 21 Mar 2013, megodin@inboxalias.com wrote:
passdb { driver = pam }
# (I authenticate via PAM which is itself configured to ask ldap server, ldap returns it back to PAM - so Dovecot only sees the PAM-authentication part)
PAM does not return userdb-relevant information. You cannot use userdb prefetch.
You could switch to first ask a ldap passdb and then, for users that have another password in LDAP, pam.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUUsyyV3r2wJMiz2NAQKa/Qf9EmmXcC7mTg7Azmj1Ew7HT2wSoKVQF2k5 5kPQPKKrVKToTJtTmFIeSF1saXQ2f5wE+ZGo2y0u9DlFipH4pc6mP4F9uEr4WbSF lB8TBfyAg5wqvepOl/jUkkXnLxI6lDBzVN6nfRYfVz34Lk4Amz70+6GVDtEE6azK +j/5GWwl2dAJ93Z+uNl4z8ABffvWxv8m0UECIxvIIYW2647+oT6PyNvaRM6dEgUp RZlMMic990TzDn30APTghcxiiu2eeiwHc2q0rAXLqAsOHNzV8Aie4DcOS1Nhib1+ FJHloYG8aWPfK0rnqcSwj6caXKYysWsQgzoPueRrQCrXbSykMMyXaQ== =yFtv -----END PGP SIGNATURE-----
participants (2)
-
megodin@inboxalias.com
-
Steffen Kaiser