PDA

View Full Version : WebMail with RoundCube


fredchevitarese
01-16-2007, 01:19 PM
This tutorial was found in www.vivaolinux.com.br in portugues language ok?
So, i'll put this here because i like it very much !

Let's go!!


The Round Cube is an easy and secure webmail client with a friendly interface that remembers the desktop mail readers, like Outlook , Kmail and Evolution.
He supports MIME, address book and message filters.

He was developed in PHP with mysql db Postgres and SQLite and XHTML and CSS.

The installation is very simple.

System Requisites:

* Apache Webserver
* .htaccess with overrides on DirectoryIndex
* PHP Version 4.3.1 or later
* PCRE (perl compatible regular expression) installed with PHP
* Changes on php.ini:
- error_reporting E_ALL & ~E_NOTICE
- file_uploads on
- memory_limit ( what you think is necessary )
* Database MySQL Server 4.x or later, PostgreSQL or SQLite with PHP

Original font - http://sourceforge.net/projects/roundcubemail

The RoundCube package is ready to download on http://downloads.sourceforge.net/roundcubemail/roundcubemail-0.1beta2.tar.gz?modtime=1154875726&big_mirror=0

Unpack the file "roundcubemail-0.1beta2.tar.gz" and do the changes on your DocumentRoot of your Apache. (If you want, unpack this in the Apache folder. Something like this: /var/srv/htdocs/roundcube)


Change the permissions of "/temp" and "/logs" of roundcube to writeable

Create the database and the user to be used in the application. Something like this.

# mysql
> CREATE DATABASE 'roundcubemail';
> GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost IDENTIFIED BY 'password';
> quit
# mysql roundcubemail < SQL/mysql.initial.sql

To verify if it was ok, do this:


# mysql > show databases;

+------------------------------+
| Database |
+------------------------------+
| information_schema |
| mysql |
| roundcubemail |
+------------------------------+
3 rows in set (0.03 sec)

> use roundcubemail; > show tables;

+--------------------------+
| Tables_in_roundcubemail |
+--------------------------+
| cache |
| contacts |
| identities |
| messages |
| session |
| users |
+--------------------------+
6 rows in set (0.00 sec)

> quit;


If you see something like this, this is ok!

Now, to use our cliente we need to change some things in the files into config folder.

Rename the files "db.inc.php.dist" and "main.inc.php.dist" to db.inc.php and main.inc.php.

Then, edit the file "db.inc.php and adjust the configurations of the database. (Something like this)

# Find the line above and insert the configurations of your db
$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';

Then edit the file "main.inc.php" and adjust the configurations of your webserver:

# Find the lines above and insert your settings of your mailserver:
$rcmail_config['default_host'] = 'localhost'; //The host name of your mailserver
$rcmail_config['default_port'] = 143;
$rcmail_config['mail_domain'] = 'yourdomain.com';
$rcmail_config['smtp_server'] = 'SEU_IP'; // IP or the name of your smtp server
$rcmail_config['smtp_port'] = 25; //Port to the protocol SMTP

# There are many other settings, but i don't use this. If you want to try! Go ahead.

Everything done ...

Let's access our new webmail client .
http://yourserver.com/roundcube

This is my first article and i don't know if was cool!!!

My english is very poor... I'm from Brazil and i'm only translating the tuto to you!!

ThankS! :D

amg137
09-12-2007, 06:31 PM
Hi, every body

I was configuring a server mail, i will folow all instructios of qmailrocks, however a want to configure my webmail with roundcube, y follow all instructions by i'm not sure in this part:

$rcmail_config['smtp_user'] = '';
$rcmail_config['smtp_pass'] = '';

what values go here ... please help me

I dont understand, because i tried with an user of the host ... also a tried whit user postmaster and nothing ...

how i have to use round cube, help me!!!

P.D. Excusame, my english is so bad.

KingKingAli
09-23-2007, 05:22 AM
Leave both blank.
These are only needed if you use an ISP's SMTP server to send email and this requires a username and password.

We still require a username and password in the QmailRocks setup, however since in our rcpthosts we specified that we want to accept any email for routing from 127.0.0.1 so we can leave these 2 fields blank.

Syngin
09-24-2007, 02:31 PM
Depends on whether he needs SMTP AUTH. If so put your username (with full virtual domain info, ie. bob@bob.com) and password there.

crespowu
01-09-2008, 11:37 PM
Great tutorial,it helped me a lot.

DVD to iPod (http://www.pqdvd.com/rd.php?n=2)

LesteMichaelr
10-31-2008, 09:27 AM
Depends on whether he needs SMTP AUTH. If so put your username (with full virtual domain info, ie. bob@bob.com) and password there:rolleyes: