#
# Cyrus Replica configuration: SYNCSERVER ONLY
#
# DO NOT RUN imap, pop3, lmtp, sieve or other client services
# on a REPLICA server.  To do so will cause a split-brain
# condition with different mailbox data on the active
# and replica mailstores.
#

START {
  # do not delete this entry!
  recover       cmd="ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
  idled         cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {

  # Replica only runs SYNCSERVER --  no imap, pop3, sieve, lmtp, etc.
  syncserver    cmd="/usr/lib/cyrus-imapd/sync_server" listen="csync"

}

EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune      cmd="cyr_expire -E 3" at=0400

  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" at=0400
}
