auth-static.conf.ext.erb 933 B

12345678910111213141516171819202122232425262728293031323334
  1. # Generated by Chef
  2. # Static passdb. Included from auth.conf.
  3. # This can be used for situations where Dovecot doesn't need to verify the
  4. # username or the password, or if there is a single password for all users:
  5. #
  6. # - proxy frontend, where the backend verifies the password
  7. # - proxy backend, where the frontend already verified the password
  8. # - authentication with SSL certificates
  9. # - simple testing
  10. <% if Dovecot::Auth.has_passdb?(@auth['static']) -%>
  11. <%= Dovecot::Conf.authdb('static', 'passdb', @auth['static']['passdb']) %>
  12. <% else -%>
  13. #passdb {
  14. # driver = static
  15. # args = proxy=y host=%1Mu.example.com nopassword=y
  16. #}
  17. #passdb {
  18. # driver = static
  19. # args = password=test
  20. #}
  21. <% end -%>
  22. <% if Dovecot::Auth.has_userdb?(@auth['static']) -%>
  23. <%= Dovecot::Conf.authdb('static', 'userdb', @auth['static']['userdb']) %>
  24. <% else -%>
  25. #userdb {
  26. # driver = static
  27. # args = uid=vmail gid=vmail home=/home/%u
  28. #}
  29. <% end -%>