1. protocols = imap pop3
  2. auth_mechanisms = plain login digest-md5
  3. disable_plaintext_auth = no
  4. listen = *
  5. base_dir = /var/run/dovecot
  6. login_greeting = mx ready.
  7. shutdown_clients = yes
  8.  
  9. dict {
  10. #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  11. #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
  12. }
  13.  
  14. ssl_cert = </etc/dovecot/ssl/certs/dovecot.pem
  15. ssl_key = </etc/dovecot/ssl/private/dovecot.pem
  16.  
  17. userdb {
  18. driver = sql
  19. args = /etc/dovecot/dovecot-mysql.conf
  20. }
  21.  
  22. passdb {
  23. driver = sql
  24. args = /etc/dovecot/dovecot-mysql.conf
  25. }
  26.  
  27. service auth {
  28. unix_listener /var/spool/postfix/private/auth {
  29. mode = 0660
  30. user = postfix
  31. group = postfix
  32. }
  33.  
  34. unix_listener auth-userdb {
  35. mode = 0660
  36. user = vmail
  37. group = mail
  38. }
  39.  
  40. vsz_limit = 64 M
  41. }
  42.  
  43. imap_capability = +IDLE
  44. mail_max_userip_connections = 20
  45.  
  46. mail_location = maildir:/var/vmail/%d/%n
  47. postmaster_address = postmaster@something.com
  48. hostname = mx.something.com
  49.  
  50. sendmail_path = /usr/sbin/sendmail
  51. lda_mailbox_autocreate = no
  52.  
  53. protocol lda {
  54. # Space separated list of plugins to load (default is global mail_plugins).
  55. #mail_plugins = $mail_plugins
  56. }