auth-vpopmail.conf.ext.erb 664 B

123456789101112131415161718192021222324252627
  1. # Generated by Chef
  2. # Authentication for vpopmail users. Included from auth.conf.
  3. #
  4. # <doc/wiki/AuthDatabase.VPopMail.txt>
  5. <% if Dovecot::Auth.has_passdb?(@auth['vpopmail']) -%>
  6. <%= Dovecot::Conf.authdb('vpopmail', 'passdb', @auth['vpopmail']['passdb']) %>
  7. <% else -%>
  8. passdb {
  9. driver = vpopmail
  10. # [cache_key=<key>] [webmail=<ip>]
  11. args =
  12. }
  13. <% end -%>
  14. <% if Dovecot::Auth.has_userdb?(@auth['vpopmail']) -%>
  15. <%= Dovecot::Conf.authdb('vpopmail', 'userdb', @auth['vpopmail']['userdb']) %>
  16. <% else -%>
  17. userdb {
  18. driver = vpopmail
  19. # [quota_template=<template>] - %q expands to Maildir++ quota
  20. args = quota_template=quota_rule=*:backend=%q
  21. }
  22. <% end -%>