On Fri, Aug 15, 2025 at 5:39PM Rory Campbell-Lange
   <[1]r...@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]john...@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
   1. mailto:r...@campbell-lange.net
   2. mailto:dovecot@dovecot.org
   3. mailto:dovecot@dovecot.org
   4. mailto:john...@domain.name
   5. https://doc.dovecot.org/2.3/settings/core/#core_setting-auth_default_realm
   6. http://www.catb.org/~esr/faqs/smart-questions.html
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to