auth-deny.conf.ext.erb 624 B

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