User:J5lx/Cyrus IMAP

From ArchWiki
Jump to navigation Jump to search

Cyrus IMAP is an open source email, contacts and calendar server. It differs from other mail servers in that it is designed to run on sealed systems where users access mail remotely through internet protocols such as (K)POP, NNTP or the eponymous IMAP rather than locally.

Installation

First install the cyrus-imapdAUR package. Afterwards, before starting Cyrus for the first time, you need to initialise the configuration directory and mail partitions. Adjust the default paths in /etc/cyrus/imapd.conf if desired, then run the mkimap command as user cyrus and group mail:

# runuser -u cyrus -g mail mkimap /etc/cyrus/imapd.conf

You can now start and/or enable the cyrus-imapd.service daemon using systemd.

Receiving mail

To receive messages, you need to configure your mail transfer agent to hand incoming mail directly to Cyrus. The preferred delivery method is through Cyrus's LMTP server, which listens on the socket /run/cyrus/socket/lmtp by default. For example, to have Postfix deliver mail addressed to virtual mailboxes to Cyrus, add the following line to main.cf:

/etc/postfix/main.cf
virtual_transport = lmtp:unix:/run/cyrus/socket/lmtp
Note: You will still need to configure the remaining virtual mail options according to your needs.