Roundcube

Roundcube is one of the better webmail solutions.

It offers all of the basic functionality one would expect, and in addition, capabilities for manipulating sieve (server side mail filter) rules, and if you’re so inclined, gpg /pgp . Note that storing gpg /pgp private keys on a server is not something to be done with out careful consideration of the risks involved. Documentation for Roundcube .

Create/populate the database

We will start by creating a user and database:

1CREATE ROLE roundcube WITH LOGIN ENCRYPTED PASSWORD 'password';
2CREATE DATABASE roundcube WITH OWNER = roundcube;

Now, you should be able to point your browser at your webserver (https://my-ip/webmail/installer/), and get something that looks similar to this:

Here are the bits I’ve added (or lines I’ve modified) from the default/sample config.

 1// $config['enable_installer'] = true;
 2
 3$config['db_dsnw'] = 'pgsql://roundcube:pass@localhost/roundcube';
 4
 5$config['default_host'] = 'ssl://mx.cryptomonkeys.com';
 6
 7// IMAP
 8$config['default_port'] = 993;
 9$config['imap_auth_type'] = plain;
10$config['imap_conn_options'] = array(
11  'ssl'         => array(
12         'verify_peer'  => false,
13         'verfify_peer_name' => false,
14   ),
15);
16$config['default_host'] = 'localhost';
17
18$config['smtp_server'] = 'ssl://mx.cryptomonkeys.com';
19
20$config['smtp_conn_options'] = array(
21  'ssl'         => array(
22         'verify_peer'  => false,
23         'verfify_peer_name' => false,
24   ),
25);
26
27$config['smtp_port'] = 465;
28
29$config['smtp_user'] = '%u@%n';
30
31$config['smtp_pass'] = '%p';
32$config['product_name'] = 'Cryptomonkeys Webmail';
33
34$config['des_key'] = 'rcmail-!24ByteDESkey*Str';
35
36 // List of active plugins (in plugins/ directory)
37 $config['plugins'] = array(
38     'archive',
39     'zipdownload',
40     'managesieve',
41     'additional_message_headers',
42     'jqueryui',
43 );

I’ve included the managesieve and additional_message_headers plugins.

If you’ve added a user (associated with a domain) with PostfixAdmin already, you can login as that user and have a look around. Keep in mind, this is just the default setup so far (we’ve added a couple plugins, but haven’t changed any defaults yet). We can however, look at the sieve rules which are located under settings -> filters -> roundcube.


Footnotes and References

Copyright

Comments