Gedalya-san You are currently logged in without a domain name. Currently, "abc-xyz-unyo-sekkei" users have been converted to "abc-xyz-unyo at example.co.jp". (There is no "sekkei" in the address.) Or just add "@example.co.jp"? When it comes to "abc-xyz-unyo-sekkei at example.co.jp" I can't send a mail. Thank you. morikawa -----Original Message----- From: dovecot [mailto:dovecot-bounces at dovecot.org] On Behalf Of Gedalya Sent: Thursday, October 29, 2020 11:55 AM To: dovecot at dovecot.org Subject: Re: dovecot quota-warning detection mail It should only affect users who authenticate with a username only, without a domain. The only effect is to add the domain name to the username. You could perhaps test, by logging in as just "user" and then as "user at example.co.jp" and make sure everything behaves the same. If everything behaves the same, then setting auth_default_realm should not do any harm. In other words, the question is: does any functionality actually depend on having a username without a domain. On 10/29/20 8:18 AM, ?? ?? wrote:> Gedalya-san > > I have a question. > Currently, there are thousands of users. (In multi-domain) The setting > of "auth_default_realm = example.co.jp" is Is it possible to set > without affecting the current user? > > Thank you.
Aha. Then it's not a straightforward case of just adding the domain name to the same username, you need to transform the username too. Dovecot's userdb / authdb allows you to return a "user" field, which sets a new username for dovecot to use. Depending on what you use as your authentication backend, you may be able to do the transformation at that layer. https://doc.dovecot.org/configuration_manual/authentication/user_extra_field/ On 10/29/20 12:06 PM, ?? ?? wrote:> Gedalya-san > > You are currently logged in without a domain name. > > Currently, "abc-xyz-unyo-sekkei" users have been converted to > "abc-xyz-unyo at example.co.jp". > (There is no "sekkei" in the address.) > > Or just add "@example.co.jp"? > When it comes to "abc-xyz-unyo-sekkei at example.co.jp" > I can't send a mail. > > Thank you. > > morikawa
Gedalya-san Thank you for the information. It seems to be difficult... morikawa -----Original Message----- From: dovecot [mailto:dovecot-bounces at dovecot.org] On Behalf Of Gedalya Sent: Thursday, October 29, 2020 1:17 PM To: dovecot at dovecot.org Subject: Re: dovecot quota-warning detection mail Aha. Then it's not a straightforward case of just adding the domain name to the same username, you need to transform the username too. Dovecot's userdb / authdb allows you to return a "user" field, which sets a new username for dovecot to use. Depending on what you use as your authentication backend, you may be able to do the transformation at that layer. https://doc.dovecot.org/configuration_manual/authentication/user_extra_field / On 10/29/20 12:06 PM, ?? ?? wrote:> Gedalya-san > > You are currently logged in without a domain name. > > Currently, "abc-xyz-unyo-sekkei" users have been converted to > "abc-xyz-unyo at example.co.jp". > (There is no "sekkei" in the address.) > > Or just add "@example.co.jp"? > When it comes to "abc-xyz-unyo-sekkei at example.co.jp" > I can't send a mail. > > Thank you. > > morikawa