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