Solr with shared mailboxes
Timo Sirainen
tss at iki.fi
Tue Apr 26 18:11:31 UTC 2016
On 26 Apr 2016, at 19:26, Ricardo Branco <ricardo at wenn.com> wrote:
>
> We are using passwd-file (http://wiki2.dovecot.org/AuthDatabase/PasswdFile).
>
> Do you mean passing 'user=XXX' in the extra fields, normalizing this across all the shared accounts?
Yes. Make sure you'll get the XXX user returned in the first line with:
doveadm auth lookup foo at example.com
doveadm user foo at example.com
>
>
> Timo Sirainen wrote on 26/04/2016 16:45:
>> On 26 Apr 2016, at 18:35, Ricardo Branco <ricardo at wenn.com> wrote:
>>> We have multiple logins assigned to single mailboxes, so we can give one login to different devices.
>>>
>>> Does this cause a problem with mailbox guids in solr or is the ID stored within the indexes and not related to username.
>> It causes Solr indexes to be duplicated. There should always be a single unique userID for a user. You can map the login username to userID by returning "user" in passdb and userdb lookups. If you want to preserve the login username in logs, you can use %{auth_user} in mail_log_prefix and login_log_format_elements.
More information about the dovecot
mailing list