Dovecot to stop using PAM auth
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user