#
# Cyrus Master configuration: Client services plus sync_client
#
# This server provides client access and mail delivery via
# pop3, imap, sieve, and lmtp and synchronizes mailboxes
# to a replica server via sync_client.
#

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

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

  # Added for Replication -- master
  # -r: rolling replication
  # -o: try once, to avoid lockups that could affect users
  # -l: verbose logging mode
  # syncclient       cmd="/usr/lib/cyrus-imapd/sync_client -r -l -o" listen="csync"
  # syncclient       cmd="/usr/lib/cyrus-imapd/sync_client -r -l" listen="csync"
}

# 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
  pop3          cmd="pop3d" listen="pop3" prefork=3
  sieve         cmd="timsieved" listen="sieve" prefork=0

  # at least one LMTP is required for delivery
  lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1

}

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
}