conf-dict-sql.rb 808 B

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