You could put (%l=1.2.3.4) in the ldap filter. But I guess it still gets sent to the LDAP server. The best solution would be:
local 1.2.3.4 { userdb { .. } }
But that doesn't work yet.
With v2.2 you can do multiple queries. So you could have one query to translate IP address to the domain, and then a second lookup to lookup the user@domain. http://wiki2.dovecot.org/AuthDatabase/LDAP/Userdb -> subqueries.
On 8.4.2013, at 13.07, Pavel Dimow paveldimow@gmail.com wrote:
Well that is not very scalable as we always ask first database no matter what. What if I have the same user in both databases (ldap)?
On Mon, Apr 8, 2013 at 12:36 AM, Daniel Parthey < daniel.parthey@informatik.tu-chemnitz.de> wrote:
Just to be clear my goal is to have multiple domains on multiple addresses but use one dovecot instance and to let users logging without @domain
Pavel Dimow wrote: part.
You might try to use several passdb/userdb sections with driver ldap, one for each domain:
http://wiki2.dovecot.org/Authentication/MultipleDatabases
Regards Daniel