summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-01-19 12:05:46 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-01-19 12:05:46 +0100
commita795db5c2d1fcf0f052f2c3c750daec6c2ac4bfe (patch)
tree73209e426fe9625fcbaf344dd90ce11a52c1b5c1 /share
parent326886c3923f71e6495a07c0d439553d41488bf4 (diff)
downloadpykolab-a795db5c2d1fcf0f052f2c3c750daec6c2ac4bfe.tar.gz
Swap default IMAP interface from Cyrus IMAP to Guam
Diffstat (limited to 'share')
-rw-r--r--share/templates/cyrus.conf.tpl25
-rw-r--r--share/templates/guam.sys.config.tpl78
2 files changed, 85 insertions, 18 deletions
diff --git a/share/templates/cyrus.conf.tpl b/share/templates/cyrus.conf.tpl
index 9a4a17a..3118aab 100644
--- a/share/templates/cyrus.conf.tpl
+++ b/share/templates/cyrus.conf.tpl
@@ -2,33 +2,22 @@
START {
# do not delete this entry!
- recover cmd="ctl_cyrusdb -r"
+ recover cmd="ctl_cyrusdb -r"
- # this is only necessary if using idled for IMAP IDLE
- idled cmd="idled"
+ idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
- # add or remove based on preferences
- imap cmd="imapd" listen="imap" prefork=5
- imaps cmd="imapd -s" listen="imaps" prefork=1
- pop3 cmd="pop3d" listen="pop3" prefork=3
- pop3s cmd="pop3d -s" listen="pop3s" prefork=1
- sieve cmd="timsieved" listen="sieve" prefork=0
+ imaps cmd="imapd -s" listen="127.0.0.1:9993" prefork=5
- ptloader cmd="ptloader" listen="/var/lib/imap/ptclient/ptsock" prefork=0
+ sieve cmd="timsieved" listen="sieve" prefork=0
- # these are only necessary if receiving/exporting usenet via NNTP
- #nntp cmd="nntpd" listen="nntp" prefork=3
- #nntps cmd="nntpd -s" listen="nntps" prefork=1
+ ptloader cmd="ptloader" listen="/var/lib/imap/ptclient/ptsock" prefork=0
- # at least one LMTP is required for delivery
- #lmtp cmd="lmtpd" listen="lmtp" prefork=0
- lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
+ lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
- # this is only necessary if using notifications
- notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
+ notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
diff --git a/share/templates/guam.sys.config.tpl b/share/templates/guam.sys.config.tpl
new file mode 100644
index 0000000..2ad9456
--- /dev/null
+++ b/share/templates/guam.sys.config.tpl
@@ -0,0 +1,78 @@
+%% Example configuration for Guam.
+[
+ {
+ kolab_guam, [
+ {
+ imap_servers, [
+ {
+ imaps, [
+ { host, "127.0.0.1" },
+ { port, 9993 },
+ { tls, true }
+ ]
+ }
+ ]
+ },
+ {
+ listeners, [
+ {
+ imap, [
+ { port, 143 },
+ { imap_server, imap },
+ {
+ rules, [
+ { filter_groupware, [] }
+ ]
+ },
+ {
+ tls_config, [
+ { certfile, "/etc/pki/cyrus-imapd/cyrus-imapd.pem" }
+ ]
+ }
+ ]
+ },
+ {
+ imaps, [
+ { port, 993 },
+ { implicit_tls, true },
+ { imap_server, imaps },
+ {
+ rules, [
+ { filter_groupware, [] }
+ ]
+ },
+ {
+ tls_config, [
+ { certfile, "/etc/pki/cyrus-imapd/cyrus-imapd.pem" }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+
+ {
+ lager, [
+ {
+ handlers, [
+ { lager_console_backend, warning },
+ { lager_file_backend, [ { file, "log/error.log"}, { level, error } ] },
+ { lager_file_backend, [ { file, "log/console.log"}, { level, info } ] }
+ ]
+ }
+ ]
+ },
+
+ %% SASL config
+ {
+ sasl, [
+ { sasl_error_logger, { file, "log/sasl-error.log" } },
+ { errlog_type, error },
+ { error_logger_mf_dir, "log/sasl" }, % Log directory
+ { error_logger_mf_maxbytes, 10485760 }, % 10 MB max file size
+ { error_logger_mf_maxfiles, 5 } % 5 files max
+ ]
+ }
+].