20-auth.conf 999 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # /etc/dovecot/conf.d/20-auth.conf
  2. # Authentication mechanisms, master/user separation, passdb chain, auth cache.
  3. auth_mechanisms = plain login
  4. auth_allow_cleartext = yes
  5. auth_master_user_separator = *
  6. auth_cache_verify_password_with_worker = yes
  7. auth_cache_negative_ttl = 60s
  8. auth_cache_ttl = 300s
  9. auth_cache_size = 10M
  10. auth_verbose_passwords = sha1:6
  11. # 1) Lua password verification (blocking, return mapping).
  12. passdb lua {
  13. driver = lua
  14. lua_file = /etc/dovecot/auth/passwd-verify.lua
  15. lua_settings {
  16. blocking=yes
  17. result_success = return-ok
  18. result_failure = continue
  19. result_internalfail = continue
  20. }
  21. }
  22. # 2) Master password for master user logins.
  23. passdb master {
  24. driver = passwd-file
  25. passwd_file_path = /etc/dovecot/dovecot-master.passwd
  26. master = yes
  27. skip = authenticated
  28. }
  29. # 3) Mandatory return layer: empty Lua (e.g. for forced reset).
  30. passdb empty-lua {
  31. driver = lua
  32. lua_file = /etc/dovecot/auth/passwd-verify.lua
  33. lua_settings {
  34. blocking = yes
  35. }
  36. }