[Dovecot] doveadm index - Bug or expected behaviour?

Bruno Galindro da Costa bruno.galindro at gmail.com
Fri Jun 6 20:57:23 UTC 2014


ok tks!


2014-06-06 3:16 GMT-03:00 Steffen Kaiser <skdovecot at smail.inf.fh-brs.de>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On Thu, 5 Jun 2014, Bruno Galindro da Costa wrote:
>
>  My ldap config is using the variable %d in base search for domain
>> replacement when dovecot will search for users in LDAP. Its works fine for
>> dovecot operation.
>>
>
> When an user logs into Dovecot, the login process can extract the domain
> part from the login username.
>
>
>  But, for doveadm index, not. It ignores that variable and tries to pass a
>> base search without domain. So, the search will not working.
>>
>> This is the command:
>> # doveadm -v index -A  INBOX
>>
>
> If you iterate all users (-A), doveadm would need to guess all domains and
> iterate through them. So, in your case you cannot use -A. However, -u
> should work. That is, you call the command for each single user that you've
> iterated from LDAP via script.
>
>  base = ou=%d,ou=mail,ou=services,dc=domain
>>
> [...]
>
>  iterate_filter =
>> (&(objectclass=nisMailAlias)(ContaAtiva=TRUE)(!(EmailQuota=0)))
>> iterate_attrs = rfc822mailmember=user
>>
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEVAwUBU5Fcynz1H7kL/d9rAQI7IggAitRJlAU4olmkTzUqXxrxxPAtF0FMcm0c
> PqWdByrNM0aLr1WTIShN7y83OnTwFhznuuTg6oVO6s72KZ6Izo9COOK70kLvoGzZ
> G4TyNu9S671hDVWsasuI+FvChGZURM+6E4G+ctsqTSjY8N8MV6hEdwrNhxBWbbfE
> nQ0BEMDDaM0Qeycyiy59nhlOkLiSkv40P2NnOekkSvogxb3rpxt9FQ6vIrBkCxJd
> K1xlwAWzg7Hr4LIUw3PJm0YjT7T4H+1AmiIm7iaAnT8My/9SSB9WCtmFQpzFNWOD
> tpKc3RcQJykJMpC4oKjgTi0Vh6PTl6g3xMdA9yJ2jmgpLVqpU2fNKw==
> =l3yY
> -----END PGP SIGNATURE-----
>



-- 
Att.
Bruno Galindro da Costa


More information about the dovecot mailing list