Advertisement
Guest User

Untitled

a guest
Mar 1st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. alias_database = hash:/etc/aliases
  2. alias_maps = hash:/etc/aliases
  3. append_dot_mydomain = no
  4. biff = no
  5. broken_sasl_auth_clients = yes
  6. config_directory = /etc/postfix
  7. content_filter = smtp-amavis:[127.0.0.1]:10024
  8. home_mailbox = Maildir/
  9. inet_interfaces = all
  10. inet_protocols = ipv4
  11. mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}"
  12. mailbox_size_limit = 0
  13. message_size_limit = 104857600
  14. myhostname = carson.example.com
  15. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  16. myorigin = /etc/mailname
  17. policy-spf_time_limit = 3600s
  18. readme_directory = no
  19. recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
  20. recipient_delimiter = +
  21. relayhost =
  22. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  23. smtp_use_tls = yes
  24. smtpd_banner = carson.example.com ESMTP $mail_name (Ubuntu)
  25. smtpd_recipient_restrictions = reject_invalid_hostname,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient,permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,check_policy_service unix:private/policy-spf,reject_rbl_client zen.spamhaus.org,reject_rbl_client bl.spamcop.net,reject_rbl_client cbl.abuseat.org,check_policy_service inet:127.0.0.1:10023
  26. smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination
  27. smtpd_sasl_auth_enable = yes
  28. smtpd_sasl_authenticated_header = yes
  29. smtpd_sasl_local_domain = $myhostname
  30. smtpd_sasl_path = private/dovecot-auth
  31. smtpd_sasl_security_options = noanonymous
  32. smtpd_sasl_type = dovecot
  33. smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/valid_senders, reject_unknown_sender_domain
  34. smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
  35. smtpd_tls_ask_ccert = yes
  36. smtpd_tls_auth_only = yes
  37. smtpd_tls_cert_file = /etc/letsencrypt/live/example.com/fullchain.pem
  38. smtpd_tls_ciphers = high
  39. smtpd_tls_exclude_ciphers = EXPORT
  40. smtpd_tls_key_file = /etc/letsencrypt/live/example.com/privkey.pem
  41. smtpd_tls_loglevel = 1
  42. smtpd_tls_mandatory_ciphers = medium
  43. smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
  44. smtpd_tls_protocols = !SSLv2, !SSLv3
  45. smtpd_tls_received_header = yes
  46. smtpd_tls_security_level = may
  47. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  48. smtpd_tls_session_cache_timeout = 3600s
  49. smtpd_use_tls = yes
  50. tls_random_source = dev:/dev/urandom
  51. transport_maps = hash:/etc/postfix/transport
  52. virtual_gid_maps = static:5000
  53. virtual_mailbox_base = /home/vmail
  54. virtual_mailbox_domains = example.com
  55. virtual_mailbox_limit = 0
  56. virtual_mailbox_maps = hash:/etc/postfix/vmaps
  57. virtual_minimum_uid = 1000
  58. virtual_transport = lmtp:unix:private/dovecot-lmtp
  59. virtual_uid_maps = static:5000
  60.  
  61. # 2.2.9: /etc/dovecot/dovecot.conf
  62. # OS: Linux 3.11.0-19-generic x86_64 Ubuntu 14.04.5 LTS ext4
  63. auth_mechanisms = plain login cram-md5
  64. mail_debug = yes
  65. mail_location = maildir:/home/vmail/%d/%n/Maildir
  66. managesieve_notify_capability = mailto
  67. managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
  68. namespace inbox {
  69. inbox = yes
  70. location =
  71. mailbox Drafts {
  72. special_use = Drafts
  73. }
  74. mailbox Junk {
  75. special_use = Junk
  76. }
  77. mailbox Sent {
  78. special_use = Sent
  79. }
  80. mailbox "Sent Messages" {
  81. special_use = Sent
  82. }
  83. mailbox Trash {
  84. special_use = Trash
  85. }
  86. prefix =
  87. }
  88. passdb {
  89. args = username_format=%u /etc/dovecot/shadow
  90. driver = passwd-file
  91. }
  92. plugin {
  93. sieve = ~/.dovecot.sieve
  94. sieve_dir = ~/sieve
  95. }
  96. protocols = imap pop3 sieve lmtp
  97. service auth {
  98. unix_listener /var/spool/postfix/private/auth {
  99. group = postfix
  100. mode = 0660
  101. user = postfix
  102. }
  103. unix_listener /var/spool/postfix/private/dovecot-auth {
  104. group = postfix
  105. mode = 0660
  106. user = postfix
  107. }
  108. }
  109. service lmtp {
  110. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  111. group = postfix
  112. mode = 0600
  113. user = postfix
  114. }
  115. }
  116. ssl_cert = </etc/letsencrypt/live/example.com/fullchain.pem
  117. ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
  118. ssl_key = </etc/letsencrypt/live/example.com/privkey.pem
  119. userdb {
  120. driver = passwd
  121. }
  122. userdb {
  123. args = username_format=%u /etc/dovecot/users
  124. driver = passwd-file
  125. }
  126. protocol lmtp {
  127. mail_plugins = sieve
  128. postmaster_address = postmaster@example.com
  129. }
  130. protocol lda {
  131. deliver_log_format = msgid=%m: %$
  132. mail_plugins = sieve
  133. postmaster_address = postmaster
  134. quota_full_tempfail = yes
  135. rejection_reason = Your message to <%t> was automatically rejected:%n%r
  136. }
  137. protocol imap {
  138. imap_client_workarounds = delay-newmail
  139. mail_max_userip_connections = 10
  140. }
  141. protocol pop3 {
  142. mail_max_userip_connections = 10
  143. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement