Guest User

Untitled

a guest
Dec 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. # Some general options
  2. protocols = imap sieve
  3. ssl = yes
  4. ssl_cert = </etc/ssl/private/ssl-chain-mail-rajohan.no.crt
  5. ssl_key = </etc/ssl/private/ssl-key-decrypted-mail-rajohan.no.key
  6. ssl_client_ca_dir = /etc/ssl/certs
  7. ssl_cipher_list = ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!ADH:!AECDH:!MD5:!DSS
  8. mail_home = /var/mail/vmail/%d/%n
  9. mail_location = maildir:/var/mail/vmail/%d/%n/mail:LAYOUT=fs
  10. auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
  11.  
  12. # IMAP configuration
  13. protocol imap {
  14. mail_max_userip_connections = 10
  15. imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
  16. }
  17.  
  18. # LDA configuration
  19. protocol lda {
  20. postmaster_address = postmaster@rajohan.no
  21. mail_plugins = sieve
  22. quota_full_tempfail = yes
  23. deliver_log_format = msgid=%m: %$
  24. rejection_reason = Your message to <%t> was automatically rejected:%n%r
  25. }
  26.  
  27. # Plugins configuration
  28. plugin {
  29. sieve=~/.dovecot.sieve
  30. sieve_dir=~/sieve
  31. sieve_before = /var/mail/vmail/sieve-before
  32. sieve_after = /var/mail/vmail/sieve-after
  33. }
  34.  
  35. # Authentication configuration
  36. auth_mechanisms = plain login
  37.  
  38. passdb {
  39. driver = passwd-file
  40. args = username_format=%u scheme=ssha512 /etc/dovecot/passwd.db
  41. deny = no
  42. master = no
  43. pass = no
  44. skip = never
  45. result_failure = continue
  46. result_internalfail = continue
  47. result_success = return-ok
  48. }
  49.  
  50. userdb {
  51. driver = static
  52. args = uid=5000 gid=5000 home=/var/mail/vmail/%d/%n
  53. }
  54.  
  55. # Log all failed authentication attempts
  56. auth_verbose=yes
  57.  
  58. service auth {
  59. # Postfix smtp-auth
  60. unix_listener /var/spool/postfix/private/dovecot-auth {
  61. mode = 0660
  62. user = postfix
  63. group = postfix
  64. }
  65. }
  66.  
  67. # temporary imapc stuff for gmail mail migration
  68. #imapc_host = imap.gmail.com
  69. #imapc_port = 993
  70. #imapc_ssl = imaps
  71. #imapc_features = rfc822.size
  72. #imapc_features = $imapc_features fetch-headers
  73. #mail_prefetch_count = 20
Add Comment
Please, Sign In to add comment