On Fri, Aug 15, 2025 at 5:39 PM Rory Campbell-Lange <rory@campbell-lange.net> wrote:
On 15/08/25, Odhiambo Washington via dovecot (dovecot@dovecot.org) wrote:
On Mon, Aug 4, 2025 at 7:22PM Alex via dovecot <[1] dovecot@dovecot.org> wrote: Hi, I'm using dovecot-2.3.21 on fedora40 and have configured it to use only usernames without domain when logging in. Now apparently the new Outlook (1.2025.617.000) no longer supports the ability to change username for IMAP. Now what? ...
However, I do understand you need to support MuA's login with either johndoe or [2]johndoe@domain.name. I have a solution for you, but it's based on MySQL/MariaDB. I use Exim (MTA), Dovecot (2.4.1), and SOGo (Groupware/Webmail).
Perhaps a crude solution might be to use the
auth_default_domain
setting.https://doc.dovecot.org/2.3/settings/core/#core_setting-auth_default_realm
Default realm/domain to use if none was specified. This is used for both
SASL realms and appending @domain to username in plaintext logins.
If you only have a single domain name, this should work. The method I am using allows a larger scope. You can loging as user1 or user1@domain1, etc If a user provides just "username" I run a query that tries to match it against domain1, domain, 2, domainM. Whichever matches first is used.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
On Fri, Aug 15, 2025 at 5:39PM Rory Campbell-Lange <[1]rory@campbell-lange.net> wrote:
On 15/08/25, Odhiambo Washington via dovecot ([2]dovecot@dovecot.org)
wrote:
> On Mon, Aug 4, 2025 at 7:22PM Alex via dovecot
<[1][3]dovecot@dovecot.org>
> wrote:
> Hi, I'm using dovecot-2.3.21 on fedora40 and have configured
it to
> use only usernames without domain when logging in. Now
apparently the
> new Outlook (1.2025.617.000) no longer supports the ability to
change
> username for IMAP. Now what?
...
> However, I do understand you need to support MuA's login with
either
> johndoe or [2][4]johndoe@domain.name.
> I have a solution for you, but it's based on MySQL/MariaDB.
> I use Exim (MTA), Dovecot (2.4.1), and SOGo (Groupware/Webmail).
Perhaps a crude solution might be to use the `auth_default_domain`
setting.
[5]https://doc.dovecot.org/2.3/settings/core/#core_setting-auth_default_realm
# Default realm/domain to use if none was specified. This is used for
both
# SASL realms and appending @domain to username in plaintext logins.
If you only have a single domain name, this should work. The method I am using allows a larger scope. You can loging as user1 or user1@domain1, etc If a user provides just "username" I run a query that tries to match it against domain1, domain, 2, domainM. Whichever matches first is used.
Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' -\_(Tu)_/- :-) [How to ask smart questions: [6]http://www.catb.org/~esr/faqs/smart-questions.html]
References
Visible links
- mailto:rory@campbell-lange.net
- mailto:dovecot@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:johndoe@domain.name
- https://doc.dovecot.org/2.3/settings/core/#core_setting-auth_default_realm
- http://www.catb.org/~esr/faqs/smart-questions.html