fts_autoindex - index-worker problem

Timo Sirainen tss at iki.fi
Sat Jan 30 23:58:48 UTC 2016


> On 30 Jan 2016, at 19:28, Masaki Nemoto <itml at ma3ki.net> wrote:
> 
> dovecot-2.2.21 問い合わせ
> 
> fts_autoindex - index-worker problem
> 
> Hello List,
> 
> I installed dovecot-2.2.21 on CentOS 6.7.
> 
> I use ldap for userdb to separate an e-mail address and the user.
> Index to apache solr failed in fts_authindex when I received an email
> after setting.
> The error message is "indexer-worker: Error: User 0029 at 09.jp lookup
> failed: Unknown user"

The question is mainly if the lookup of user 0029 at 09.jp should work, or if that it the wrong user in the first place. If you want the username to be 0029 at 09.jp on Dovecot side, then this command must work:

doveadm user 0029 at 09.jp

> user_attrs  = mailRoutingAddress=user, storeQuotaBytes=quota_rule=*:bytes=%$

So here mailRoutingAddress=user is changing Dovecot's internal username to that field's value, which causes it to send that username to indexer-worker.

> # ldapsearch -h ldap01 -x -b "" mailLocalAddress=gk12k_0029 at 08wt09.jp
> mailRoutingAddress mailLocalAddress -LLL
> dn: uid=gk12k_0029,dc=08wt09,dc=jp
> mailRoutingAddress: 0029 at 09.jp
> mailLocalAddress: gk12k_0029 at 08wt09.jp

Here is seems that the username should be gk12k_0029 at 08wt09.jp, not 0029 at 09.jp? So maybe you want mailLocalAddress=user? Or add mailRoutingAddress to user_filter so that lookup by 0029 at 09.jp works too.

BTW. auth_debug=yes is helpful in showing in Dovecot's logs what it's doing and why it's not finding something.



More information about the dovecot mailing list