Yacoubi Mohamed - Mot-clé - roundcube
2023-02-13T14:54:31+01:00
Yacoubi Mohamed
urn:md5:eacabd43d1ec1439188ee60076d41b1e
Dotclear
How To Roundcube
urn:md5:abe2fafab90e97d244c7ae6553a2f380
2008-09-08T23:23:00+02:00
2010-02-28T21:22:10+01:00
Mohamed YACOUBI
Mails
Gentoo
infogérance
linux
roundcube
webmail
<p><img src="https://blog.yacoubi.fr/public/Logo/roundcube_logo.png" alt="roundcube_logo.png" style="display:block; margin:0 auto;" title="roundcube_logo.png, fév. 2010" />
<br />
Habituellement j'utilise <strong>Squirrelmail</strong>, néanmoins ce dernier commence à m'ennuyer (par habitude je vous rassure) j'ai donc décidé de le remplacer par <strong>Roundcube</strong>.</p>
<p><strong>RoundCube Webmail</strong> (RC) est un client Webmail IMAP multilingue basé sur les standards du web, et doté d'une interface utilisateur lui donnant l'aspect d'une application "client lourd" classique. Il contient toutes les fonctionnalités que vous pouvez attendre d'un client de messagerie électronique, notamment le support des types MIME, un carnet d'adresse, la manipulation des dossiers IMAP, la recherche de messages, et la vérification orthographique. <strong>RoundCube Webmail</strong> est écrit en PHP et nécessite une base de données MySQL. L'interface utilisateur est entièrement personnalisable, via l'utilisation de XHTML et de CSS2.</p>
<p><strong>Roundcube</strong> fournit une interface de votre système de messagerie via le web. Il contient toutes les fonctionnalités que vous pourriez attendre d'un client E-Mail moderne, notamment les carnets d'adresse et la manipulation des dossiers IMAP. <strong>RoundCube</strong> est aussi fortement personnalisable. Vos administrateurs système peuvent écrire et installer des thèmes pour que cela convienne à votre identité de marque.</p>
<h3>On prépare les sources</h3>
<pre class="bash"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>;
svn checkout https:<span style="color: #000000; font-weight: bold;">//</span>svn.roundcube.net<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span>roundcubemail roundcube;</pre>
<h3>On crée la base de donnée et le user</h3>
<pre class="sql"><span style="color: #993333; font-weight: bold;">CREATE</span> USER <span style="color: #ff0000;">'db_roundcube'</span>@<span style="color: #ff0000;">'%'</span> <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'****************'</span>;
<span style="color: #993333; font-weight: bold;">GRANT</span> USAGE <span style="color: #993333; font-weight: bold;">ON</span> * . * <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">'db_roundcube'</span>@<span style="color: #ff0000;">'%'</span> <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'****************'</span> <span style="color: #993333; font-weight: bold;">WITH</span> MAX_QUERIES_PER_HOUR <span style="color: #cc66cc;">0</span> MAX_CONNECTIONS_PER_HOUR <span style="color: #cc66cc;">0</span> MAX_UPDATES_PER_HOUR <span style="color: #cc66cc;">0</span> MAX_USER_CONNECTIONS <span style="color: #cc66cc;">0</span> ;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> <span style="color: #ff0000;">`db_roundcube`</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> CHARACTER <span style="color: #993333; font-weight: bold;">SET</span> latin1 COLLATE latin1_swedish_ci;
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">SELECT</span> , <span style="color: #993333; font-weight: bold;">INSERT</span> , <span style="color: #993333; font-weight: bold;">UPDATE</span> , <span style="color: #993333; font-weight: bold;">DELETE</span> , <span style="color: #993333; font-weight: bold;">CREATE</span> , <span style="color: #993333; font-weight: bold;">DROP</span> , <span style="color: #993333; font-weight: bold;">INDEX</span> , <span style="color: #993333; font-weight: bold;">ALTER</span> , <span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TEMPORARY</span> <span style="color: #993333; font-weight: bold;">TABLES</span> , <span style="color: #993333; font-weight: bold;">LOCK</span> <span style="color: #993333; font-weight: bold;">TABLES</span> , <span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">VIEW</span> , <span style="color: #993333; font-weight: bold;">SHOW</span> <span style="color: #993333; font-weight: bold;">VIEW</span> , <span style="color: #993333; font-weight: bold;">CREATE</span> ROUTINE, <span style="color: #993333; font-weight: bold;">ALTER</span> ROUTINE, EXECUTE <span style="color: #993333; font-weight: bold;">ON</span> <span style="color: #ff0000;">`db<span style="color: #000099; font-weight: bold;">\_</span>roundcube`</span> . * <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">'db_roundcube'</span>@<span style="color: #ff0000;">'%'</span>;</pre>
<h3>On importe la structure de la base</h3>
<pre class="bash">mysql -u root -p db_roundcube <span style="color: #000000; font-weight: bold;"><</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>roundcube<span style="color: #000000; font-weight: bold;">/</span>SQL<span style="color: #000000; font-weight: bold;">/</span>mysql5.initial.sql</pre>
<h3>On configure <strong>roundcube</strong></h3>
<ul>
<li>/home/public/www/roundcube/config/db.inc.php</li>
</ul>
<pre class="php"><span style="color: #ff0000">$rcmail_config</span><span style="color: #66cc66;">[</span><span style="color: #ff0000;">'db_dsnw'</span><span style="color: #66cc66;">]</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'mysql://db_roundcube:xxxxxxxxxxxxxxx@localhost/db_roundcube'</span><span style="color: #66cc66;">;</span></pre>
<ul>
<li>/home/public/www/roundcube/config/main.inc.php</li>
</ul>
<pre class="php"><span style="color: #ff0000">$rcmail_config</span><span style="color: #66cc66;">[</span><span style="color: #ff0000;">'default_host'</span><span style="color: #66cc66;">]</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'localhost'</span><span style="color: #66cc66;">;</span>
<span style="color: #ff0000">$rcmail_config</span><span style="color: #66cc66;">[</span><span style="color: #ff0000;">'des_key'</span><span style="color: #66cc66;">]</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'clé aléatoire de 24 caractères'</span><span style="color: #66cc66;">;</span>
<span style="color: #ff0000">$rcmail_config</span><span style="color: #66cc66;">[</span><span style="color: #ff0000;">'language'</span><span style="color: #66cc66;">]</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'fr_FR'</span><span style="color: #66cc66;">;</span></pre>
<h3>On supprime à présent les fichiers inutiles</h3>
<pre class="bash"><span style="color: #c20cb9; font-weight: bold;">rm</span> -r <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>roundcube<span style="color: #000000; font-weight: bold;">/</span>installer;
<span style="color: #c20cb9; font-weight: bold;">rm</span> -r <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>roundcube<span style="color: #000000; font-weight: bold;">/</span>SQL;</pre>