12345678910111213141516171819202122232425262728293031323334353637383940 |
- # Generated by Chef
- # Authentication for SQL users. Included from auth.conf.
- #
- # <doc/wiki/AuthDatabase.SQL.txt>
- <% if Dovecot::Auth.has_passdb?(@auth['sql']) -%>
- <%= Dovecot::Conf.authdb('sql', 'passdb', @auth['sql']['passdb']) %>
- <% else -%>
- passdb {
- driver = sql
- # Path for SQL configuration file, see example-config/dovecot-sql.conf.ext
- args = /etc/dovecot/dovecot-sql.conf.ext
- }
- <% end -%>
- <% if Dovecot::Auth.has_userdb?(@auth['sql']) -%>
- <%= Dovecot::Conf.authdb('sql', 'userdb', @auth['sql']['userdb']) %>
- <% else -%>
- # "prefetch" user database means that the passdb already provided the
- # needed information and there's no need to do a separate userdb lookup.
- # <doc/wiki/UserDatabase.Prefetch.txt>
- #userdb {
- # driver = prefetch
- #}
- userdb {
- driver = sql
- args = /etc/dovecot/dovecot-sql.conf.ext
- }
- # If you don't have any user-specific settings, you can avoid the user_query
- # by using userdb static instead of userdb sql, for example:
- # <doc/wiki/UserDatabase.Static.txt>
- #userdb {
- #driver = static
- #args = uid=vmail gid=vmail home=/var/vmail/%u
- #}
- <% end -%>
|