summaryrefslogtreecommitdiffstats
path: root/roles/IMAP-proxy/templates
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-05-28 13:52:48 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-05-28 14:17:19 +0200
commit0084cd71699b4ad55c2912647f93afa32bbf7671 (patch)
tree03ec41af2a3e9fd565805c86f4b4552c13daec66 /roles/IMAP-proxy/templates
parent05d59141d1115cafb663305d680a930f089b4851 (diff)
Remove the IMAP caching proxy.
Dovecot imapc requires two authentication rounds to the IMAP backend for each connection. It seems suboptimal that Roundcube keeps connecting to the IMAP server for each new connection, but benchmarks shows little advantage in caching the IMAP sessions with imapproxy: http://www.dovecot.org/list/dovecot/2012-February/133544.html
Diffstat (limited to 'roles/IMAP-proxy/templates')
-rw-r--r--roles/IMAP-proxy/templates/etc/dovecot/conf.d/20-imapc.conf.j217
-rw-r--r--roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j217
2 files changed, 0 insertions, 34 deletions
diff --git a/roles/IMAP-proxy/templates/etc/dovecot/conf.d/20-imapc.conf.j2 b/roles/IMAP-proxy/templates/etc/dovecot/conf.d/20-imapc.conf.j2
deleted file mode 100644
index 6284f67..0000000
--- a/roles/IMAP-proxy/templates/etc/dovecot/conf.d/20-imapc.conf.j2
+++ /dev/null
@@ -1,17 +0,0 @@
-# Smart IMAP proxying with imapc storage
-#
-# http://dovecot.org/pipermail/dovecot/2011-January/056975.html
-# http://wiki2.dovecot.org/HowTo/ImapcProxy
-# http://wiki2.dovecot.org/MailboxFormat/imapc
-# http://wiki2.dovecot.org/Migration/Dsync
-
-imapc_host = {{ ipsec[imapsvr.inventory_hostname_short] }}
-imapc_port = 143
-
-# Read multiple mails in parallel, improves performance
-mail_prefetch_count = 25
-
-# The list of valid features can be found at
-# https://github.com/dovecot/core/blob/master/src/lib-storage/index/imapc/imapc-settings.c
-# (in the struct 'imapc_feature_list imapc_feature_list')
-imapc_features = rfc822.size fetch-headers search
diff --git a/roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2 b/roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2
deleted file mode 100644
index 30b8d7f..0000000
--- a/roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2
+++ /dev/null
@@ -1,17 +0,0 @@
-# Authentication via remote IMAP server. Included from auth.conf.
-#
-# <doc/wiki/PasswordDatabase.IMAP.txt>
-
-passdb {
- driver = imap
- args = host={{ ipsec[imapsvr.inventory_hostname_short] }} port=143
- default_fields = userdb_imapc_password=%w
-}
-
-# "prefetch" user database means that the passdb already provided the
-# needed information and there's no need to do a separate userdb lookup.
-# <doc/wiki/UserDatabase.Prefetch.txt>
-userdb {
- driver = prefetch
- default_fields = home=/var/lib/imapproxy/%d/%n
-}