auth-static.conf.ext.erb 892 B

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