dovecot-dict-sql.conf.ext.erb 782 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #connect = host=localhost dbname=mails user=testuser password=pass
  2. # CREATE TABLE quota (
  3. # username varchar(100) not null,
  4. # bytes bigint not null default 0,
  5. # messages integer not null default 0,
  6. # primary key (username)
  7. # );
  8. map {
  9. pattern = priv/quota/storage
  10. table = quota
  11. username_field = username
  12. value_field = bytes
  13. }
  14. map {
  15. pattern = priv/quota/messages
  16. table = quota
  17. username_field = username
  18. value_field = messages
  19. }
  20. # CREATE TABLE expires (
  21. # username varchar(100) not null,
  22. # mailbox varchar(255) not null,
  23. # expire_stamp integer not null,
  24. # primary key (username, mailbox)
  25. # );
  26. map {
  27. pattern = shared/expire/$user/$mailbox
  28. table = expires
  29. value_field = expire_stamp
  30. fields {
  31. username = $user
  32. mailbox = $mailbox
  33. }
  34. }