dovecot 2.x 不支持 @domain1.org 身份验证

dovecot 2.x 不支持 @domain1.org 身份验证

cat /etc/dovecot/conf.f/10-auth.conf

[...]
disable_plaintext_auth = no
auth_username_format = %n-AT-%d
[...]

或者使用 %u 变量(完整用户名(例如 user@domain)

cat /etc/dovecot/conf.f/auth-passwdfile.conf.ext [...]

passdb {
  driver = passwd-file
  args = scheme=SHA256 username_format=%n /etc/dovecot/users
}

userdb {
  driver = passwd-file
  args = scheme=SHA256 username_format=%n /etc/dovecot/users
}

猫用户

[email protected]:{SSHA256}wr4SgH6sH5hNrSQhbVX/zUQqJrmO63aYI9Ograx+N0gZ1lAG
[...]

猫/var/log/dovecot.info

Aug 18 16:56:22 auth: Debug: passwd-file(domain1_info,192.168.50.212,<cGn/VAhX9YrAqDLU>): lookup: user=domain1.org_info file=/etc/dovecot/users                                                                                                                                                                                                                             ==> /var/log/dovecot.info <==                                                                                                                                                                Aug 18 16:56:22 auth: Info: passwd-file(domain1_info,192.168.50.212,<cGn/VAhX9YrAqDLU>): unknown user (given password: test)                                                                                                                                                                                                                                                     ==> /var/log/dovecot.debug <==                                                                                                                                                               Aug 18 16:56:24 auth: Debug: client passdb out: FAIL    1       user=domain1.org_info      [email protected]                                                          Aug 18 16:56:24 pop3-login: Debug: Ignoring unknown passdb extra field: original_user
[...]

我想使用以下方式连接到 dovecot[电子邮件保护]因为如果我修改

/etc/dovecot/users

删除用户名后的域名,dovecot 接受用户名认证

相关内容