Guest User

Untitled

a guest
Nov 21st, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Dovecot.conf
  2. ====================================================
  3.  
  4. mail_plugins = $mail_plugins quota
  5. passdb {
  6. driver = sql
  7. args = /etc/dovecot/dovecot-sql.conf.ext
  8. }
  9.  
  10. userdb {
  11. driver = prefetch
  12. }
  13. userdb {
  14. args = /etc/dovecot/dovecot-sql.conf.ext
  15. driver = sql
  16. }
  17. protocol imap {
  18. mail_plugins = $mail_plugins imap_quota
  19. }
  20.  
  21. protocol lmtp {
  22. mail_plugins = quota fts sieve
  23. }
  24.  
  25.  
  26. protocol lda {
  27. mail_plugins = quota
  28. }
  29.  
  30. plugin {
  31. quota = maildir
  32. quota_rule = *:storage=100M
  33. quota_rule2 = Trash:storage=+10%%
  34. }
  35.  
  36. service auth-worker {
  37. user = vmail
  38. }
  39.  
  40. service dict {
  41. unix_listener dict {
  42. mode = 0660
  43. user = vmail
  44. group = vmail
  45. }
  46. }
  47.  
  48. auth_debug = yes
  49. auth_debug_passwords = yes
  50. auth_verbose = yes
  51. mail_debug =yes
  52.  
  53.  
  54.  
  55. dovecot-sql.conf.ext
  56. ====================================================
  57.  
  58. driver = mysql
  59. connect = host=127.0.0.1 dbname=****SNAP**** user=****SNAP**** password=****SNAP****
  60. default_pass_scheme = SHA256-CRYPT
  61. password_query = SELECT email as user, password FROM virtual_users WHERE email='%u';
  62.  
  63. default_pass_scheme = SHA256-CRYPT
  64.  
  65. user_query = SELECT CONCAT('*:bytes=', quota) as quota_rule FROM virtual_users WHERE email = '%u'
Add Comment
Please, Sign In to add comment