|
Установка RoundCube # cd /usr/ports/mail/roundcube && make install clean Options for roundcube 0.2.b,1
[X] MYSQL Use MySQL backend [ ] PGSQL Use PostgreSQL backend
[ ] SQLITE Use SQLite backend [X] SSL Enable SSL support (imaps or google spellcheck) [ ] LOCALCHECK Install internal spellchecker # mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 38 Server version: 5.0.67 FreeBSD port: mysql-server-5.0.67_1
Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE DATABASE roundcubemail DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; Query OK, 1 row affected (0.01 sec)
mysql> GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'password'; Query OK, 0 rows affected (0.00 sec)
mysql> quit Bye # cd /usr/local/www/roundcube/ # mysql -p roundcubemail < SQL/mysql.initial.sql # cp config/db.inc.php.dist config/db.inc.php # ee config/db.inc.php $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail'; # ee config/main.inc.php $rcmail_config['default_host'] = '127.0.0.1';
// display these folders separately in the mailbox list. // these folders will also be displayed with localized names $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
// automatically create the above listed default folders on login $rcmail_config['create_default_folders'] = TRUE;
// protect the default folders from renames, deletes, and subscription changes $rcmail_config['protect_default_folders'] = TRUE;
# ee /usr/local/etc/apache22/httpd.conf Alias /roundcube/ "/usr/local/www/roundcube/"
Options none AllowOverride Limit
Order Deny,Allow Deny from all Allow from 127.0.0.1 192.168.0.
# cd config/ # chmod 660 db.inc.php # apachectl restart
|