Commit 619e455b authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added /etc/cyrus.conf

parent df69b65c
all: imapd-config cyrus-imapd-service
all: cyrus-config imapd-config cyrus-imapd-service
tar xf cyrus-imapd-3.2.3.tar.gz
cd cyrus-imapd-3.2.3 && ./configure --prefix=/usr
$(MAKE) -C cyrus-imapd-3.2.3
$(MAKE) -C cyrus-imapd-3.2.3 install
install -v -d -m755 /var/lib/imap
install -v -d -m755 /var/lib/imap/sieve
install -v -d -m755 /var/lib/imap/socket
install -v -d -m755 /var/spool/imap
install -v -d -m755 /etc/ssl/cyrus-imapd
@echo "$$CYRUS_CONFIG" > /etc/cyrus.conf
@echo "$$IMAPD_CONFIG" > /etc/imapd.conf
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/cyrus-imapd/cyrus-imapd.key -out /etc/ssl/cyrus-imapd/cyrus-imapd.crt -subj "/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com"
@echo "$$CYRUS_IMAPD_SERVICE" > /lib/systemd/system/cyrus-imapd.service
systemctl enable cyrus-imapd.service
rm -rf cyrus-imapd-3.2.3
cyrus-config:
define CYRUS_CONFIG
START {
recover cmd="ctl_cyrusdb -r"
idled cmd="idled"
}
SERVICES {
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-filter" prefork=0
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1 maxchild=10
smmap cmd="smmapd" listen="/var/lib/imap/socket/smmapd" prefork=0
}
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
# indexing of mailboxs for server side fulltext searches
# reindex changed mailboxes (fulltext) approximately every other hour
squatter1 cmd="nice -n 19 squatter -s" period=120
# reindex all mailboxes (fulltext) daily
squattera cmd="squatter" period=44640
}
endef
export CYRUS_CONFIG
imapd-config:
define IMAPD_CONFIG
configdirectory: /var/lib/imap
......@@ -23,8 +61,6 @@ sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
allowanonymouslogin: no
allowplaintext: yes
tls_server_cert: /etc/ssl/cyrus-imapd/cyrus-imapd.crt
tls_server_key: /etc/ssl/cyrus-imapd/cyrus-imapd.key
tls_server_ca: /etc/ssl/ca-bundle.pem
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment