auth-deny.conf.ext.erb 660 B

123456789101112131415161718192021
  1. # Generated by Chef
  2. # Deny access for users. Included from auth.conf.
  3. # Users can be (temporarily) disabled by adding a passdb with deny=yes.
  4. # If the user is found from that database, authentication will fail.
  5. # The deny passdb should always be specified before others, so it gets
  6. # checked first.
  7. <% if Dovecot::Auth.has_passdb?(@auth['deny']) -%>
  8. <%= Dovecot::Conf.authdb('passwd-file', 'passdb', @auth['deny']['passdb']) %>
  9. <% else -%>
  10. # Example deny passdb using passwd-file. You can use any passdb though.
  11. passdb {
  12. driver = passwd-file
  13. deny = yes
  14. # File contains a list of usernames, one per line
  15. args = /etc/dovecot/deny-users
  16. }
  17. <% end -%>