Roundcube

Different SMTP Server per Identity

  • To support different SMTP servers for an identity, enable the identity-smtp USE-flag for www-apps/kolab-roundcube:
$ echo "www-apps/kolab-roundcube identity-smtp" >> /etc/portage/package.use/kolab
  • And enable the plugin in the Roundcube config:
/etc/kolab-roundcube/config.inc.php
// ...
// Plugins
$config['plugins'] = array(
    // ...
    'identity_smtp'
);
// ...

CalDAV/iCal Support

  • In order to enable CalDAV/iCal calendar support for Roundcube, enable the caldav USE-flag for the www-apps/kolab-roundcube ebuild:
$ echo "www-apps/kolab-roundcube caldav" >> /etc/portage/package.use/kolab
  • Enable the appropriate drivers in the calendar config:
/etc/kolab-roundcube/calendar.inc.php
// ...
$config['calendar_driver'] = array("kolab", "caldav", "ical");
// ...
  • You should also set a custom crypt key for encryption of CalDAV/iCAL credentials:
/etc/kolab-roundcube/calendar.inc.php
// ...
$config['calendar_crypt_key'] = "some_random_key_stuff";
  • Next the appropriate database tables must be created:
# Support for CalDAV calendars
$ mysql -h localhost -u roundcube -p roundcube < /usr/share/kolab-roundcube/plugins/calendar/drivers/caldav/SQL/mysql.initial.sql
# Support for iCal calendars
$ mysql -h localhost -u roundcube -p roundcube < /usr/share/kolab-roundcube/plugins/calendar/drivers/ical/SQL/mysql.initial.sql
  • Next the appropriate database tables must be created. After you've enable the appropriate driver in the config, you can do this with the following:

Consult our Gitlab for detailed installation instructions, troubleshooting or other issues.

Getmail

  • In order to enable the Getmail plugin for Roundcube, unmask www-apps/kolab-roundcube-getmail, enable the getmail USE-flag for www-apps/kolab-roundcube and emerge www-apps/kolab-roundcube-getmail:
$ echo "<www-apps/kolab-roundcube-getmail-9999 ~amd64" >> /etc/portage/package.keywords/kolab
$ echo "www-apps/kolab-roundcube getmail" >> /etc/portage/package.use/kolab
$ emerge -av kolab-roundcube-getmail
  • Create SQL database tables:
$ mysql -h localhost -u roundcube -p roundcube < /usr/share/kolab-roundcube/plugins/getmail/drivers/database/SQL/mysql.initial.sql
  • Adapt the Getmail settings in /etc/kolab-roundcube/getmail.inc.php accordingly. By default, the Cyrus IMAP delivery method is configured as default destination. This is fine for the standard Kolab setup.
  • Setup /usr/share/kolab-roundcube/plugins/getmail/bin/cron.php as a cronjob to frequently check for new mails i.e. each 5 min:
echo "*/5 * * * * root /usr/share/kolab-roundcube/plugins/getmail/bin/cron.php" >> /etc/crontab
  • Enable the plugin in the Roundcube config:
/etc/kolab-roundcube/config.inc.php
// ...
// Plugins
$config['plugins'] = array(
    // ...
    'getmail'
);
// ...
  • Now, users can add IMAP/POP3 accounts using the Getmail frontend in the Roundcube settings.

Persistent Login

  • To enable persistent login, unmask www-apps/kolab-roundcube-persistent-login, enable the persistent-login USE-flag for www-apps/kolab-roundcube and emerge www-apps/kolab-roundcube-persistent-login:
$ echo "<www-apps/kolab-roundcube-persistent-login-9999 ~amd64" >> /etc/portage/package.keywords/kolab
$ echo "www-apps/kolab-roundcube persistent-login" >> /etc/portage/package.use/kolab
$ emerge -av kolab-roundcube-persistent-login
  • Create SQL database tables:
$ mysql -h localhost -u roundcube -p roundcube < /usr/share/kolab-roundcube/plugins/persistent_login/sql/mysql.sql
  • Turn on auth token cookie:
/etc/kolab-roundcube/persistent_login.inc.php
// Turn on feature  to use tokens.
$rcmail_config['ifpl_use_auth_tokens'] = true;
  • Enable the plugin in the Roundcube config:
/etc/kolab-roundcube/config.inc.php
// ...
// Plugins
$config['plugins'] = array(
    // ...
    'persistent_login'
);
// ...