Dovecot to stop using PAM auth

This commit is contained in:
2026-08-10 21:07:06 -05:00
parent e6daee8d1e
commit 3ecdc2af16
3 changed files with 21 additions and 1 deletions
@@ -119,7 +119,7 @@ auth_mechanisms = plain
#!include auth-deny.conf.ext #!include auth-deny.conf.ext
#!include auth-master.conf.ext #!include auth-master.conf.ext
!include auth-system.conf.ext #!include auth-system.conf.ext
#!include auth-sql.conf.ext #!include auth-sql.conf.ext
#!include auth-ldap.conf.ext #!include auth-ldap.conf.ext
#!include auth-passwdfile.conf.ext #!include auth-passwdfile.conf.ext
@@ -13,6 +13,16 @@ mail_uid = mail
mail_gid = mail mail_gid = mail
mail_home = /var/spool/mail/%{user | domain}/%{user | username} mail_home = /var/spool/mail/%{user | domain}/%{user | username}
# Override system auth from dovecot.conf so it quietly fails without triggering PAM logs
passdb pam {
driver = passwd-file
passwd_file_path = /dev/null
}
userdb passwd {
driver = passwd-file
passwd_file_path = /dev/null
}
passdb passwd-file { passdb passwd-file {
driver = passwd-file driver = passwd-file
passwd_file_path = /etc/dovecot/accounts passwd_file_path = /etc/dovecot/accounts
@@ -13,6 +13,16 @@ mail_uid = mail
mail_gid = mail mail_gid = mail
mail_home = /var/spool/mail/%{user | domain}/%{user | username} mail_home = /var/spool/mail/%{user | domain}/%{user | username}
# Override system auth from dovecot.conf so it quietly fails without triggering PAM logs
passdb pam {
driver = passwd-file
passwd_file_path = /dev/null
}
userdb passwd {
driver = passwd-file
passwd_file_path = /dev/null
}
passdb passwd-file { passdb passwd-file {
driver = passwd-file driver = passwd-file
passwd_file_path = /etc/dovecot/accounts passwd_file_path = /etc/dovecot/accounts