Fetchmail, Cyrus and Exim4 – a Mail Server for Linux

Cyrus installation

  • Install cyrus:

    apt-get install cyrus-admin-2.2 cyrus-clients-2.2 cyrus-imapd-2.2 sasl2-bin

  • Adjust /etc/imapd.conf. Make sure the following lines exist and are not commented out.

    admins: cyrus
    sasl_pwcheck_method: saslauthd
    sasl_mech_list: PLAIN

  • Check in /etc/default/saslauthd, if these lines are there, if not adjust it.


  • Start the sasl daemon now

    /etc/init.d/saslauthd start

  • Set the password for the cyrus user in sals and system:

    saslpasswd2 -c cyrus
    passwd cyrus

    You’ll be asked for password in every single case above twice.

  • Login into cyradm and create your mail accounts.

    cyradm --user cyrus localhost
    >cm user.john
    >cm user.susan

    We’ve created the email accounts for John and Susan. Leave cyradm with ‘quit’