<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 15/04/2019 12:59, Larry Rosenman via
dovecot wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+S=X74ue__=t6Aou7z9hTDeAABBiwiyavMDVgDwE-_qC09uQA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">forgot to reply all.<br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">---------- Forwarded message
---------<br>
From: <strong class="gmail_sendername" dir="auto">Larry
Rosenman</strong> <span dir="ltr"><<a
href="mailto:larryrtx@gmail.com" moz-do-not-send="true">larryrtx@gmail.com</a>></span><br>
Date: Mon, Apr 15, 2019 at 5:58 AM<br>
Subject: Re: SOLR/Index?<br>
To: John Fawcett <<a href="mailto:john@voipsupport.it"
moz-do-not-send="true">john@voipsupport.it</a>><br>
</div>
<br>
<br>
<div dir="ltr">the local users (myself, my wife, a friend) can
authenticate EITHER as <username> or <username>@<a
href="http://lerctr.org" target="_blank"
moz-do-not-send="true">lerctr.org</a>.
<div><br>
</div>
<div>switching to all virtual users is NOT going to happen. </div>
<div><br>
</div>
<div>If I login to roundcube with <user>@<a
href="http://lerctr.org" target="_blank"
moz-do-not-send="true">lerctr.org</a> it finds the
autoindexed mail.</div>
<div><br>
</div>
<div>So, if I make everyone always authenticate as
<user>@<a href="http://lerctr.org" target="_blank"
moz-do-not-send="true">lerctr.org</a> we should be fine.</div>
<div><br>
</div>
<div>and change my script to do doveadm -u
<user>@<domain> instead of depending on the
local user running the cron job. </div>
<div><br>
</div>
<div>question: Is there some way to have dovecot change what
it sees to be <user>@<a href="http://lerctr.org"
target="_blank" moz-do-not-send="true">lerctr.org</a>
when they login as <user>?</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<p>Dovecot is very configurable, but it can also take some time,
effort and testing to get the configuration you want. Personally I
don't mix user types since it takes out an element of complexity.
<br>
</p>
<p>For your case you might find it useful to look into <tt>auth_default_realm</tt></p>
<p>that can specify a domain name when one is not supplied.<br>
</p>
<p> <a class="moz-txt-link-freetext" href="https://wiki2.dovecot.org/DomainLost">https://wiki2.dovecot.org/DomainLost</a></p>
<p>Other things that might be useful: there is a method for
returning a "user" field from the userdb query or passdb query
which will change the username. Or there is another setting that
can overriding values of fields returned by the userdb.<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://wiki.dovecot.org/UserDatabase">https://wiki.dovecot.org/UserDatabase</a></p>
<p>Hope it helps!<br>
</p>
<p>John<br>
</p>
</body>
</html>