Fetching Email Using Cyrus IMAPd

Cyrus IMAPd is a flexible service that can be used to get incoming mail. In this section, you will learn what is needed to install and configure this MDA.

The first step to operate Cyrus IMAPd is to install it. For this purpose, you need the cyrus-imapd package. Once this is installed, you have to configure Postfix for providing e-mail through Cyrus IMAPd. The line that makes this possible is usually in the Postfix master.cf already:

cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}

From master.cf, Postfix calls the deliver program that submits all e-mail to recipients on the system. This program replaces the Postfix local program. For Cyrus IMAPd to do this, all recipients must exist as local users in /etc/passwd on the server where Postfix is used. Another task you need to perform to make Cyrus IMAPd responsible for all incoming mail is to modify /etc/postfix/ transport to arrange just this. In the transport lookup table, you enter a line in which your domain is specified, and cyrus is indicated as the responsible handler for incoming mail. This line looks like this:

somedomain.com cyrus:

Make sure that after making this modification, you generate the corresponding lookup table with the command postmap hash:/etc/postfix/transport.

Was this article helpful?

0 0

Post a comment