# standard standalone server implementation

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

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

  # Rolling replication
  syncclient       cmd="/usr/cyrus/bin/sync_client -o -r"
}

# UNIX sockets start with a slash and are put into /var/imap/sockets
SERVICES {
  # add or remove based on preferences
  imap		cmd="imapd" listen="20143" prefork=5 provide_uuid=1
  imaps		cmd="imapd -s" listen="imaps" prefork=1 provide_uuid=1
#  pop3		cmd="pop3d" listen="pop3" prefork=3
#  pop3s		cmd="pop3d -s" listen="pop3s" prefork=1
  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

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

  # ptloading
  ptloader      cmd="ptloader" listen="/var/imap/ptclient/ptsock" prefork=1

  # this is only necessary if using notifications
#  notify	cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" 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 -X 0" at=0400

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

  # Make searches faster
  squatter	cmd="squatter -s -r user" at=0300
}
