Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1.  
  2.  
  3.  
  4. dovecot.conf ---------------------
  5. protocol lda {
  6. postmaster_address = postmaster@wingstech.it
  7.  
  8. mail_plugins = quota
  9. }
  10. auth default {
  11. mechanisms = plain login digest-md5
  12. }
  13. passdb sql {
  14. args = /etc/dovecot/dovecot-sql.conf
  15. }
  16.  
  17.  
  18. dovecot-sql.conf -------------------------------------------
  19.  
  20. driver = pgsql
  21. connect = host=127.0.0.1 dbname=postfix user=postfix password=xxxx
  22.  
  23. user_query = SELECT '/var/mail/' || domain || '/' || local_part AS home, \
  24. '*:bytes=' || quota AS quota_rule \
  25. FROM mailbox WHERE (local_part = '%u' OR username = '%u') AND active = true
  26.  
  27. password_query = SELECT '/var/mail/' || domain || '/' || local_part AS userdb_home, \
  28. username as user, \
  29. password, \
  30. '*:bytes=' || quota AS userdb_quota_rule \
  31. FROM mailbox WHERE (username = '%u' OR local_part = '%u') AND active = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement