oraclehorde

Configure Horde Groupware Webmail with Postfix and Dovecot

Follow these steps:

  • Install Postfix. Postfix is a free, open source Mail Transfer Agent which works to route and deliver email. Before installing Postfix, you will need to have a Fully Qualified Domain Name pointing to the server that you will be using. On Ubuntu and similar systems, Postfix can be installed using the command apt-get install postfix. On CentOS systems, Postfix can be installed using the command yum install postfix.
  • Once Postfix is installed, configure the following options in the /etc/postfix/main.cf file.

    myhostname = example.com
    ...
    home_mailbox = Maildir/
    
  • Install Dovecot. Dovecot is a open source Mail Delivery Agent that works with IMAP and POP3. On Ubuntu and similar systems, Dovecot can be installed using the command apt-get install dovecot-imapd. On CentOS systems, Dovecot can be installed using the command yum -y install dovecot.

  • Once Dovecot is installed, configure the following option in the /etc/dovecot/conf.d/10-mail.conf file:

    mail_location = maildir:~/Maildir
    
  • To configure Horde with Postfix and Dovecot, modify the following options in the /opt/bitnami/apps/horde/htdocs/imp/config./backends.php file:

    $servers['imap'] = array(
        'disabled' => false,
        'name' => 'Postfix-Dovecot Server',
        'hostspec' => 'machine.example.com',
        'hordeauth' => false,
        'protocol' => 'imap',
        'port' => 143,
        'secure' => 'tls',
        'maildomain' => 'example.com',
        'smtp' => array(
            'auth' => true,
            'localhost' => 'localhost',
            'host' => 'machine.example.com',
            'password' => null,
            'port' => 25,
            'username' => null
        ),
        'cache' => false,
    );
    
Last modification September 4, 2018