On 3.10.2012, at 9.25, Angel L. Mateo wrote:

>>>     I think I have found the source of the problem, although I don't know 
>>> how to fix it. The problem is that I have different results if I ask for 
>>> user information with just the login or with the whole email:
>> 
>> Flush both the user and user@domain entries?
>> 
>       Yes, I could do this, but why there are entries with user and 
> user@domain?, because I have three user databases:
> 
> * master password: it is not normally used
> * pam: I have the cache_key=%n on it
> * ldap: I don't know to configure cache_key (I tried args = cache_key=%n 
> /etc/dovecot/dovecot-ldap.conf.ext but it didn't work)

For LDAP the cache_key is figured out automatically based on the used 
%variables. You can't override the cache key. The only way to make it work 
would be to change the LDAP query to use only %n and no %u/%d (which I guess 
would be possible by checking for %n@* ?)

Reply via email to