conf-dovecot-dict-sql.rb 839 B

123456789101112131415161718192021222324252627282930
  1. # dovecot-dict-sql.conf.ext
  2. default['dovecot']['conf']['dict_sql']['connect'] = nil
  3. # default['dovecot']['conf']['dict_sql']['connect'] = 'host=localhost dbname=mails user=testuser password=pass'
  4. # default['dovecot']['conf']['dict_sql']['maps'] = nil
  5. # default['dovecot']['conf']['dict_sql']['maps'] = [
  6. # {
  7. # 'pattern' => 'priv/quota/storage',
  8. # 'table' => 'quota',
  9. # 'username_field' => 'username',
  10. # 'value_field' => 'bytes',
  11. # },
  12. # {
  13. # 'pattern' => 'priv/quota/messages',
  14. # 'table' => 'quota',
  15. # 'username_field' => 'username',
  16. # 'value_field' => 'messages',
  17. # },
  18. # {
  19. # 'pattern' => 'shared/expire/$user/$mailbox',
  20. # 'table' => 'expires',
  21. # 'value_field' => 'expire_stamp',
  22. # 'fields' => {
  23. # 'username' => '$user',
  24. # 'mailbox' => '$mailbox',
  25. # },
  26. # },
  27. # ]