SHARE
TWEET

Dovecot config

a guest Feb 18th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf
  2. # Pigeonhole version 0.4.21 (92477967)
  3. # OS: Linux 4.15.0-45-generic x86_64 Ubuntu 18.04.2 LTS
  4. auth_master_user_separator = *
  5. auth_mechanisms = PLAIN LOGIN
  6. deliver_log_format = from=%{from}, envelope_sender=%{from_envelope}, subject=%{subject}, msgid=%m, size=%{size}, %$
  7. dict {
  8.   acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  9.   quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
  10. }
  11. first_valid_uid = 2000
  12. last_valid_uid = 2000
  13. listen = * [::]
  14. mail_gid = 2000
  15. mail_location = mbox:~/mail:INBOX=/var/mail/%u
  16. mail_plugins = quota mailbox_alias acl mail_log notify stats
  17. mail_privileged_group = mail
  18. mail_uid = 2000
  19. managesieve_notify_capability = mailto
  20. 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 index ihave duplicate mime foreverypart extracttext
  21. namespace {
  22.   inbox = yes
  23.   location =
  24.   mailbox Archive {
  25.     auto = no
  26.     special_use = \Archive
  27.   }
  28.   mailbox Archives {
  29.     auto = no
  30.     special_use = \Archive
  31.   }
  32.   mailbox "Deleted Messages" {
  33.     auto = no
  34.     special_use = \Trash
  35.   }
  36.   mailbox Drafts {
  37.     auto = subscribe
  38.     special_use = \Drafts
  39.   }
  40.   mailbox Junk {
  41.     auto = subscribe
  42.     special_use = \Junk
  43.   }
  44.   mailbox "Junk E-mail" {
  45.     auto = no
  46.     special_use = \Junk
  47.   }
  48.   mailbox Sent {
  49.     auto = subscribe
  50.     special_use = \Sent
  51.   }
  52.   mailbox "Sent Items" {
  53.     auto = no
  54.     special_use = \Sent
  55.   }
  56.   mailbox "Sent Messages" {
  57.     auto = no
  58.     special_use = \Sent
  59.   }
  60.   mailbox Spam {
  61.     auto = no
  62.     special_use = \Junk
  63.   }
  64.   mailbox Trash {
  65.     auto = subscribe
  66.     special_use = \Trash
  67.   }
  68.   prefix =
  69.   separator = /
  70.   type = private
  71. }
  72. namespace {
  73.   list = children
  74.   location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%Ld/%%Ln
  75.   prefix = Shared/%%u/
  76.   separator = /
  77.   subscriptions = yes
  78.   type = shared
  79. }
  80. passdb {
  81.   args = /etc/dovecot/dovecot-mysql.conf
  82.   driver = sql
  83. }
  84. passdb {
  85.   args = /etc/dovecot/dovecot-master-users
  86.   driver = passwd-file
  87.   master = yes
  88. }
  89. plugin {
  90.   acl = vfile
  91.   acl_shared_dict = proxy::acl
  92.   mail_log_events = delete undelete expunge mailbox_delete mailbox_rename
  93.   mail_log_fields = uid box msgid size from subject
  94.   mailbox_alias_new = Sent Messages
  95.   mailbox_alias_new2 = Sent Items
  96.   mailbox_alias_old = Sent
  97.   mailbox_alias_old2 = Sent
  98.   quota = dict:user::proxy::quotadict
  99.   quota_grace = 10%%
  100.   quota_warning = storage=100%% quota-warning 100 %u
  101.   quota_warning2 = storage=95%% quota-warning 95 %u
  102.   quota_warning3 = storage=90%% quota-warning 90 %u
  103.   quota_warning4 = storage=85%% quota-warning 85 %u
  104.   sieve = ~/sieve/dovecot.sieve
  105.   sieve_before = /var/vmail/sieve/dovecot.sieve
  106.   sieve_dir = ~/sieve
  107.   sieve_global_dir = /var/vmail/sieve
  108.   sieve_max_redirects = 30
  109.   sieve_vacation_send_from_recipient = yes
  110.   stats_refresh = 30 secs
  111.   stats_track_cmds = yes
  112. }
  113. protocols = pop3 imap sieve lmtp
  114. service auth {
  115.   unix_listener /var/spool/postfix/private/dovecot-auth {
  116.     group = postfix
  117.     mode = 0666
  118.     user = postfix
  119.   }
  120.   unix_listener auth-master {
  121.     group = vmail
  122.     mode = 0666
  123.     user = vmail
  124.   }
  125.   unix_listener auth-userdb {
  126.     group = vmail
  127.     mode = 0660
  128.     user = vmail
  129.   }
  130. }
  131. service dict {
  132.   unix_listener dict {
  133.     group = vmail
  134.     mode = 0660
  135.     user = vmail
  136.   }
  137. }
  138. service imap-login {
  139.   process_limit = 500
  140.   service_count = 1
  141. }
  142. service lmtp {
  143.   executable = lmtp -L
  144.   inet_listener lmtp {
  145.     address = 127.0.0.1
  146.     port = 24
  147.   }
  148.   process_min_avail = 5
  149.   unix_listener /var/spool/postfix/private/dovecot-lmtp {
  150.     group = postfix
  151.     mode = 0600
  152.     user = postfix
  153.   }
  154.   user = vmail
  155. }
  156. service managesieve-login {
  157.   inet_listener sieve {
  158.     address = 127.0.0.1
  159.     port = 4190
  160.   }
  161. }
  162. service pop3-login {
  163.   service_count = 1
  164. }
  165. service quota-warning {
  166.   executable = script /usr/local/bin/dovecot-quota-warning.sh
  167.   unix_listener quota-warning {
  168.     group = vmail
  169.     mode = 0660
  170.     user = vmail
  171.   }
  172. }
  173. service stats {
  174.   fifo_listener stats-mail {
  175.     mode = 0644
  176.     user = vmail
  177.   }
  178.   inet_listener {
  179.     address = 127.0.0.1
  180.     port = 24242
  181.   }
  182. }
  183. ssl = required
  184. ssl_cert = </etc/letsencrypt/live/takeoffstudios.net/fullchain.pem
  185. ssl_cipher_list = ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5
  186. ssl_key = </etc/letsencrypt/live/takeoffstudios.net/privkey.pem
  187. ssl_prefer_server_ciphers = yes
  188. ssl_protocols = !SSLv2 !SSLv3
  189. syslog_facility = local5
  190. userdb {
  191.   args = /etc/dovecot/dovecot-mysql.conf
  192.   driver = sql
  193. }
  194. protocol lda {
  195.   lda_mailbox_autocreate = yes
  196.   lda_mailbox_autosubscribe = yes
  197.   mail_plugins = quota mailbox_alias acl mail_log notify stats sieve
  198. }
  199. protocol lmtp {
  200.   lmtp_save_to_detail_mailbox = yes
  201.   mail_plugins = quota sieve
  202.   recipient_delimiter = +
  203. }
  204. protocol imap {
  205.   imap_client_workarounds = tb-extra-mailbox-sep
  206.   mail_max_userip_connections = 30
  207.   mail_plugins = quota mailbox_alias acl mail_log notify stats imap_quota imap_acl imap_stats
  208. }
  209. protocol pop3 {
  210.   mail_max_userip_connections = 30
  211.   mail_plugins = quota mailbox_alias acl mail_log notify stats
  212.   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  213.   pop3_uidl_format = %08Xu%08Xv
  214. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top