vmwareroundcube

Configure Roundcube 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, Postfix 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 Roundcube with Postfix and Dovecot, modify the following options in the /opt/bitnami/apps/roundcube/htdocs/config/main.inc.php file:

    // IMAP
    $rcmail_config['default_host'] = 'machine.example.com';
    $rcmail_config['default_port'] = 143;
    // SMTP
    $rcmail_config['smtp_server'] = 'machine.example.com';
    $rcmail_config['smtp_port'] = 25;
    

Other configurations are also possible and supported. Refer to the Ubuntu community guides listed below for more information:

Last modification September 4, 2018