{"id":867,"date":"2012-08-02T14:44:59","date_gmt":"2012-08-02T06:44:59","guid":{"rendered":"http:\/\/rmohan.com\/?p=867"},"modified":"2012-08-02T14:46:39","modified_gmt":"2012-08-02T06:46:39","slug":"setting-up-roundcube-qmail","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=867","title":{"rendered":"Setting up Roundcube Qmail"},"content":{"rendered":"<p>The Roundcube webmail software is available in<\/p>\n<p>The ports for Roundcube webmail is available in \/var\/www\/html\/roundcube. To install roundcube, you will need to type the following (as root):<\/p>\n<pre># cd \/usr\/ports\/mail\/roundcube\r\n# make install clean<\/pre>\n<p>The ports system will install Apache, PHP4, and MySQL if you do not have them on your system. By default, roundcube is installed in \/usr\/local\/www\/roundcube\/<\/p>\n<p>Now, I\u2019m going to map the http:\/\/localhost\/roundcube\/ to \/var\/www\/html\/roundcube\/. To do this you will need to open the apache configuration located in\u00a0 \/etc\/http\/http.d \u00a0 Edit httpd.conf then copy and paste the following:<\/p>\n<pre><code> Alias \/roundcube \"\/usr\/local\/www\/roundcube\/\" &lt;Directory \"\/usr\/local\/www\/roundcube\"&gt; Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all &lt;\/Directory&gt; <\/code><\/pre>\n<p>Save the file and then restart apache: <code># apachectl restart<\/code><\/p>\n<p>You now need to create a database for roundcube. Once you\u2019ve created the database, you need to open <code>config\/db.inc<\/code> and change the database setting:<\/p>\n<p><code> $rcmail<em>config['db<\/em>dsnw'] = 'mysql:\/\/username:secretpass@localhost\/roundcube'; <\/code><\/p>\n<p>The format for the above line is <code>db_provider:\/\/user:password@host\/database<\/code>.<\/p>\n<p>Now, you want to edit main.inc.php file and change the mailhost setting with your IMAP server address. You can leave them blank, roundcube will display a textbox at login so users can enter the IMAP address manually.<\/p>\n<p><code>$rcmail<em>config['default<\/em>host'] = 'localhost';<\/code><\/p>\n<p>Now, you need to import the database structure into your roundcube database. You can copy and paste them into phpMyAdmin or you can use the following command:<\/p>\n<pre># cd \/var\/www\/html\/roundcube\/SQL\r\n# mysql -u user -p database &lt; mysql.initial.sql<\/pre>\n<p>All done, congratulation you have installed roundcube on your server. You can access your roundcube webmail on http:\/\/localhost\/roundcube\/ (You can change your localhost to your hostname).<\/p>\n<p>You can now login with your username and password on your IMAP server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Roundcube webmail software is available in<\/p>\n<p>The ports for Roundcube webmail is available in \/var\/www\/html\/roundcube. To install roundcube, you will need to type the following (as root):<\/p>\n<p> # cd \/usr\/ports\/mail\/roundcube # make install clean <\/p>\n<p>The ports system will install Apache, PHP4, and MySQL if you do not have them on your system. By default, [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/867"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=867"}],"version-history":[{"count":3,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/867\/revisions"}],"predecessor-version":[{"id":869,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/867\/revisions\/869"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}